Update Timer Task Group Status

Last Updated on : 2023-12-07 03:33:48

Update the status of a specified device timer task group.

API address

PUT: /v1.0/devices/{devId}/timers/categories/{category}/groups/{group_id}/status

Request parameter

Parameter nameTypeINRequiredDescription
devIdStringuritrueThe device ID.
group_idStringuritrueThe ID of a specified timer task group.
categoryStringuritrueThe category of a specified timer task group.

Description of body

Parameter nameTypeINRequiredDescription
valueStringbodytrueThe status of a specified timer task. Valid values:
0: Disable the timer task.
1: Enable the timer task.
2: Delete the timer task.

Return parameter

Parameter nameTypeDescription
resultBooleanThe returned result.

Request example

PUT: /v1.0/devices/vdevo15445800464****/timers/categories/100/groups/000***2ftg/status
{
  "value": "0"
}

Return example

{
    "result": true,
    "success": true
}

Error code

For more information, see error code.