Create Relationships

Create relationships, even with differing relationship types. To create relationships in bulk with differing relationship types, just simply pass multiple objects in the array for each relationship type being used, where the parent identifier will be the same, however the type and related asset ids would be different.

SecurityOAuth2
Request
header Parameters
content-type
string
Example: application/json
Authorization
string
Example: Bearer <token>
Request Body schema: application/json
Array ([ 1 .. 10 ] items)
parent
string <uuid>

The Asset ID of the asset which will serve as the parent.

type
string

The name of the relationship type

related
Array of arrays [ 1 .. 50 ] items
Responses
202

Successful Request. Task Started Successfully.

400

One or more required parameters are missing or invalid.

401

Authentication failed (unauthorized).

403

Forbidden. You do not have permissions to perform this action, or your connection information is not correct.

503

The server is too busy to handle the request.

post/relationships/create
Request samples
application/json
[
  • {
    }
]
Response samples
application/json
{
  • "taskId": "fba70961-0091-4a07-a4c3-42182d67572f"
}