Show

GET /mohserver/show
Show mohservers

Request

Placeholders
  • access_token

    string

    required

    Access token is a 32-byte string with validity of 30 seconds.

Sample Request

https://example.com/api/mohserver/show?access_token=196ACE20C6F34027895F7F95402BB164

Response

Placeholders
  • enabled

    boolean

    optional

  • iscontrolbehaviour

    boolean

    optional

  • mofmusicfiles

    array

    required

    Show child attributes

Sample Response

{
    "enabled": true,
    "ismohperday": 1,
    "iscontrolbehaviour": false,
    "mofmusicfiles": [
        {
            "key": 1,
            "name": "name 1",
            "path": "path 1"
        }
    ]
}

Update

POST /mohserver/update
Update mohservers

Request

Placeholders
  • access_token

    string

    required

    Access token is a 32-byte string with validity of 30 seconds.
  • enabled

    boolean

    optional

  • iscontrolbehaviour

    boolean

    optional

  • mofmusicfiles

    array

    required

    Show child attributes

Sample Request

{
    "access_token": "196ACE20C6F34027895F7F95402BB164",
    "enabled": true,
    "ismohperday": 1,
    "iscontrolbehaviour": false,
    "mofmusicfiles": [
        {
            "key": 1,
            "name": "name 1",
            "path": "path 1"
        }
    ]
}

Response

Placeholders

Sample Response

Update a moh server audio data

POST /api/mohserver/audio_prompt_file/update

Request

"curl -H "username: admin" -H "password: admin" -H "index: 2" --form "fileupload=@transfer.wav" http://yourip:8899/api/mohserver/audio_prompt_file/update"

Sample Request

Response

Placeholders

Sample Response