Replace a greeting's audio

Replaces the greeting's audio with the request body, and answers the greeting with its new ETag. Its id, digit, name and place as default or away greeting stay; a spoken greeting becomes recorded (text, tts_voice_id and style become null).

Example: a 16 kHz mono 16-bit PCM WAV:

PUT /voicemail_boxes/b3f1c2a9-7d4e-4a8b-9c6f-2e5d8a1b4c70/greetings/c7e2a4b6-8d0f-4a2c-9e4f-6b8d0f2a4c61/content
If-Match: "a91d3c5e7f9b1d3f5a7c9e1b3d5f7a9c"
Content-Type: audio/wav
Content-Length: 288044

<the WAV file's bytes>

What can go wrong: not audio/wav or audio/mpeg: 415 media_type_unsupported. Over 10 MB: 413 request_too_large. Bytes that aren't a WAV or an MP3, or don't match Content-Type: 400 media_invalid. Changed since you read it: 412 precondition_failed.

Notes:

  • A link to the old audio handed out before keeps working for the hour it lasts, and plays the new audio.
  • Every answer carries X-Request-Id and Cache-Control: private, no-store.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required

The box's id, from GET /voicemail_boxes (or GET /me's extensions[].voicemail.id).

uuid
required

The greeting's id, from GET /voicemail_boxes/{voicemail_box_id}/greetings.

Body Params

The audio itself: any PCM WAV (16 kHz mono included) or an MP3, at most 10 MB, with its real Content-Type.

Headers
string

The etag you read (the ETag header). If it changed since, nothing is changed and the answer is 412 precondition_failed: read it again and resend your change. Leave it out to change whatever is there now.

uuid

Send Account-Id when your credentials reach more than one account (GET /me lists them in accounts). An API key acts in its own account, and a person in one organization in theirs: neither needs it. A person in several organizations must name it on every write (400 account_required); their reads without it use their home account. Credentials with no home account in GET /me need it on every request but GET /me. An account your credentials can't act in: 403 forbidden. Empty, not an account id, or sent twice: 400 parameter_invalid. Each names Account-Id in param.

string
enum
Defaults to audio/wav

Generated from available request content types

Allowed:
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json