Delete Alarms

Delete one or multiple alarms for a specific extension.

Request URL

GET {base_url}/{api_path}/wakeupcall/delete?access_token={access_token}

Request parameters

Table 1.
Parameter Required Type Description
ext_id Yes Integer The unique ID of an extension.
Note: You can query extension's ID using Search Specific Extensions.
wakeup_call_id No Integer The unique ID of an alarm.
  • Delete an alarm: Enter the alarm ID.
  • Delete multiple alarms: Enter multiple IDs, use comma to separate multiple IDs.
  • Delete all alarms: Do not send wakeup_call_id parameter.
Note: You can query alarm's ID using Query Alarm List.

Response parameters

Table 2.
Parameter Type Description
errcode Integer Returned error code.
  • 0: Succeed.
  • Non-zero value: Failed.
Note: You can check the error code and error message in Error Code and Error Message.
errmsg String Returned message.
  • SUCCESS: Succeed.
  • FAILURE: Failed.

Examples

Request example

GET /openapi/v1.0/wakeupcall/delete?ext_id=223&wakeup_call_id=15&access_token=ojPrvnfzPdwc8OCcRmhG16gEHuZcwFco HTTP/1.1
Host: 192.168.5.150:8088

Response example

HTTP/1.1 200 OK
{
    "errcode": 0,
    "errmsg": "SUCCESS"
}