Skip to main content

Change Password

Changes the password of the authenticated user. Make sure the password follows the password complexity policy.

Request Body required
  • oldPassword string required

    Possible values: non-empty

  • newPassword string required

    Possible values: non-empty

Responses

A successful response.


Schema
  • details object
  • sequence uint64

    on read: the sequence of the last event reduced by the projection

    on manipulation: the timestamp of the event(s) added by the manipulation

  • creationDate date-time

    on read: the timestamp of the first event of the object

    on create: the timestamp of the event(s) added by the manipulation

  • changeDate date-time

    on read: the timestamp of the last event reduced by the projection

    on manipulation: the

  • resourceOwner resource_owner is the organization an object belongs to
PUT /users/me/password

Authorization

type: oauth2flow: authorizationCodescopes: openid

Request

Base URL
https://$ZITADEL_DOMAIN/auth/v1
Bearer Token
Content-Type
Body required
{
"oldPassword": "MyOldPassword12!",
"newPassword": "MyNewPassword12!"
}
Accept
curl -L -X PUT 'https://$ZITADEL_DOMAIN/auth/v1/users/me/password' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"oldPassword": "MyOldPassword12!",
"newPassword": "MyNewPassword12!"
}'