Retrieve moh server
GET
/show
Retrieve moh server by it's unique ID.
Path parameters
-
access_token
string
required
token to be passed as a header -
name
string
optional
The name of moh server.
Sample Request
curl -v -X GET http://127.0.0.1:8990/api/mohserver/show \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
Successful operation
application/json
-
iscontrolbehaviour
boolean
iscontrolbehaviour -
ismohperday
integer
ismohperday -
enabled
boolean
enabled -
mofmusicfiles
array
Sample Response
{}
Update mohserver
POST
/update
Update mohserver
Path parameters
-
access_token
string
required
token to be passed as a header
Request body
application/json
-
iscontrolbehaviour
boolean
required
iscontrolbehaviour -
ismohperday
integer
required
ismohperday -
enabled
boolean
required
enabled -
mofmusicfiles
array
required
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/mohserver/update \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{}'
Responses
200
Successful operation
Sample Response