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. Any user can change its own MoH. Office Manager and Call Center Supervisor can change any user's MoH in their domain, Site Manager at its own site, Reseller in its territory, and Super User any user's. To replace the audio with text to speech, POST to /domains/{domain}/users/{user}/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.