Get a count of the number of links between an entity and its related entities

get/links/count

For a given entityTypeName and entityId, searches for all related entities and returns a summary of the total number of links found for each related entity type. This method finds all links that are related to an entity and from an entity.

Request Samples

1

Response Samples

1{
2 "links": [],
3 "name": "links",
4 "count": 2,
5 "items": [
6 {
7 "relationshipId": 101300,
8 "relationshipName": "customer_to_order",
9 "relationshipLabel": "Customer to Order",
10 "relationshipQualifiedName": "customer__customer_to_order",
11 "relationshipReverseName": "order_to_customer",
12 "relationshipReverseLabel": "Order to Customer",
13 "fromEntityTypeName": "customer",
14 "fromEntityTypeLabel": "Customer",
15 "toEntityTypeName": "order",
16 "toEntityTypeLabel": "Order",
17 "linkCount": 4
18 },
19 {
20 "relationshipId": 104200,
21 "relationshipName": "customer_to_address",
22 "relationshipLabel": "Customer to Address",
23 "relationshipQualifiedName": "customer__customer_to_address",
24 "relationshipReverseName": "address_to_customer",
25 "relationshipReverseLabel": "Address to Customer",
26 "fromEntityTypeName": "customer",
27 "fromEntityTypeLabel": "Customer",
28 "toEntityTypeName": "address",
29 "toEntityTypeLabel": "Address",
30 "linkCount": 2
31 }
32 ],
33 "version": 2
34}

Query Parameters

NameTypeRequiredDescription
entityId
string
true

Specifies the ID of the entity for which to search.

entityTypeName
string
true

Specifies the name of the entity type for which to search.

Header Parameters

NameTypeRequiredDescription
Accept-Item
string
true

When making a request to count links, specifies the media type of the items returned.

Allowed value:
application/vnd.sas.investigation.link.count

Responses

StatusMeaningDescription
200OK

The request succeeded. A summary of all related links is returned.

Schema
400Bad Request

The request was invalid.

Schema