store_put
Store a JSON record in a SOIL collection, using a provided ID to overwrite or auto-generating one. Returns the ID and an action based on deviation thresholds.
Instructions
Write a JSON record to a named SOIL collection (created on first write).
Pass record_id to pin a stable ID — re-putting the same ID overwrites the
record; omit it to auto-generate one. deviation (radians) declares how far
this write departs from established pattern: >= 0.785 is recorded as 'flag',
= 1.571 as 'stop', otherwise 'work_quiet'. Returns {id, action}. Confined to the collections in your manifest's store_scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | ||
| record | Yes | ||
| deviation | No | ||
| record_id | No | ||
| collection | Yes |