postman-docs icon indicating copy to clipboard operation
postman-docs copied to clipboard

Update the API documentation - Get Single Collection

Open cyrielle-hada opened this issue 6 years ago • 6 comments

Update the API documentation https://docs.api.getpostman.com/?version=latest#647806d5-492a-eded-1df6-6529b5dc685c

Our current API documentation says that we're able to GET a single collection with collection uid using the endpoint https://api.getpostman.com/collections/{{collection_uid}}.

It is now supported that the endpoint works as well using the collection_id.

cyrielle-hada avatar May 23 '19 14:05 cyrielle-hada

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 20 '19 21:11 stale[bot]

@cyrielle-hada I tried to get the https://api.getpostman.com/collections/{{collection_uid}} endpoint work using the collection_id instead of collection_uid but couldn't get it to work. Do you have any more info on how this is supposed to work?

(also yes, it's almost a year later... better late than never 🙈 )

arlemi avatar Mar 09 '20 10:03 arlemi

@arlemi I've just tried this against my account with both the id and uid key values, taken from the All Collections endpoint. The single collection was being returned when I used either value. 🤷‍♂ 😄

DannyDainton avatar Mar 11 '20 14:03 DannyDainton

Tried a bit more, id works only for collections that are in your personal workspace, for other collections, it gives the following error:

{
    "error": {
        "name": "instanceNotFoundError",
        "message": "We could not find the collection you are looking for"
    }
}

uid works for all collections that you have access to.

Can one of you confirm?

arlemi avatar Mar 12 '20 11:03 arlemi

@arlemi That sounds and looks about right to me.

I had a collection in a Team Workspace, using the id value gave me a 404 and that same response message you received.

Using the uid returned the single collection as I had access to that one.

DannyDainton avatar Mar 12 '20 11:03 DannyDainton