Moh server
Retrieve moh server information.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200
OK
application/json
4XX
Error
get
/moh_serverGET /api/moh_server HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"enabled": true,
"play_type": "DEFAULT_MUSIC"
}Update moh server
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
enabledbooleanOptional
Enable MOH service or not.
play_typestring · enumOptionalPossible values:
Set MOH personalized music by these modes:
DEFAULT_MUSIC:RANDOM_MUSIC_PER_CALL:RANDOM_MUSIC_PER_DAY:
Responses
200
OK
4XX
Error
post
/moh_serverPOST /api/moh_server HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 44
{
"enabled": true,
"play_type": "DEFAULT_MUSIC"
}No content