Relations
When filtering on a relation, use the relation name, which is the system name of a relation member defined on an entity definition. The syntax for a relation name is ParentDefinitionToChildDefinition (for example, CategoryToAsset,FinalLifeCycleStatusToAsset). You can retrieve a relation name using a GET /api/entitydefinitions/{definitionName} and examining member_groups[*].members for entries where "type": "Relation". The name field of each such entry is what goes in a filter. The .id is the numeric primary key of the specific entity instance on the other side of the relation (that is, the entity whose children (or parents) you want to retrieve). In the following example, you are filtering assets by Type = Archive and excluding assets where the status (M.Final.LifeCycle.Status) is Approved.
Parents
You can query for named parent relationships by using a specific ID.
For instance, to query for all assets linked to a certain brand ID:
This property only supports the == operator, but can be negated.
Children
You can query for named child relationships by using a specific ID.
For instance, to query for all assets that have another specific asset as child:
This property only supports the == operator, but can be negated.
Ancestors
You can query for named ancestors (secured and unsecured) by using a specific ID.
For instance, to query for all assets that belong to M.AssetMedia:
This property only supports the == operator, but can be negated.
Exists
You can query for named relationships which have a parent entity.
For instance, to query for all assets which have a brand:
Missing
You can query for named relationships which do not have a parent entity.
For instance, to query for all assets which do not have a brand: