Audio File

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.

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.