Skip to main content

Update warm tier retention

PUT 

/v1/account-management/time-based-accounts/:accountId/retention-details

Sets the warm tier retention, in days, of one account: the main account of the API token, or one of its sub accounts. Only the warm tier retention changes; all other account settings stay as they are.

  • The API token must be an admin API token of the main account. A sub account's token returns 403.
  • The main account must already have the warm tier enabled, and keeps at least 1 day. Turning the warm tier of the main account on or off is done by Logz.io support.
  • A sub account can be set from 0 (no warm tier) up to the main account's warm tier retention.
  • Lowering the warm tier retention deletes the warm tier data older than the new retention.
  • To lower the main account below a sub account's warm tier retention, lower the sub account first.

Returns the hot and warm tier retention of the main account and all its sub accounts after the update.

Please ensure to change the region in the URL to match your account's region.

Request​

Path Parameters

    accountId int32required

    ID of the main account of the API token, or of one of its sub accounts.

    Example: 99999

Body

required
    snapSearchRetentionDays int32required

    Number of days to retain data in the warm tier. For the main account, at least 1. For a sub account, from 0 (no warm tier) up to the main account's warm tier retention.

Responses​

successful operation

Schema
  • Array [
  • accountId int32

    ID of the account.

    retentionDays int32

    Number of days that data is retained in the hot tier.

    snapSearchRetentionDays int32

    Number of days that data is retained in the warm tier. 0 or null means the account has no warm tier.

  • ]
Loading...