Skip to content

APPZ-3811: Guide to managing timeless accounts with the API - #993

Merged
sergiimeleshko merged 3 commits into
masterfrom
APPZ-3811-timeless-accounts-api-guide
Nov 24, 2026
Merged

sergiimeleshko merged 3 commits into
masterfrom
APPZ-3811-timeless-accounts-api-guide

Conversation

@sergiimeleshko

Copy link
Copy Markdown
Contributor

Adds an API cookbook page, Manage Timeless Accounts with the API, for customers who automate the timeless lifecycle instead of using the app (Rubrik).

The guide walks through:

  1. Finding the timeless account (its id and logType)
  2. Creating an optimizer that writes into it
  3. Updating the timeless account
  4. Previewing and deleting data
  5. Removing the optimizers
  6. Deleting the timeless account, including why the last one can't be deleted

It also lists the API token role each request needs, and notes that timeless accounts are created in the app. Manage Timeless accounts and Configure Optimizers each get a short "with the API" section linking to the guide and the API reference.

Depends on logzio/gaia-full#17752 (the routes and token permissions) and logzio/logz-api#78 (the API reference the guide links to). Merge after both.

Verified: yarn build passes (no broken links).

Add an API cookbook page that walks through the timeless lifecycle with the public API: find the timeless account, create an optimizer that writes into it, update the account, preview and delete data, remove the optimizers, and delete the account, including the token role each step needs and the last-timeless-account rule. Link it and the API reference from the timeless accounts and Configure Optimizers pages.
@netlify

netlify Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for deluxe-empanada-3ebf3b ready!

Name Link
🔨 Latest commit 3da9477
🔍 Latest deploy log https://app.netlify.com/projects/deluxe-empanada-3ebf3b/deploys/6b05acf137a0694d11fe729d
😎 Deploy Preview https://deploy-preview-993--deluxe-empanada-3ebf3b.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

The request fails when:

* **Optimizers still write into the account.** The response is `403 Forbidden`, and its message lists the optimizers to delete first, for example `Delete these optimizers first: 1001 (Checkout errors)`.
* **It's your last timeless account.** An account can't delete its last timeless account, and the response is `400 Bad Request` with the message `Deleting the last timeless index is not allowed`. To stop storing data in it, [remove its optimizers](#remove-the-optimizers) and [delete its data](#preview-and-delete-data) instead.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it would be useful to inform users that you cannot create your last timeless account even BEFORE starting to delete its optimizers? So that users don't waste time and their optimizers and only then find out they can't delete the account?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, and it's worse than it looks: the API checks for optimizers before it checks for the last account, so you'd delete the optimizers and only then hit the 400. I added a warning at the start of "Remove the optimizers" to check that it isn't your last timeless account before deleting anything.

…izers

The API checks for optimizers before it checks for the last timeless account, so following the guide could delete every optimizer and only then return the 400. The warning now comes before the optimizers are removed.
## Remove the optimizers {#remove-the-optimizers}

:::caution
You can't delete your last timeless account. Before you remove the optimizers of an account you plan to delete, [list your timeless accounts](#find-your-timeless-account) and make sure you have at least one more. If it's your last one, keep its optimizers: the account can't be deleted anyway.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we want to be as strict as saying "keep its optimizers" - customers might not want it.

Maybe let's change this paragraph to:

You can't delete your last timeless account. Before you remove the optimizers of an account you plan to delete, [list your timeless accounts](https://github.com/logzio/documentation/pull/993/changes#find-your-timeless-account) and make sure you have at least one more. If it's your last one, you can't delete it. To stop storing data in it, remove its optimizers and [delete its data](https://github.com/logzio/documentation/pull/993/changes#preview-and-delete-data) instead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, applied your wording (with the links as in-page anchors).

@sergiimeleshko
sergiimeleshko merged commit 6eb44fc into master Nov 24, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants