Date Published: February 27, 2023
New Asset Group Endpoint
Version 1.0 of the Acquia DAM API has long had the ability to return information about asset groups in your Collective app. This same asset group information is now being returned in version 2.0. Custom integrations use asset group endpoints to help organize and permission assets.
The following endpoint is now available for use in v2.0 of the API:
GET /v2/assets/assetgroups
This endpoint is functionally identical to the /api/rest/assetgroups
endpoint in v1.0, but now has added reliability and durability to ensure integrations will get accurate information.
Migration¶
If an integration is already using the endpoint in v1.0, then a simple migration should be performed. To do that:
- Change the endpoint:
- From
https://mysite.widencollective.com/api/rest/assetgroups
- To
https://api.widencollective.com/v2/assets/assetgroups
- Change the response data field from
assetGroups
to items
. See examples below:
Examples¶
v1.0 response shape:
{ "assetGroups": [ { "uuid": "f4aed450-886f-469f-9e8e-5bd5768216c3", "name": "Guest Pass Uploads" }, { "uuid": "a4e15933-a240-4a6b-8e61-e876148feb4a", "name": "mobile" } ]}
v2.0 response shape:
{ "item_type": "assetgroup", "total_count": 2, "items": [ { "uuid": "f4aed450-886f-469f-9e8e-5bd5768216c3", "name": "Guest Pass Uploads" }, { "uuid": "a4e15933-a240-4a6b-8e61-e876148feb4a", "name": "mobile" } ]}
An in-depth look is available in our API documentation. Please don't hesitate to reach out to our Support team with any questions.
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.