Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Bulk Delete Entities: entity references array of JSON ID-objects causes HTTP 500 #48

Closed
mariodavid opened this issue Mar 8, 2021 · 0 comments
Assignees
Milestone

Comments

@mariodavid
Copy link
Contributor

GIven the following request:

DELETE {{baseUrl}}
         /entities
         /rstex11_Customer
Authorization: Bearer {{auth_token}}

[
  {
    "id": "{{firstCustomerId}}"
  },
  {
    "id": "{{secondCustomerId}}"
  }
]

Note: The entities are expressed as JSON objects containing IDs instead of a JSON array body containing only the IDs like this:

[
"{{firstCustomerId}}",
"{{secondCustomerId}}"
]

The following response is created:

HTTP/1.1 500 
{
  "error": "Server error",
  "details": ""
}

Expected behavior:

  • support this variant (additionally) of entity references as well, because it is aligned on how entities are represented in the other endpoints (either bulk or non-bulk)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants