Relations

getRelatedEntitiesCount

Returns the amount of unique related entities for an entity - includes direct and reverse relations.

get/v2/entity/{slug}/{id}/relations/count

Request

  • Base URL
    https://entity.sls.epilot.io
  • URL
    https://entity.sls.epilot.io/v2/entity/{slug}/{id}/relations/count
  • Auth
    • HTTP bearer
    • or API key in header x-epilot-org-id

Path parameters

slugstring required

URL-friendly identifier for the entity schema

Example:contact

Entity Type

idstring uuid required

Entity id

Query parameters

exclude_schemasEntitySlug[]

Filter results to exclude schemas

[
  "contact"
]

Response

Success

hitsinteger

Example response

{
  "hits": 1
}

Changes

No recorded changes to this operation across all 18 revisions of this API.