Modify Learning Status

Last Updated on : 2023-06-20 14:54:06download

Modify the learning status of a device by the device ID.

API address

PUT: /v2.0/infrareds/{infrared_id}/learning-state

Request parameter

Parameter name Type IN Required Description
infrared_id String uri true The device ID.
state Boolean query true The learning status.

Return parameter

Parameter name Type Description
result Boolean The operation result.

Request example

PUT: /v2.0/infrareds/vdevo15345926009****/learning-state?state=true

Return example

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

Error code

For more information, see error code.