Create a new relationship link between two documents
Creates a new relationship link between two documents. A link is an instance of a relationship type. A relationship type that describes the link must already exist. The relationship type must have an internal bridge table to create links.
1{2 "relationshipTypeName": "string",3 "relationshipTypeVersion": "string",4 "relationshipTypeLabel": "string",5 "id": "string",6 "qualifiedTypeName": "string",7 "fromObjectTypeName": "string",8 "fromObjectTypeVersion": -9223372036854776000,9 "fromObjectId": "string",10 "fromObjectDisplayLabel": "string",11 "toObjectTypeName": "string",12 "toObjectTypeVersion": -9223372036854776000,13 "toObjectId": "string",14 "toObjectDisplayLabel": "string",15 "validFrom": "2019-08-24T14:15:22Z",16 "validTo": "2019-08-24T14:15:22Z",17 "createdAt": "2019-08-24T14:15:22Z",18 "lastUpdatedAt": "2019-08-24T14:15:22Z",19 "@type": "string"20}
| Name | Type | Required | Description |
|---|---|---|---|
includeEntityLabels | boolean | true | Compute and include display labels for both to and from documents in the response. Default: false |
An object that represents the link.
A link between two documents as defined by a relationship type.
| Name | Type | Required | Description |
|---|---|---|---|
relationshipTypeName | string | false | The name of the relationship type that defines this link. |
relationshipTypeVersion | string | false | The internal Data Hub version of the relationship type. |
relationshipTypeLabel | string | false | The display label for the relationship type. |
id | string | false | The ID of the link. |
qualifiedTypeName | string | false | The qualified name of the relationship type. Qualified names are in the format: fromObjectTypeName + "__" + relationshipTypeName. |
fromObjectTypeName | string | false | The entity type name for the "From" side of the relationship type. |
fromObjectTypeVersion | integer<int64> | false | The internal Data Hub version for the entity type for the "From" side of the relationship type. |
fromObjectId | string | false | The document ID for the "From" side of the relationship type. |
fromObjectDisplayLabel | string | false | The display label for the document on the "From" side of the relationship type. |
toObjectTypeName | string | false | The entity type name for the "To" side of the relationship type. |
toObjectTypeVersion | integer<int64> | false | The internal Data Hub version for the entity type for the "To" side of the relationship type. |
toObjectId | string | false | The document ID for the "To" side of the relationship type. |
toObjectDisplayLabel | string | false | The display label for the document on the "To" side of the relationship type. |
validFrom | string<date-time> | false | The timestamp value that indicates the starting datetime for when the link is valid. |
validTo | string<date-time> | false | The timestamp value that indicates the ending datetime for when the link is valid. |
createdAt | string<date-time> | false | The timestamp value that indicates when this link was created. |
lastUpdatedAt | string<date-time> | false | The timestamp value that indicates when this link was last modified. |
@type | string | false | Data type that describes the link object. The value is always "DocumentLink". |
| Status | Meaning | Description | ||
|---|---|---|---|---|
| 201 | Created | A new relationship link between two documents was created. | Schema | |
| 400 | Bad Request | The request was invalid. | Schema |