A CollectionShare is a Collection that has been made accessible to anyone with the id or slug of the Collection.
Searching allows you to find CollectionShare resources in your Dash matching specific criteria.
A list of sorts can also be provided to control the order in the which the results are returned.
Create a new CollectionShare, making a Collection available to anyone who has one of the CollectionShare.slugs.
Security
bearerToken
The unique ID of the Collection to be shared
Example:"a52b5315-15b8-417f-b742-d6902108bac1"
The datetime the share will expire and no longer be accessible in ISO datetime format. If the expiry is null, the share will never expire.
Default:null
Example:"2021-02-17T09:24:01.417Z"
- Productionhttps://api-v2.dash.app/collection-shares
- Staginghttps://api-v2.dashstaging.app/collection-shares
curl -i -X POST \
https://api-v2.dash.app/collection-shares \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"collectionId": "a52b5315-15b8-417f-b742-d6902108bac1",
"expiry": "2021-02-17T09:24:01.417Z",
"assetPermittedActions": "VIEW"
}'Response
{ "result": { "id": "4517a7ba-a482-4211-b97e-f4256f53fd32", "accountId": "cfb665ca-ce35-4418-b9d5-70ee815db4bd", "collectionId": "a52b5315-15b8-417f-b742-d6902108bac1", "collectionName": "Folders", "currentSlug": "EW7DT/folders", "slugs": [ … ], "expiry": "2021-02-17T09:24:01.417Z", "assetPermittedActions": "VIEW" }, "permittedActions": [ { … } ] }