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
started while the wizard is open, completed after the first rule is applied, skipped when the person leaves it.
startedcompletedskippedThe revision GET /setup/state returned, 0 before the first save.
The wizard's own draft without secrets. Null removes it.
Responses
Saved
The request does not match the operation contract (request.invalid): a parameter or body field has the wrong type, format or value.
Authentication required
Common errors: 403 409 413 429 504. They mean the same for every operation, see Errors.