Retrieve moh server
GET
/show
Retrieve moh server by it's unique ID.
Path parameters
-
access_tokenstring
required
token to be passed as a header -
namestring
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
-
iscontrolbehaviourboolean
iscontrolbehaviour -
ismohperdayinteger
ismohperday -
enabledboolean
enabled -
mofmusicfilesarray
Show child attributes
Sample Response
{}
Update mohserver
POST
/update
Update mohserver
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
iscontrolbehaviourboolean
required
iscontrolbehaviour -
ismohperdayinteger
required
ismohperday -
enabledboolean
required
enabled -
mofmusicfilesarray
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