Put Retention
PUT/api/v1/system/retention
Store the override in the deploy repo and return, leaving the tables to a background pass.
The pass brings the engine's own tables and every deployed source's table to the
stored value with ALTER TABLE ... MODIFY TTL (or REMOVE TTL for 0). A table
that declares its own TTL is left alone. The pass runs again until every table
has it, so a ClickHouse that is down when the value is stored gets it once it is
back, and a restart does not lose it.
Request
Responses
- 200
- 401
- 403
- 422
- 503
- default
Successful Response
No valid session: the credentials are missing, invalid or expired, or the account behind them is disabled or blocked
Refused: the session lacks the action this route checks, or its account must replace an issued password first. A SCIM route answers a refused action in the RFC 7644 error envelope
Validation Error
not_configured: gitops is off, so there is nowhere to store the value
Problem details (RFC 9457)