Forum Discussion

ssreekesh's avatar
ssreekesh
Ideator I
2 years ago

ARAS REST API - How do I get properties of a RelationshipType

The Properties of an ItemType can be retrieved using the below URL

/odata/ItemType('<<item_type_id>>')/Property

But when we try to do the same for RelationshipType using the below URL, getting 404 not found error

/odata/RelationshipType('<<relationship_type_id>>')/Property

{
    "error": {
        "code": "NotFound",
        "message": "Property 'Property' of 'RelationshipType' itemtype not found"
    }
}
How do I retrieve properties of a RelationshipType using ARAS REST API?

3 Replies

  • For each Retaionship Type you have automatically an ItemType created with the same name, so you should be able to use the /odata/ItemType('<<item_type_id>>')/Property which you already know 

    • ssreekesh's avatar
      ssreekesh
      Ideator I

      Will /odata/ItemType?$filter=is_relationship eq '1' return me all this automatically created ItemType for RelationshipTypes?

      • Eva_DHR's avatar
        Eva_DHR
        Ideator I

        Yes, this will return all ItemTypes that are representing a RelationshipType. You can further filter by name, to get only the one you need - it's name is going to be the same as the one of the RelatiinshipType