Forum Discussion

Former_Member's avatar
Former_Member
Ideator I
7 years ago

relationshipType api rest

Hi community,

I'm trying to get the list of all the relationshipTypes of an ItemType thanks to the REST API.

Is this possible ?

Thanks for any help !

Arnaud

17 Replies

  • Hi Arnaud,

    You should be able to do this by querying the "ItemType" ItemType, and returning the "relationshipType" relationship. More in depth information about how to create queries like this can be found in this blog post.

    AJ

    • Former_Member's avatar
      Former_Member
      Ideator I

      Hi Sebastian,

      Thank you for the answer, I'm already using this blog but I didn't find the answer... What is the url used to perform this task ? I already tried plenty of things.

      I should start with : localhost/.../

      But then how can I add  "relationshipType" to get the list I need ? 

      I often get the error message "notImplemented". 

      Best regards

      • cogres's avatar
        cogres
        Ideator I

        Hi Arnaud,

        your request should look something like this

        GET    <URI for your Aras Installation>/server/odata/ItemType('<ID for the ItemType you want to query>')/RelationshipType

        You will need to replace <URI for your Aras Installation> in the URI with the path for your Aras installation (like http://localhost/InnovatorServer) and the given <ID for the ItemType you want to query> with the ID of the ItemType you want to know the RelationshipTypes for.

        Is this what you need?