CreateElementChildren endpoint
Closes #1816 (closed)
- The
worker_run_id
field is not included, since ElementPaths are not linked to worker runs. - Using the same URL as
ListElementChildren
andDestroyElementChildren
implies using the same APIView with two different serializers, which is really hard to handle as different serializer contexts are needed, different ACL checks are needed, nothing in the OpenAPI schema generation works, etc. -
/api/v1/element/<id>/children/bulk/
is already taken byCreateElements
. I went with/api/v1/element/parent/<id>/
, which is similar to/api/v1/element/<id>/parent/<id>/
ofCreateElementParent
, since this is a bulk version ofCreateElementParent
.