Remove Related Records From Multiple Relationships
Method
DELETE
URL
/v2/<object_full_identifier>/<record_uuid>/<multiple_relationship_full_identifier>
Parameters
uuids=uuid1, uuid2, uuid3
Response Content Type
application/json
Input Example
The input URL should be a DELETE request with a URL that references an origin record and a multiple relationship. You must specify a list of UUIDs to remove from the relationship to the origin record under the uuids key. If the specified origin record (for example, /io_role/39b59cc4-692c-4e65-be55-6ac96ae7d2f7), from the multiple relationship io-users → io_role is a Role record, you must specify a list of User record UUIDs to remove. If the specified origin record is a User record, you must specify a list of Role record UUIDs to remove.
DELETE https://localhost:8080/v2/io_role/c088b2cd-509c-4ec5-82db-754a57c32a61/io_users?uuids=bba20a6a-b9dc-11e0-adfd-00ff8314382b%2C+bbe3ceb4-b9dc-11e0-adfd-00ff8314382b
The body should be empty.
Response Example
The response is HTTP Status Code 200 plus JSON code that represents a true value. Following is an example Status Code 200 response for a request to remove users from the io_users multiple relationship in the specified origin Role record.
true
Error Response Messages
HTTP Status Code
Error Message
400
The body of the request did not contain any data.
404
The record specified to remove the records from, was not found or some of the records to remote from the relationship were not found.
400
Error removing Records. Exception={...}
500
Internal Server error
For more information:
Was this helpful?