Query a list of links or an individual link based on specific query parameters

get/links
Internal-Use Only

Gets either a list of links that are associated with a document or an individual link. The type of request is determined by the included query parameters. Do not mix the query parameters for both types of requests.

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
_entityId
string
false

The unique identifier for the entity that is the starting point of the link.

_entityTypeName
string
false

The same value as _fromEntityTypeName. (This is required for legacy reasons.)

_fromEntityTypeName
string
false

The entity type of the starting point of the link.

_includeEntityLabels
boolean
false

Compute and include display labels for both to and from documents.

Default:
false
_relationshipName
string
false

The name of the relationship type upon which the link is based.

fromEntityId
string
false

The unique identifier for the entity that is the starting point of the link.

fromEntityTypeName
string
false

The entity type of the starting point of the link.

includeEntityLabels
boolean
false

Compute and include display labels for both the to document and the from document.

Default:
false
relationshipName
string
false

The name of the relationship type upon which the link is based.

toEntityId
string
false

The unique identifier for the entity that is the destination point of the link.

toEntityTypeName
string
false

The entity type of the destination point of the link.

Header Parameters

NameTypeRequiredDescription
Accept-Item
string
false

The media type that the client accepts for items within the response collection. This value is ignored when this operation is fetching a single relationship link.

Allowed values:
application/jsonapplication/vnd.sas.investigation.data.masked.relationshiplinkapplication/vnd.sas.investigation.data.masked.relationshiplink+jsonapplication/vnd.sas.investigation.data.minimally.masked.relationshiplinkapplication/vnd.sas.investigation.data.minimally.masked.relationshiplink+json

Responses

StatusMeaningDescription
200OKThe request succeeded. The response is either an individual link or a Resource Collection of links. HeadersSchema
404Not FoundUnable to find a link or links based on the values that are provided in the request.Schema
415Unsupported Media TypeThe endpoint cannot produce collection items of the type specified in the `Accept-Item` header. Schema