# Images

### Upload Image

<mark style="color:green;">`POST`</mark> `/v1/cards/{CARD_UUID}/ asset/upload`

#### Headers

| Name                                           | Type   | Description         |
| ---------------------------------------------- | ------ | ------------------- |
| Content-Type<mark style="color:red;">\*</mark> | String | multipart/form-data |

#### Request Body

| Name                                     | Type    | Description                   |
| ---------------------------------------- | ------- | ----------------------------- |
| file<mark style="color:red;">\*</mark>   |         |                               |
| public<mark style="color:red;">\*</mark> | boolean | `1`                           |
| type<mark style="color:red;">\*</mark>   | enum    | `avatar` ,  `logo` or `cover` |

{% tabs %}
{% tab title="200: OK " %}

{% endtab %}
{% endtabs %}

### Delete Image

<mark style="color:green;">`POST`</mark> `/v1/cards/{CARD_UUID}/ cdn/{IMAGE_UUID}/delete`

#### Headers

| Name                                           | Type   | Description      |
| ---------------------------------------------- | ------ | ---------------- |
| Content-Type<mark style="color:red;">\*</mark> | String | application/json |

#### Request Body

| Name                                   | Type | Description                   |
| -------------------------------------- | ---- | ----------------------------- |
| type<mark style="color:red;">\*</mark> | enum | `avatar` ,  `logo` or `cover` |

{% tabs %}
{% tab title="200: OK " %}

{% endtab %}
{% endtabs %}
