Add Relationship
- If at least a few of the Resource that are part of relatedIds list
are valid resources then the operation is performed. - If there are few Resource that are part of relatedIds list
that will result in a cyclical relationship, then those resources will be skipped.
NOTE: Adding relationship is not synchronous. As a
result, the add operation may not happen immediately. It is recommended
to query the relationships of the specific Resource back to ensure that the
operation was indeed successful.
The UUID of the source resource
The type of relationship of the objects; Uses the RelationshipType.representation value
UUID of resources to add as related to this resource
Show optional properties
{
"uuids": [
{}
]
}
"{\n \"uuids\" : [ \"df6de846-0e97-408d-bcff-be0026eba68a\", \"b3a3b7ef-7871-4238-86f4-3a5f10294450\" ]\n}"
Represents a list of UUID(s)
The relationship is added successfully
All of the Resource that are part of the relatedIds list are invalid/non-existent
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"uuids":["string"]}' https://{api_host}/suite-api/api/resources/{id}/relationships/{relationshipType}