# Update Asset

<mark style="color:purple;">`PATCH`</mark> `/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 |

{% tabs %}
{% tab title="204 " %}

```javascript
// No content
```

{% endtab %}
{% endtabs %}

## Example

<mark style="color:blue;">`PATCH`</mark> `/api/v2/assets/:asset_id`

#### Path Parameters

| Name      | Type   | Description |
| --------- | ------ | ----------- |
| asset\_id | string | Asset UUID  |

#### Headers

| Name          | Type   | Description                                                               |
| ------------- | ------ | ------------------------------------------------------------------------- |
| Authorization | string | [Bearer token](https://products.monterosa.co/mic/overview#authentication) |
| Content-Type  | string | application/vnd.api+json                                                  |

#### Request

```json
{
  "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

```bash
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"
      }
    }
  }'
```
