curl --request PUT \
--url http://0.0.0.0:3000/v1/irrf-commands/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"code": "0000 006C updated...",
"command_name": "power"
}
'{
"id": 1,
"entity_registry_id": 5,
"config_entry_id": 2,
"command_name": "power",
"code": "0000 006C 0022 0002...",
"remote_entity_id": "remote.ir_blaster",
"user_id": "user_abc123"
}curl --request PUT \
--url http://0.0.0.0:3000/v1/irrf-commands/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"code": "0000 006C updated...",
"command_name": "power"
}
'{
"id": 1,
"entity_registry_id": 5,
"config_entry_id": 2,
"command_name": "power",
"code": "0000 006C 0022 0002...",
"remote_entity_id": "remote.ir_blaster",
"user_id": "user_abc123"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID numérico do comando