Retrieve monitor

GET /show
Retrieve monitor
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Sample Request

                      curl -v -X GET http://127.0.0.1:8990/api/monitor/show \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                      
                    

Responses

200
Successful operation
application/json
  • extension_number

    string

    Extension number of monitor.
  • enable

    boolean

    enable monitor.

Sample Response

                      
{}
                      
                    

Update an monitor

POST /update
Update an monitor
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • extension_number

    string

    required

    Extension number of monitor.
  • enable

    boolean

    required

    enable monitor.

Sample Request

                      curl -v -X POST http://127.0.0.1:8990/api/monitor/update \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                          -d '{}'
                      
                    

Responses

200
Successful operation

Sample Response