Change your own password
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
POST
/api/v1/auth/passwordChange your own password (ADR 0057). The current password is needed except in a session from a recovery link; every other session ends and a new one is set
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
object
- no other properties
current_passwordstring optionalnew_passwordstring required- min length 12
- max length 128
Example
{
"current_password": "string",
"new_password": "xxxxxxxxxxxx"
}Responses
200 Changed; a new session cookie is set
Content type: application/json
object
csrf_tokenstring requiredmfastring required
Example
{
"csrf_token": "string",
"mfa": "string"
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required