Delete an Alarm
Delete an alarm of an extension.
Endpoint
POST /api/v0.0.1/wakeupcall/delete?token={token}&type={type}
Request Parameters
Name | Importance | Type | Description |
wakeupid | Optional | String | A unique Identifier for the alarm. Without this parameter, it means to delete all alarms of the specified extension.
Delete an alarm: Set wakeupid to the alarm ID. Example: “wakeupid”:”8″ Delete multiple alarms: Set wakeupid to the alarm ID. Separate multiple alarms with ,. Example: “wakeupid”: “8,9” Delete all alarms: Do not send wakeupid parameter. |
Response Parameters
Name | Type | Description |
status | String | Request results.
Success: Success. Failed: failed. |
Examples
Request Example
Delete the alarm of extension 106.
POST /api/v2.0.0/wakeupcall/delete?token=1e3b3ebb6a974cb42ed31de5413df52d
Content-Type:application/json; charset=utf-8
Host: 192.168.5.150
{
“wakeupid”:”106″
}
Response Example
HTTP/1.1 200 OK
Accept-Ranges: bytes
Connection: close
Content-Type: application/json
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
{
“status”: “Success”
}
HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
<?xml version=”1.0″ encoding=”utf-8″?>
<xml>
<status>Success</status>
</xml>