Docs
Sign in

Change how long things are kept.

Days from 1 to 3650, or null to keep until deleted by hand.

PATCH/api/v1/settings/retention

Scopeconfig

The next sweep applies it (see GET /cleanup). Turning a setting on or shortening it lets the sweep delete things, so a key needs approve for that as well as config. The timeline records the key ID, action and outcome.

Headers.

Idempotency-Keystring

Retry the same request with the same key. Retry rules.

Body.

workspacesDays1–3650 | null

Days a run folder on a machine is kept after its last change, or null to keep it until removed by hand.

artifactsDays1–3650 | null

Days an artifact (and a run bundle of a crew that ended) is kept, or null to keep it until deleted by hand.

endedCrewsDays1–3650 | null

Days a crew is kept after it ended, or null to keep it until deleted by hand.

Response.

200 OK · JSON object

422 validation_failed
Each schema error appears in details.