PATCH
/
assets
/
{id}
curl --request PATCH \
  --url https://api.dock.so:4000/{version}/assets/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Logo",
  "description": "Logo of the asset",
  "tagIds": [
    "RiHO4e0Ju3DS"
  ]
}'
{
  "data": {
    "asset": {
      "id": "RiHO4e0Ju3DS",
      "updatedAt": "2021-01-01T00:00:00.000Z",
      "createdAt": "2021-01-01T00:00:00.000Z",
      "tags": [
        {
          "id": "RiHO4e0Ju3DS",
          "updatedAt": "2021-01-01T00:00:00.000Z",
          "createdAt": "2021-01-01T00:00:00.000Z",
          "object": "tag",
          "url": "https://api.dock.us/v1/tags/RiHO4e0Ju3DS",
          "title": "Logo"
        }
      ],
      "object": "asset",
      "url": "https://api.dock.us/v1/assets/RiHO4e0Ju3DS",
      "name": "Logo",
      "description": "Logo of the asset",
      "views": 100,
      "shares": 100,
      "assetType": "image",
      "assetUrl": "https://dock.us/logo.png"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Unique identifier

Example:

"RiHO4e0Ju3DS"

Body

application/json
Asset to update
name
string

Name of the asset

Example:

"Logo"

description
string

Description of the asset

Example:

"Logo of the asset"

tagIds
string[]

IDs of the tags to associate with the asset

Id of the object

Response

200
application/json
Asset updated
data
object