Last Updated on : 2023-06-15 05:17:42
Update the information about infrared codes learned by a remote control based on the remote control ID.
PUT: /v2.0/infrareds/{infrared_id}/remotes/{remote_id}/learning-codes
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| infrared_id | String | uri | true | The device ID. |
| remote_id | String | uri | true | The ID of a specified remote control. |
Description of body
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| category_id | Integer | false | The ID of a specified category. | |
| brand_id | Integer | false | The ID of a specified brand. | |
| brand_name | String | false | The name of a specified brand. | |
| remote_name | String | false | The name of a specified remote control. | |
| codes | List | false | The list. |
Description of codes
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| category_id | Integer | false | The ID of a specified category. | |
| key_name | String | false | The name of a specified key. | |
| key | String | true | The key of a specified infrared code. | |
| code | String | true | The infrared code. | |
| id | Long | false | The key ID. |
| Parameter name | Type | Description |
|---|---|---|
| result | String | The operation result. |
PUT: /v2.0/infrareds/vdevo15345926009****/remotes/d5s65ca55/learning-codes
{
"category_id": 1,
"remote_name": "test",
"codes": [
{
"code": "c42230112602f401260226022602260226022602260226022602260226027206260226022602720626027206260272062602720626027206260272065802f401260272062602260226027206260226022602260226024006260226022602260226022602260272062602260226027206260272062602260258024006260272062602720626024c9af62266082602****",
"name": "test"
}
]
}
{
"result": "d5s65ca55",
"t": 1631089922125,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback