# Update image

### API Endpoint

```
POST /media/image/upload/:imageId
Host: api.audicient.com
Authorization: <API_KEY>:<API_SECRET>
```

### Path Parameters

| Parameter | Type | Description                                   |
| --------- | ---- | --------------------------------------------- |
| imageId   | uuid | imageId to which you want to update the image |

### Query Parameters

| Parameter | Type    | Description                                                                                   |
| --------- | ------- | --------------------------------------------------------------------------------------------- |
| isTemp    | boolean | Defaults to `true` (deleted in 24 hours if unused). Use `false` only for user profile images. |
| isRelease | boolean | Required if uploading a release artwork. If `true`, `isTemp` is automatically `true`.         |

### Authentication Requirements

All requests must include authentication credentials.

* **Authorization Header**: Pass the API key and secret as `<API_KEY>:<API_SECRET>`.

### Example Requests

#### Temporary Image Upload

```
POST /media/image/upload?isTemp=true
Host: api.audicient.com
Authorization: <API_KEY>:<API_SECRET>
```

#### Release Artwork Upload

```
POST /media/image/upload?isRelease=true
Host: api.audicient.com
Authorization: <API_KEY>:<API_SECRET>
```

### Success Response

```json
3de41ce3-7a89-407b-b2e7-01117c818595
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://audicient.gitbook.io/audicient/media/image/update-image.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
