Add Related Records to Dynamic Multiple Relationships
Method
GET
URL
/v2/<object_full_identifier>/<record_uuid>/<multiple_relationship_full_identifier>
Parameters
No parameters. In the request body, specify a list of pointers to records in the following format:
[<target_object>, <record_uuid_to_relate>]
Response Content Type
application/json
Input Example
The input should be a POST request with the following URL, for example:
POST https://localhost:8080/v2/io_field/eca64d35-2338-4445-b87d-07597bcf4bbb/io_field_access_control
The request body is an array of record pointers composed of a full identifier and UUID for each record to be related to the origin record. For example, for the specified origin Field record (/io_field/eca64d35-2338-4445-b87d-07597bcf4bbb) from the multiple dynamic relationship io-field → io_role | io_group | io_user, you must specify ["io_group", "some_group_uuid"], ["io_role", "some_role_uuid"], or ["io_user", "some_user_uuid"], as applicable:
[["io_user","81b0ab6b-f2e3-4e3e-a155-4ca9617e8456"], ["io_user","840b1979-adde-4798-b101-bea6716fba32"],["io_group","5b93db1b-73e2-4cc8-b857-d965d19a42fa"], ["io_role","39b59cc4-692c-4e65-be55-6ac96ae7d2f7"]]
Response Example
The response is an HTTP Status Code 200 plus a JSON representation of a true value. Following is a example Status Code 200 response to a request to add User, Group, and Role records to the io_field_access_control multiple 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 relate the records was not found or some of the records to relate to were not found
400
Error adding relationship Records. Exception={...}
500
Internal Server error
For more information:
Was this helpful?