Filter relation definitions based on specified criteria. This endpoint allows you to retrieve a list of relation definitions that match the given filters.
Note: For a relation definitions to be found it needs to map to at least one of the values in each object in the filters array.
Example: Imagine if we have these two relation definitions:
Relation definition: Contains
- Number: contains-relation
- ID: 64ef9336bec72f3271090e97
Relation definition: Spare part of
- Number: spare-part-of-relation
- ID: 64ef9336bec72f3271090e98
And then we filter on the criteria's below. Then only the relation definition Contains will be found since
it maps to one of the values in both the NUMBER_IN and ID_IN objects. The relation definition
Spare part of will not be found since it only maps to a value in the NUMBER_IN object but not to any
value in the ID_IN object:
  "filters": [
    {
      "type": "NUMBER_IN",
      "values": [
        "contains-relation",
        "spare-part-of-relation"
      ]
    },
    {
      "type": "ID_IN",
      "values": [
        "64ef9336bec72f3271090e97",
        "111111111111111111111111"
      ]
    }
  ]For more detailed information on how to work with relation definitions in Bluestone PIM, refer to our help pages The data model > Relations.
