Update Asset

PATCH /api/v2/assets/:asset_id

Path Parameters

Name
Type
Description

asset_id

string

Asset UUID

Headers

Name
Type
Description

Authorization

string

Bearer token

Content-Type

string

application/vnd.api+json

Request Body

Name
Type
Description

name

string

Asset name

alt_text

string

Asset alt. text

// No content

Example

PATCH /api/v2/assets/:asset_id

Path Parameters

Name
Type
Description

asset_id

string

Asset UUID

Headers

Name
Type
Description

Authorization

string

Content-Type

string

application/vnd.api+json

Request

{
  "data": {
    "id": "a8e22ad3-b8b1-4fe2-a08a-45e5ba39df7d",
    "type": "assets",
    "attributes": {
      "name": "My Asset",
      "alt_text": "My Asset"
    }
  }
}

Attributes

Name
Type
Description

name

strings

Asset name

alt_text

strings

Asset alt text

Response

204 No Content

Example

curl -i --request PATCH \
  --url https://environment.monterosa.cloud/api/v2/assets/00b76e4e-8818-4ae6-91fc-a484c1a6840f \
  --header 'Authorization: Bearer rJURvA6XuuHxG5RHauqR1yy64JQcTfGu' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
    "data": {
      "type": "assets",
      "id": "00b76e4e-8818-4ae6-91fc-a484c1a6840f",
      "attributes": {
        "name": "My Asset",
        "alt_text": "My Asset"
      }
    }
  }'

Last updated