---
title: "Replace Media"
method: PUT
path: "/v4/accounts/{voip_id}/media/{id}"
tags: ["Media"]
---

# Replace Media

`PUT /v4/accounts/{voip_id}/media/{id}`

## Request

- Base URL: `https://api.phone.com`
- URL: `https://api.phone.com/v4/accounts/{voip_id}/media/{id}`
- Auth: HTTP bearer

Update a media object to your account. Note: The maximum size for media files or JSON objects included with a POST or PUT request is 10 MB.

## Path parameters

- `voip_id` integer, required
- `id` integer, required

## Request body

- Recording
  - `name` string, required: Name of recording
  - `type` 'hold_music' | 'greeting', nullable: Can be hold_music or greeting. Indicates the purpose of this recording and where it can be used.
  - `origin` 'file' | 'tts', required: Can be 'file' or 'tts'.
  - `duration` integer, nullable: Duration of greeting.
  - `notes` string, nullable: Notes of greeting.
  - `randomized` boolean, nullable: Can be Y or N. Start the greeting from random location, instead of the beginning.
  - `extension` integer, nullable: Extension that this record belongs to.
  - `tts_text` string, nullable: Text used for text-to-speech conversion, maximum 800 characters
  - `tts_voice` 'Mads / Danish' | 'Naja / Danish' | 'Lotte / Dutch' | 'Ruben / Dutch' | 'Nicole / English (Australia)' | 'Russell / English (Australia)' | 'Amy / English (Great Britain)' | 'Brian / English (Great Britain)' | 'Emma / English (Great Britain)' | 'Raveena / English (India)' | 'Ivy / English (US)' | 'Joanna / English (US)' | 'Joey / English (US)' | 'Justin / English (US)' | 'Kendra / English (US)' | 'Kimberly / English (US)' | 'Salli / English (US)' | 'Geraint / English (Wales)' | 'Celine / French' | 'Mathieu / French' | 'Chantal / French (Canada)' | 'Hans / German' | 'Marlene / German' | 'Vicki / German' | 'Dora / Icelandic' | 'Karl / Icelandic' | 'Carla / Italian' | 'Giorgio / Italian' | 'Mizuki / Japanese' | 'Takumi / Japanese' | 'Seoyeon / Korean' | 'Liv / Norwegian' | 'Jacek / Polish' | 'Jan / Polish' | 'Ewa / Polish' | 'Maja / Polish' | 'Ricardo / Portuguese' | 'Vitoria / Portuguese' | 'Cristiano / Portuguese (Brazil)' | 'Ines / Portuguese (Brazil)' | 'Carmen / Romanian' | 'Maxim / Russian' | 'Tatyana / Russian' | 'Conchita / Spanish' | 'Enrique / Spanish' | 'Miguel / Spanish (Latin America)' | 'Penelope / Spanish (Latin America)' | 'Astrid / Swedish' | 'Filiz / Turkish' | 'Gwyneth / Welsh', nullable: Allowed voices for tts
  - `file` string, nullable: Record file.
  - `filename` string, nullable: Name of file to be uploaded, when 'origin' is set to 'file'.

## Response `200`

OK

- object

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Validation failed
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com.md) · [All operations](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com/llms.txt) · [OpenAPI document](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com/revisions/a6274ad4319c?raw)
