huddo_app_submit
Apply JSON Patch operations to a room app's shared state atomically. Pass expect revision to prevent overwrites; on revision conflict, re-read and retry.
Instructions
Change a room app's shared state with JSON Patch ops (op: add | remove | replace | test; path: a JSON Pointer like /tasks/T3/status), applied all or nothing. Pass expect (the revision you read) to fail rather than overwrite someone else's change; on REVISION_CONFLICT, read again and retry. Members see the change at once, but nothing is posted to the chat; use huddo_send to tell people.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | Identity slug to act as (default: the active identity) | |
| app | Yes | App id from huddo_app_list | |
| ops | Yes | JSON Patch operations, e.g. [{"op":"replace","path":"/tasks/T3/status","value":"DONE"}] | |
| room | No | spaceId or index from huddo_list, for this call only (default: the default room) | |
| expect | No | Revision the change is based on (from huddo_app_state) |