Skip to main content

Update a timeless account

PUT 

/v1/timeless-indices/:id

Updates the name, volume and authorized accounts of a timeless account, and returns the updated timeless account. Send all three fields: the request replaces the current values.

Renaming a timeless account also renames its log type. Optimizers keep writing with the log type they were created with, and data deletion only matches documents with the current log type, so update the logType of every optimizer that writes into the account after a rename.

Must be run with an API token that has the Admin role. API tokens created before token roles were introduced have the same permissions as Admin.

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

Request​

Path Parameters

Body

required
    name stringrequired

    The name of the timeless account. It can't be the name of another account. Renaming also changes the timeless account's logType.

    volumeGb floatrequired

    The volume of the timeless account, in GB. It must be positive, at least the data already stored, and fit in the total timeless volume of your plan together with your other timeless accounts.

    authorizedAccounts int32[]required

    The IDs of the accounts whose users can search the timeless account. At least one: the account that owns the API token in the request or its sub accounts.

Responses​

successful operation. Returns the updated timeless account.

Schema
    id int32

    The ID of the timeless account

    ownerAccountId int32

    The ID of the account that owns the timeless account

    name string

    The name of the timeless account

    logType string

    The log type of the data in the timeless account. It's always the timeless account's name. Optimizers that write into the account must use it as output.target.timelessIndex.logType.

    volumeGb float

    The volume of the timeless account, in GB

    actualUsage object

    The data stored in the timeless account

    bytes int64
    humanReadableSize string
    percentage string

    The part of the timeless account's volume in use

    dailyUsage object

    The data written into the timeless account per day

    usage object[]
  • Array [
  • date int64

    The start of the day, in epoch milliseconds

    bytes int64

    The bytes written that day

  • ]
  • createdAt number

    The time at which the timeless account was created, in epoch seconds

    authorizedAccounts object[]

    The accounts whose users can search the timeless account

  • Array [
  • accountId int32
    accountName string
  • ]
  • suspended boolean

    Whether writing into the timeless account is suspended because it reached its volume

Loading...