Service Board > Max for Developers > Appendix B: Max REST API > REST API Version 2: Multiple Relationships > Remove Related Records From Dynamic Multiple Relationships
Remove Related Records From Dynamic Multiple Relationships
Method
DELETE
URL
/v2/<object_full_identifier>/<record_uuid>/<multiple_relationship_full_identifier>
Parameters
uuids=<target_object_identifier1>:<uuid1>,<target_object_identifier2>:<uuid2>,>target_object_identifier3>:<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 dynamic relationship. You must specify a comma-separated list of record pointers in the uuids parameter, each of which includes the target object identifier and record UUID to remove from the relationship to the origin record. For example, for the specified origin Field record (/io_field/eca64d35-2338-4445-b87d-07597bcf4bbb/) from the io-field → io_role | io_group | io_user multiple relationship, you must specify io_group:"< group_uuid">, io_role:"<role_uuid>" or io_user:" <user_uuid>" for the records to remove from the io_field_access_control relationship.
DELETE https://localhost:8080/v2/io_field/eca64d35-2338-4445-b87d-07597bcf4bbb/io_field_access_control?uuids=io_group:5b93db1b-73e2-4cc8-b857-d965d19a42fa,io_role:39b59cc4-692c-4e65-be55-6ac96ae7d2f7
The body should be empty.
Response Example
The response is an HTTP Status Code 200 plus a JSON representation of a true value. Following is an example Status Code 200 response for a request to remove Users, Roles, or Groups from the io_field_access_control dynamic relationship of the specified origin Field 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
Was this helpful?