Delete an Alarm

Delete an alarm of an extension.

Endpoint

POST /api/v1.1.0/wakeupcall/delete?token={token}

Request Parameters

Note: To delete multiple alarms, separate the wakeupid with ,. For example:
 {"extid": "1000","wakeupid":"1,2"}
Name Importance Type Description
extid Required Int The extension number.
wakeupid Optional String A unique Identifier for the alarm.
  • Delete an alarm: Set wakeupid to the alarm ID.

    Example: "wakeupid":"1"

  • Delete multiple alarms: Set wakeupid to the alarm ID. Separate multiple alarms with ,.

    Example: "wakeupid": "1,2"

  • Delete all alarms: Do not send wakeupid parameter.

Examples

Request Example

Delete the alarm 1 of extension 1000.

POST /api/v1.1.0/wakeupcall/delete?token=1e3b3ebb6a974cb42ed31de5413df52d HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 192.168.5.150
{
    "extid": "1000",
    "wakeupid": "1"
}

Delete all alarms of extension 1000.

POST /api/v1.1.0/wakeupcall/delete?token=1e3b3ebb6a974cb42ed31de5413df52d HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 192.168.5.150
{
    "extid": "1000"
}
Response Example
HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
{
    "status": "Success"
}