# Update audio

### API Endpoint

```http
POST /media/audio/generateSignedUrl/:audioId
Host: api.audicient.com
Authorization: <API_KEY>:<API_SECRET>
```

### Request Body Schema

| Parameter   | Type   | Description                 |
| ----------- | ------ | --------------------------- |
| fileName    | string | Name of the file. Required. |
| contentType | string | Must be `audio/wav`.        |
| duration    | number | Must be a positive number.  |

### Authentication Requirements

All requests must include authentication credentials.

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

### Example Request

```json
{
  "fileName": "sample.wav",
  "contentType": "audio/wav",
  "duration": 180
}
```

### Success Response

```json
{
  "success": true,
  "message": "Object storage signed url has been generated successfully",
  "data": {
    "signedUrl": "https://storage.audicient.com/upload/sample.wav"
  }
}
```

### Uploading the File

Once the signed URL is received, upload the audio file using an HTTP `PUT` request.

#### Example Upload Request

```http
PUT https://storage.audicient.com/upload/sample.wav //signedurl from response
Content-Type: audio/wav

<binary file data>
```
