Entity Relationships (Beta)

Use these operations to interact with entity relationships in Cortex.

Required permissions

Create and Update Relationships: Your API key must have the Edit entities permission. Your tenant must also have the Entity relationships feature enabled.

Operations

List entity destinations for a relationship type

get

List all entity destinations for a certain relationship type. Optional depth parameter to limit the depth of the relationship tree.

Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Path parameters
tagOrIdstringRequired

The tag (x-cortex-tag) or unique, auto-generated identifier for the entity.

relationshipTypeTagstringRequired
Query parameters
depthstringOptional

Maximum depth to traverse in the relationship hierarchy. Defaults to 1 (i.e., direct relationships only).

Example: 2
includeArchivedbooleanOptional

If true will include relationships that traverse archived entities

Default: falseExample: false
Responses
200

Successfully retrieved entity sources

application/json
get
/api/v1/catalog/{tagOrId}/relationships/{relationshipTypeTag}/destinations

Update direct entity destinations for a given entity

put

Update all direct destinations for a given entity and entity relationship type

Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Path parameters
tagOrIdstringRequired

The tag (x-cortex-tag) or unique, auto-generated identifier for the entity.

relationshipTypeTagstringRequired
Query parameters
forcebooleanOptional

When true, overrides values that were defined in the catalog descriptor. Will be overwritten the next time the catalog descriptor is processed.

Body

Updates to entity relationship destinations

destinationsstring[]Required

List of code tags for the entities to add as sources

Example: ["entity-1","entity-2"]
Responses
200

Successfully updated entity destinations

application/json
put
/api/v1/catalog/{tagOrId}/relationships/{relationshipTypeTag}/destinations

Add direct entity destinations for a given entity

post

Add direct destinations for a given entity and entity relationship type

Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Path parameters
tagOrIdstringRequired

The tag (x-cortex-tag) or unique, auto-generated identifier for the entity.

relationshipTypeTagstringRequired
Query parameters
forcebooleanOptional

When true, overrides values that were defined in the catalog descriptor. Will be overwritten the next time the catalog descriptor is processed.

Body

Updates to entity relationship destinations

destinationsstring[]Required

List of code tags for the entities to add as sources

Example: ["entity-1","entity-2"]
Responses
200

Successfully added entity destinations

application/json
post
/api/v1/catalog/{tagOrId}/relationships/{relationshipTypeTag}/destinations

List entity sources for a relationship type

get

List all entity sources for a certain relationship type. Optional depth parameter to limit the depth of the relationship tree.

Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Path parameters
tagOrIdstringRequired

The tag (x-cortex-tag) or unique, auto-generated identifier for the entity.

relationshipTypeTagstringRequired
Query parameters
depthstringOptional

Maximum depth to traverse in the relationship hierarchy. Defaults to 1 (i.e., direct relationships only).

Example: 2
includeArchivedbooleanOptional

If true will include relationships that traverse archived entities

Default: falseExample: false
Responses
200

Successfully retrieved entity sources

application/json
get
/api/v1/catalog/{tagOrId}/relationships/{relationshipTypeTag}/sources

Update direct entity sources for a given entity

put

Update all direct sources for a given entity and entity relationship type

Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Path parameters
tagOrIdstringRequired

The tag (x-cortex-tag) or unique, auto-generated identifier for the entity.

relationshipTypeTagstringRequired
Query parameters
forcebooleanOptional

When true, overrides values that were defined in the catalog descriptor. Will be overwritten the next time the catalog descriptor is processed.

Body

Updates to entity relationship sources

sourcesstring[]Required

List of code tags for the entities to add as sources

Example: ["entity-1","entity-2"]
Responses
200

Successfully updated entity sources

application/json
put
/api/v1/catalog/{tagOrId}/relationships/{relationshipTypeTag}/sources

Add direct entity sources for a given entity

post

Add direct sources for a given entity and entity relationship type

Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Path parameters
tagOrIdstringRequired

The tag (x-cortex-tag) or unique, auto-generated identifier for the entity.

relationshipTypeTagstringRequired
Query parameters
forcebooleanOptional

When true, overrides values that were defined in the catalog descriptor. Will be overwritten the next time the catalog descriptor is processed.

Body

Updates to entity relationship sources

sourcesstring[]Required

List of code tags for the entities to add as sources

Example: ["entity-1","entity-2"]
Responses
200

Successfully added entity sources

application/json
post
/api/v1/catalog/{tagOrId}/relationships/{relationshipTypeTag}/sources

List entity relationships for a relationship type

get

List all entity relationships for a certain relationship type.

Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Path parameters
relationshipTypeTagstringRequired
Query parameters
pageSizeinteger · int32Required

Number of results to return per page, between 1 and 1000. Default 250.

Default: 250
pageinteger · int32Required

Page number to return, 0-indexed. Default 0.

Default: 0
Responses
200

Successfully retrieved entity relationships

application/json
get
/api/v1/relationships/{relationshipTypeTag}

Update entity relationships for a relationship type

put

Update all entity relationships for a certain relationship type.

Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Path parameters
relationshipTypeTagstringRequired
Query parameters
forcebooleanOptional

When true, overrides values that were defined in the catalog descriptor. Will be overwritten the next time the catalog descriptor is processed.

Body

Updates to entity relationships

Responses
200

Successfully updated entity relationships

application/json
put
/api/v1/relationships/{relationshipTypeTag}

Add entity relationships for a relationship type

post

Add all entity relationships for a certain relationship type.

Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Path parameters
relationshipTypeTagstringRequired
Query parameters
forcebooleanOptional

When true, overrides values that were defined in the catalog descriptor. Will be overwritten the next time the catalog descriptor is processed.

Body

Updates to entity relationships

Responses
200

Successfully added entity relationships

application/json
post
/api/v1/relationships/{relationshipTypeTag}

Last updated

Was this helpful?