Replaces the audio of the MoH file 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, Reseller, or Super User scope. Site Manager can read domain MoH but not change it. To replace the audio with text to speech, POST to /domains/{domain}/moh 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.