Relationship count

/objects/(type)/(objectid)/(version)/relationships/count

The count of the related objects.

Methods

GET

Output: int
  Retrieves the amount of related objects.
Parameters: ?objtype - Only returns related objects of a certain object type.
  ?direction - Only returns related objects with the specified direction of relationship. from considers only the relationships specified on the current object. to considers only the relationships originating from the related objects. ‘both’ is the default behaviour which considers both directions.
  ?type - Specifies the response type. lookup will make the response to be serialized as Lookup while the default objectversion will result in the response being serialized as ObjectVersion[].