Closed dgrothman closed 2 months ago
Simple commands cannot be edited with the PATCH /entities/:entityId
endpoint. This only allows to change name, icon and description. See documentation & EntityUpdateRequest
object:
https://github.com/unfoldedcircle/core-api/blob/fbf50d34cefa4e4bcbeb1e3cbe6fe80c1d705c74/core-api/rest/UCR-core-openapi.yaml#L2456-L2486
The simple commands are provided by the corresponding integration and cannot be changed with the Core-API. Since you mentioned the node api (I assume you mean the Node.js API wrapper library), the commands have to be changed in the entities of your integration driver. The options in the Remote's entities are synchronized when the available entities are reloaded in the corresponding integration in the web-configurator.
Description
When creating an entity via the node api it gets created without any simple commands in the options, if I try and use the api to do a patch to the entity it responds with a 200 success but doesn't actually add the simple commands to the options
How to Reproduce
Steps to reproduce the behavior:
Expected behavior
To have the simple_commands added to the options
Screenshots
Your Environment
Additional context
Here is the json i am sending: { "options": { "simple_commands": ["CURSOR_UP", "CURSOR_DOWN", "CURSOR_LEFT", "CURSOR_RIGHT", "OK", "BACK", "MENU", "EXIT", "INFO", "RED", "GREEN", "YELLOW", "BLUE"] } } PATCH to {{SERVER}}/api/entities/:entityId