Skip to content

Update an asset share

Request

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

Security
bearerToken
Path
idstringrequired

The unique ID of the AssetShare

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/asset-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", "author": { … }, "assetIds": [ … ], "expiry": "2021-02-17T09:24:01.417Z", "assetPermittedActions": "VIEW", "valid": true }, "permittedActions": [ { … } ] }