HomeGuidesAPI Reference
API Reference

Update retention settings for a non-statistics table

Updates the data retention period and partition duration for a specific non-statistics table type (e.g., actionlog). The retention value determines how long data is kept, and partitionDuration controls database partition sizing.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
enum
required

The non-statistics table type to update retention for. Must match an existing table name in nonStatsTableRetention.

Allowed:
Body Params

Retention configuration containing the retention period and partition duration in seconds.

Request body for updating non-statistics table retention settings.

int64
required
≥ 1

Data retention period in seconds. Must be greater than 0 and greater than or equal to partitionDuration. Common values: 7776000 (90 days), 2592000 (30 days).

int64
required
≥ 1

Database partition duration in seconds. Must be greater than 0 and less than or equal to retention. The ratio retention/partitionDuration must not exceed 8192.

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json