List an entity's relationships
/api/v1/entities/{entity_uuid}/relationships
operationId: relationship.list
Base: https://portal.watcheye.com.au/api/v1/entities/{entity_uuid}/relationships
Returns the relationships involving the specified entity, where the entity is either the
from or the to side of the link. The related entity can be in any program on your
account. Results are paginated.
Each relationship is returned once with both forward_label and inverse_label, so you can
present it from either entity's point of view. See the
relationship list endpoint for the full shape.
Sorting
The sort query parameter accepts created_at (default: -created_at, newest first) or
updated_at. Prefix with - for descending order.
Path parameters
| Field | Description |
|---|---|
entity_uuidrequired |
string (uuid) The entity UUID |
Query parameters
| Field | Description |
|---|---|
page |
integer The page of results to return, starting at 1. |
per_page |
integer The number of relationships per page (defaults to 30, max 500) |
sort |
string Field to sort by; prefix with |
Responses
Relationships list response
application/json
| Field | Description |
|---|---|
data |
array of objects An array of relationships |
data[]. |
string (uuid) The relationship's UUID |
data[]. |
string The type of relationship. |
data[]. |
string Human-readable label when read from the |
data[]. |
string Human-readable label when read from the |
data[]. |
boolean When |
data[]. |
string (uuid) UUID of the entity the relationship is recorded from. |
data[]. |
string (uuid) UUID of the entity the relationship points to. |
data[]. |
number (float) or null Ownership percentage (0-100) for relationship types that support it (such as |
data[]. |
string How the relationship was recorded (e.g. |
data[]. |
string (date) or null Optional date from which the relationship is effective (YYYY-MM-DD). |
data[]. |
string (date) or null Optional date the relationship is effective until (YYYY-MM-DD). Always null for point-in-time relationship types ( |
data[]. |
string or null Optional free-text comment describing the relationship. |
data[]. |
string (date-time) |
data[]. |
string (date-time) |
meta |
object |
meta. |
integer |
meta. |
integer |
meta. |
integer |
meta. |
integer |
api_reference |
string (uuid) |