Skip to main content

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​

Successful Response