Object Relationship Management
Create Relationship Record between Objects
Use this API to create a new Relationship Record between objects.
🗒 Things to Know
- This API only supports objects created via Object Manager, including Projects, Models, and Datasets.
post/v1/links
Query parameters
linkTypeIdstring uuid required
Unique identifier of the link type to use for creating the relationship
The unique identifier of the relationship type.
Request body
Example request
{
"attributes": {
"textAttributeName": [
{
"value": "Text"
}
],
"optionBasedAttributeName": [
{
"id": "f2229953-b4b5-4042-8cb9-b78038cc4c46"
}
]
},
"entity1": {
"id": "f2229953-b4b5-4042-8cb9-b78038cc4c46",
"number": 1024,
"name": "OneTrust DataGuidance",
"isDeleted": false,
"detailsAccessRestricted": false,
"redirectURL": "/entity/product/f2229953-b4b5-4042-8cb9-b78038cc4c46",
"entityType": {
"id": "d1119953-b4b5-4042-8cb9-b78038cc4c46",
"name": "Product",
"displayName": "Product",
"nameKey": "entity.type.product",
"displayNameKey": "entity.type.product.display",
"module": "VENDOR"
},
"linkEntityDetail": {
"includeCustomFields": true,
"includeStandardFields": true
}
},
"entity2": {
"id": "f2229953-b4b5-4042-8cb9-b78038cc4c46",
"number": 1024,
"name": "OneTrust DataGuidance",
"isDeleted": false,
"detailsAccessRestricted": false,
"redirectURL": "/entity/product/f2229953-b4b5-4042-8cb9-b78038cc4c46",
"entityType": {
"id": "d1119953-b4b5-4042-8cb9-b78038cc4c46",
"name": "Product",
"displayName": "Product",
"nameKey": "entity.type.product",
"displayNameKey": "entity.type.product.display",
"module": "VENDOR"
},
"linkEntityDetail": {
"includeCustomFields": true,
"includeStandardFields": true
}
}
}Response
Created - The relationship was successfully established
Example response
{
"id": "d1119953-b4b5-4042-8cb9-b78038cc4c46",
"linkType": {
"name": "Related"
}
}