Replaces the audio of the hold message at index with an uploaded file or a base64 file, or changes only its description. The index does not change. Requires Office Manager, Call Center Supervisor, Route Manager, Reseller, or Super User scope. Site Manager can read domain hold messages but not change them. To replace the audio with text to speech, POST to /domains/{domain}/msg with the same index.
Request
Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Path Params
Body Params
multipart/form-data
Required
Responses
🟢202Accepted
application/json
The change is accepted and applied shortly after. A request with neither audio nor file-script-text changes nothing and still answers 202.
Bodyapplication/json
🟠404
🟠400
🟠401
🟢200OK
🟠403Forbidden
🔴507Insufficient Storage
🔴500Internal Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request PUT 'https://awqacore01.crexendocloud.com/ns-api/v2/domains//msg/1' \
--header'Authorization: Bearer <token>' \
--form'file=@""' \
--form'file-script-text="Thank you for holding. Visit example.com for our current offers."' \
--form'synchronous="yes"'