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

    minLength: 64

    maxLength: 64

  • 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
  • mofmusicfiles

    array

    Show child attributes
  • ismohperday

    integer

    ismohperday

    format : int32

  • iscontrolbehaviour

    boolean

    iscontrolbehaviour
  • enabled

    boolean

    enabled

Sample Response

                      
{}
                      
                    

Update mohserver

POST /update
Update mohserver
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • mofmusicfiles

    array

    required

  • ismohperday

    integer

    required

    ismohperday

    format : int32

  • iscontrolbehaviour

    boolean

    required

    iscontrolbehaviour
  • enabled

    boolean

    required

    enabled

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