Bulk Delete Scheduled Tasks

Last Updated on : 2024-05-20 08:53:08download

Delete multiple scheduled tasks under the specified device in bulk.

API address

DELETE: /v2.0/cloud/timer/device/{device_id}/batch

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringpathtrueThe device ID.
timer_idsStringquerytrueThe ID of the specified scheduled task. Multiple IDs are separated with commas (,). Example: 1***,2***.

Return parameter

Parameter nameTypeDescription
resultBooleanThe returned result.

Request example

DELETE: /v2.0/cloud/timer/device/6ccb7dc348af04adf3***?timer_ids=1****,2****

Return example

{
    "tid": "e86d6fc3d1f311eda27e525400d49d82",
    "result": true,
    "t": 1680508102770,
    "success": true
}

Error code

For more information, see error code.

Limits on API Request Frequency

For more information, see Limits on API Request Frequency.