GET Moh Setting(s)
GET
1) Info of Music on Hold page from the Admin
> Customize
> Music On Hold
rest/system/moh
Success (200 OK)
Example:
Request:
curl -u username:password GET -D - http://192.168.1.194:8080/rest/system/moh
{ 9: { name: "MOH1", file: "audio_upload/moh-9.wav", volume: "", type: "file", domain: "1" }, 10: { name: "moh", file: "audio_upload/moh-10.wav", volume: "", type: "file", domain: "1" }, 17: { name: "fff", file: "", volume: "", type: "file", domain: "2" }, 18: { name: "fff", file: "", volume: "", type: "file", domain: "2" }, 19: { name: "fff", file: "audio_upload/moh-19.wav", volume: "", type: "file", domain: "1" }, 24: { name: "uuu", file: "audio_upload/moh-24.wav", volume: "100", type: "file", domain: "1" }, maxsize: 16777216 }
Response | Code | Description |
---|---|---|
Success | 200 | OK |
Invalid ID supplied | 400 | Only authenticated Admins can access the data |
Permission Denied | 403 | Forbidden |
Not Found | 404 | The id of the User was not found or there are errors in the URL. |
UPDATE Moh Source's page
post
/rest/system/moh
Example:
Request:
curl -u username:password -D - http://localhost:8080/rest/system/moh -X POST -d "{ 'name':'Moh', 'type':'file', 'volume':'80' }"
Response for the Update request:
Response | Code | Description |
---|---|---|
Success | 200 | OK |
Invalid ID supplied | 400 | Only authenticated a Admins can access the data |
Permission Denied | 403 | Forbidden |
Not Found | 404 | The id of the User was not found or there are errors in the URL. |