Skip to main content

Put Retention

PUT 

/api/v1/system/retention

Store the override in the deploy repo, then apply it to every table that follows it.

The engine's own tables and every deployed source's table are brought to the new effective default in this request, with ALTER TABLE ... MODIFY TTL (or REMOVE TTL for 0). A table that declares its own TTL is left alone. A ClickHouse failure answers 502 with the override ALREADY committed. Sending the same value again applies it.

Request​

Responses​

Successful Response