Create, edit or refine a saved Gambit
save_mandateCreate, edit, pause or refine one of YOUR saved Gambits (mandates: standing instructions that tell Gambit what to watch for you; requires api:account). Pick the action. create: a new saved Gambit from title and mandate_text (your own words); status draft (default) or active. update (mandate_id): a draft's content can change in place; status moves draft → active, active → paused (pause), paused → active (resume); monitor_interval_minutes may change at any time. An active or paused saved Gambit is never edited in place: supersede (mandate_id) drafts a successor with your changed fields, then update the successor to status active, which replaces the original. refine: turns loose intent (text) into a suggested title and wording; nothing is saved — pass the result to create. compile_scope: previews which instruments a list of universe terms (terms) resolves to; nothing is saved. autonomy_level 0-3 only: execution autonomy (level 4 and above) can be set only in the Gambit app, and an API key cannot activate, edit or supersede a saved Gambit that holds it (it can still pause or delete one). Your plan limits how many saved Gambits you keep (drafts and paused ones count); over the limit the call answers 403 with code tier_limit_exceeded. A refused lifecycle rule answers 422 with code mandate_rule_violation and reasons, fixed codes naming the rule (e.g. active_mandate_immutable:title — edit through supersede; invalid_transition:draft->paused). Nothing here places a trade. To delete: delete_mandate. create, update and supersede return the saved Gambit (the same fields as get_mandate) and carry app_url, the screen where saved Gambits are managed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | REQUIRED for refine: the loose intent to refine | |
| terms | No | REQUIRED for compile_scope | |
| title | No | REQUIRED for create | |
| action | Yes | ||
| status | No | create: draft | active; update: draft | active | paused; not for supersede | |
| metadata | No | ||
| starts_at | No | ||
| expires_at | No | ||
| mandate_id | No | REQUIRED for update and supersede | |
| mandate_text | No | REQUIRED for create: the instruction, in the user's words | |
| policy_delta | No | risk bounds and preferences for this saved Gambit | |
| autonomy_level | No | ||
| monitor_interval_minutes | No |