Upload Greeting Audio File
GET
1) Info of Upload Audio page from the Admin
> Customize
> Upload Audio Files
rest/system/audio
Success (200 OK)
Example:
Request:
curl -u username:password GET -D - http://192.168.1.194:8080/rest/system/audio
View response
{ 1: { file: "audio_upload/audio-1.wav", type: "true", description: "mmh", domain: "" }, 2: { file: "audio_upload/audio-2.wav", type: "false", description: "mmh", domain: "1" }, 3: { file: "audio_upload/audio-3.wav", type: "false", description: "testaudio", domain: "" } }
ResponseCodeDescription
Success200OK
Invalid ID supplied400Only authenticated Admins can access the data
Permission Denied403Forbidden
Not Found404The id of the User was not found or there are errors in the URL.
Delete Greeting Audio file
Deleting personal greetings:
filename (in order of appearance on the page):
name
personal1
personal2
personal3
personal4
personal5
ringback
fetch("https://pbx/rest/user/ext@domain/greetings/filename", {
"method": "POST"
});
curl -u admin:pass https://pbx/rest/user/ext@domain/greetings/filename -X POST
Response for the Update request:
ResponseCodeDescription
Success200OK
Invalid ID supplied400Only authenticated a Admins can access the data
Permission Denied403Forbidden
Not Found404The id of the User was not found or there are errors in the URL.