Skip to content

CreateElementChildren endpoint

Erwan Rouchet requested to merge element-path-bulk into master

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 and DestroyElementChildren 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 by CreateElements. I went with /api/v1/element/parent/<id>/, which is similar to /api/v1/element/<id>/parent/<id>/ of CreateElementParent, since this is a bulk version of CreateElementParent.

Merge request reports

Loading