GET Upload Audio File Setting(s)
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
{ 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: "" } }
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 Upload Audio File's page
post
/rest/system/audio
Example:
Request:
curl -u username:password -D - http://localhost:8080/rest/system/audio -X POST -d "{ 'string':'Vodia', 'type':'true', 'domain':'1' }"
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. |