Skip to content

Interdependent DELETE requests in a change set #2103

@HeikoTheissen

Description

@HeikoTheissen

Consider a batch request with a change set/atomicity group that contains DELETE requests for two entities:

DELETE OrgUnits(1)
DELETE OrgUnits(2)

If DELETE OrgUnits(1) implicitly deletes OrgUnits(2) (because it is a subordinate org unit), what is the response code of DELETE OrgUnits(2)?

  • Is it 404 Not Found because the entity does not exist?
  • Or is it 204 No Content because the change set was successfully executed overall?

Analogous question for

PATCH /OrgUnits

{"@context": "#$delta",
  "value": [{
    "@removed": {"reason": "deleted"},
    "ID": 1
  }, {
    "@removed": {"reason": "deleted"},
    "ID": 2
  }]}

Is there a Core.DataModificationException for the second deletion?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Open

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions