Set the retention policy (org admins; a partial body patches)
Set what Autoresearch retains about this organization's workloads (org admins only, audited). A PARTIAL call PATCHES: a field you omit keeps its current value, so turning one capture off never silently re-enables another. Pass zero: true for zero data retention - every optional capture off in one call. The switches are command_output, command_history, declared_results, logs, traces and job_objects_at_end; command_content_days (1-365) is how long output and command lines survive; snapshot_default_days (1-365, 0 clears) stamps an expiry on NEW snapshots. Turning a capture off stops it immediately AND PURGES what it already holds (an hourly sweep drains history), and turning one back ON RECOVERS NOTHING - new content was never written and old content is gone. Each switch costs a product surface (get_command's output, mission receipts, query_logs, the Commands tab); call get_retention first and tell the human what they lose before you call this.
Request
- Base URL: https://autoresearch.sfcompute.com
- URL: https://autoresearch.sfcompute.com/preview/retention
- Auth: HTTP bearer
Query parameters
Act in this workspace (its slug). Omitted: the token's bound workspace, then the organization's default. Never ambient - there is no switch-workspace mutation on this door.
Request body
Response
The capability's JSON result.
Changes
No recorded changes to this operation across all 1 revision of this API.