Update Custom Channel Table

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

Update the custom channel table, and determine whether to add or modify the channel table depending on the condition whether the custom channel table ID is passed in.

API address

PUT: /v2.0/infrareds/{infrared_id}/remote/{remote_id}/custom/{submit_id}

Request parameter

Parameter nameTypeINRequiredDescription
infrared_idStringuritrueThe device ID.
submit_idLongurifalseThe ID of a custom channel table. If the ID is not passed, the API operation will be regarded as adding a channel table.
area_idIntegeruritrueThe ID of the specified region.
sp_idIntegeruritrueThe ID of the specified carrier.
remote_idStringuritrueThe ID of the specified remote control.

Return parameter

Parameter nameTypeDescription
resultBooleanThe operation result.

Request example

PUT: /v2.0/infrareds/vdevo15345926009****/remote/d5s65c***/custom/0

Return example

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

Error code

For more information, see error code.