Logo
15_Days_of_Postman_-_for_testers_IvanKo API Documentation

Get all linked relations

GET https://api.getpostman.com/apis/{{apiId}}/versions/{{apiVersionId}}/relations

Gets all of an API version's relations.

Note:

In Qodex v10 and higher, this endpoint returns the following:

  • The unclassified relation is for documentation and testing. This is the default relation type.
  • The apiDefinition relation is the relation used for API definitions.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "relations": { "apiDefintion": { "16bb367e-fafb-4ef3-933b-ee3d971866fb": { "id": "16bb367e-fafb-4ef3-933b-ee3d971866fb" } }, "unclassified": { "b9bccf0f-e06a-433d-b556-a3cd158f0270": { "id": "b9bccf0f-e06a-433d-b556-a3cd158f0270", "name": "Test Collection", "createdAt": "2023-01-30T17:41:50.000Z", "updatedAt": "2023-01-19T14:50:05.000Z" } }, "schema": { "16bb367e-fafb-4ef3-933b-ee3d971866fb": { "id": "16bb367e-fafb-4ef3-933b-ee3d971866fb" } } } }



Curl
curl -X GET 'https://api.getpostman.com/apis/apiId/versions/apiVersionId/relations'

ENDPOINTS