Docs
Live demo

Save the first-run setup state

POST/api/v2/setup/state
Signed-in sessionConsole session only

Save how far the signed-in administrator got in the first-run setup of the current organization. Only a personal API token can call it. An organization token gets 403 auth.api_token_not_allowed (details.reason=api_token_personal_only). The draft is the wizard's own JSON object, at most 128 KiB. A draft with a filled password, token, kubeconfig, connection string or service account key is refused with 400, because secrets are never kept in the state. revision is the one GET /setup/state returned, 0 before the first save, and every save adds one. A save that names another revision is refused with 409 and error_code version_mismatch and writes nothing, so a window with an older draft cannot write over a setup that another window finished.

Request body application/json · SetupStateRequest

Status and draft of the setup

Required2 of 3 fields
statusstringrequired

started while the wizard is open, completed after the first rule is applied, skipped when the person leaves it.

startedcompletedskipped
revisioninteger · int64required

The revision GET /setup/state returned, 0 before the first save.

min 0
Optional1 field
draftmap of string → any

The wizard's own draft without secrets. Null removes it.

can be null

Responses

204

Saved

400

The request does not match the operation contract (request.invalid): a parameter or body field has the wrong type, format or value.

401

Authentication required

Common errors: 403 409 413 429 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close