Object Relationship Type Management
Create Relationship Type between Objects
Use this API to create a new Relationship Type between two object types.
🗒 Things to Know
- This API only supports objects created via Object Manager, including Projects, Models, and Datasets.
post/v1/entity-link-types
Request body
Example request
{
"name": "Product/Service",
"description": "Defined link between Vendor and Product/Service",
"linkAssociations": [
{
"entityType1": {
"name": "Vendors"
},
"entityType2": {
"name": "Assets"
}
},
{
"entityType1": {
"name": "Vendors"
},
"entityType2": {
"name": "Vendors"
}
}
],
"entityType1ToEntityType2EntityLinkName": "OneTrust provides GRC",
"entityType2ToEntityType1EntityLinkName": "GRC belongs to OneTrust"
}Response
Created - The relationship type has been successfully created
Example response
{
"id": "f2229953-b4b5-4042-8cb9-b78038cc4c46",
"name": "Product/Service",
"nameKey": "link.type.productservice.name",
"seeded": true,
"moduleName": "CustomEntityManagement",
"description": "Links between vendors and their products",
"descriptionKey": "entity.link.vendor_product.description",
"entityType1ToEntityType2EntityLinkName": "Vendor provides Product",
"entityType1ToEntityType2EntityLinkNameKey": "entity.link.vendor_to_product",
"entityType2ToEntityType1EntityLinkName": "Product belongs to Vendor",
"entityType2ToEntityType1EntityLinkNameKey": "entity.link.product_to_vendor",
"enableAudit": true,
"auditFields": {
"createdBy": {
"id": "c21319953-b4b5-4042-8cb9-b78038cc4c51",
"name": "Name"
},
"lastModifiedBy": {
"id": "c21319953-b4b5-4042-8cb9-b78038cc4c51",
"name": "Name"
}
},
"linkAssociations": [
{
"id": 999,
"entityType1": {
"id": "a2319953-b4b5-4042-8cb9-b78038cc4c46",
"name": "Asset"
},
"entityType2": {
"id": "a2319953-b4b5-4042-8cb9-b78038cc4c46",
"name": "Asset"
},
"enabled": true,
"seeded": true,
"auditFields": {
"createdBy": {
"id": "c21319953-b4b5-4042-8cb9-b78038cc4c51",
"name": "Name"
},
"lastModifiedBy": {
"id": "c21319953-b4b5-4042-8cb9-b78038cc4c51",
"name": "Name"
}
}
}
]
}