put
https://api.emaktalk.com/api/v2/voicemail_boxes//greetings//content
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-IdandCache-Control: private, no-store.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
