Sets a new password. Every other session of yours ends; the one you use stays.
HTTP
PUT /account/passwordAccess: Session token only. API keys get 403 with insufficient_scope.
Request body #
JSON.
| Field | Type | Required | Description |
|---|---|---|---|
currentPassword | string | yes | Your current password. |
newPassword | string | yes | The new password. At least 8 characters, or more when the organisation sets a longer minimum or requires a mix of characters. |
JSON
{ "currentPassword": "old secret", "newPassword": "correct horse battery" }Response 204 #
The password is changed. There is no body.
Errors #
| Status | error | When |
|---|---|---|
| 401 | unauthenticated | The token is missing or not valid. |
| 403 | wrong_password | currentPassword is not your password. |
| 422 | invalid_request | newPassword is too_short (shorter than the minimum of the organisation, at least 8) or too_weak (the organisation requires upper case, lower case and a digit). |
| 429 | rate_limited | Too many requests, see Rate limiting. |
See Errors for the error format.