Was this helpful?
Retrieve moh server information.
curl -L \ --url 'https://HOSTNAME:8887/api/moh_server' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{ "enabled": true, "play_type": "DEFAULT_MUSIC" }
Update moh server
Enable MOH service or not.
Set MOH personalized music by these modes:
DEFAULT_MUSIC
RANDOM_MUSIC_PER_CALL
RANDOM_MUSIC_PER_DAY
curl -L \ --request POST \ --url 'https://HOSTNAME:8887/api/moh_server' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \ --header 'Content-Type: application/json' \ --data '{ "enabled": true, "play_type": "DEFAULT_MUSIC" }'
No body