Bulk Delete Scheduled Tasks

Last Updated on : 2023-06-20 12:39:05

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.