Logo
15_Days_of_Postman_-_for_testers_IvanKo API Documentation

Get a collection's roles

GET {{baseUrl}}/collections/{{collectionId}}/roles

Gets information about all [roles] in a collection. The response returns the IDs of all users, teams, and groups with access to view or edit the collection.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "group": [ { "role": "VIEWER", "id": 321 } ], "team": [ { "role": "EDITOR", "id": 123 } ], "user": [ { "role": "VIEWER", "id": 12345678 }, { "role": "EDITOR", "id": 87654321 } ] }



Curl
curl -X GET 'https://api.getpostman.com/collections/collectionId/roles'

ENDPOINTS