Skip to content

Update a collection share

Request

Update when an existing collection share expires or whether people with the link can download its assets.

Security
bearerToken
Path
idstringrequired

The unique ID of the CollectionShare

Bodyapplication/jsonrequired
expiryobject
assetPermittedActionsstring

Permissions users have on assets they are viewing

Enum:"VIEW""VIEW_AND_DOWNLOAD"
Example:"VIEW"
curl -i -X PATCH \
  'https://api-v2.dash.app/collection-shares/{id}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "expiry": {
      "value": "2021-02-17T09:24:01.417Z"
    },
    "assetPermittedActions": "VIEW"
  }'

Responses

Success

Bodyapplication/json
resultobjectrequired
permittedActionsArray of objectsrequired
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": [ { … } ] }