Retrieve Collection
GET
v1/collections
Retrieve Collection by providing projectId in the form of query parameter The API response provides you the collection ID
Resource Information
Method and URI | GET https://developer.api.autodesk.com/exchange/v1/collections |
Authentication Context | app only |
Required OAuth Scopes | data:read |
Data Format | JSON |
Request
Headers
Authorization* string | Must be Bearer <token> , where <token> is obtained via OAuth |
* Required
Request
Query String Parameters
filters* string | Filter to use when querying collections (attribute.projectId). You can specify filters separated by semicolons. Example: attribute.projectId==3667a2b3-37b9-457c-9274-122986c15e39 |
* Required
Response
HTTP Status Code Summary
200 OK | The CollectionId is retrieved successfully. |
400 Bad Request | The request is invalid. |
401 Unauthorized | Invalid authorization header. |
403 Forbidden | Access denied regardless of authorization status. |
404 Not Found | The specified resource was not found. |
500 Internal Server Error | Unexpected service interruption. |
Response
Body Structure (200)
id string | The value of the collectionId |
Example
The CollectionId is retrieved successfully.
Request
curl -v 'https://developer.api.autodesk.com/exchange/v1/collections?filters=attribute.projectId==3667a2b3-37b9-457c-9274-122986c15e39' \
-H 'Authorization: Bearer AuIPTf4KYLTYGVnOHQ0cuolwCW2a'
Response
{
"id": "gVJO0hQRbG3CoctIxPo71S_L2C"
}