Query an individual link

get/links/@item
Internal-Use Only

Retrieves an individual link using an ID string.

Request Samples

1

Response Samples

1{
2 "relationshipTypeName": "witnessed_by",
3 "relationshipTypeVersion": 1,
4 "relationshipTypeLabel": "Witnessed by",
5 "id": "witnessed_by|_|intel_report|_|person|_|e5343e0e-3d68-11e8-b467-0ed5f89f718b",
6 "createdAt": "2015-10-01T18:30:03.656Z",
7 "lastUpdatedAt": "2015-10-01T18:30:03.656Z",
8 "displayLabel": "Witnessed by",
9 "fromObjectTypeName": "intel_report",
10 "fromObjectTypeVersion": 3,
11 "fromObjectId": "uuid_502",
12 "fromObjectDisplayLabel": "John Smith",
13 "toObjectTypeName": "person",
14 "toObjectTypeVersion": 6,
15 "toObjectId": "uuid_102",
16 "toObjectDisplayLabel": "John Smith",
17 "fieldValues": {
18 "auto_generated_sk": "e5343e0e-3d68-11e8-b467-0ed5f89f718b",
19 "created_at_dttm": "2015-10-01T18:30:03.656Z",
20 "created_by_user_id": "unit_test",
21 "intelReportId": "uuid_502",
22 "last_updated_at_dttm": "2015-10-01T18:30:03.656Z",
23 "last_updated_by_user_id": "unit_test",
24 "personId": "uuid_102",
25 "version": 1
26 },
27 "qualifiedTypeName": "intel_report__witnessed_by",
28 "restrictedFields": {
29 "ssn": {
30 "masked": {
31 "currentUserIsAuthorizedToReveal": true
32 }
33 }
34 }
35}

Query Parameters

NameTypeRequiredDescription
_id
string
true

The ID for an individual link. A link ID uses the following format: ${relationshipName}|_|${fromEntityTypeName}|_|${toEntityTypeName}|_|${fromEntityId}|_|${toEntityId} where |_| is the delimiter between link ID components.

Link ID component details:

  • relationshipName - The relationship type name that defines the link.
  • fromEntityTypeName - The entity type name of the starting point for the link.
  • fromEntityId - The unique identifier of the entity that is the starting point for the link.
  • toEntityTypeName - The entity type name of the destination point for the link.
  • toEntityId - The unique identifier of the entity that is the destination point for the link.

When submitting the request, the pipe character (|) must be percent-encoded as %7C. See below for an example of the pipe character properly encoded: ${relationshipName}%7C_%7C${fromEntityTypeName}%7C_%7C${toEntityTypeName}%7C_%7C${fromEntityId}%7C_%7C${toEntityId}

_includeDisplayLabel
boolean
false

Specifies whether to compute and include display labels for both the to document and the from document in the response.

Responses

StatusMeaningDescription
200OKThe request succeeded. An individual link is returned. HeadersSchema
400Bad RequestThe request was invalid.Schema
404Not FoundUnable to find the link.Schema