ZITADEL Docs
APIsCore ResourcesV2User

SetPassword

Change password

Deprecated: Update the users password instead.

Change the password of a user with either a verification code or the current password..

POST
/v2/users/{user_id}/password

Path Parameters

user_id*string

Request Body

application/json

newPassword?
currentPassword*string
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://loading/v2/users/string/password" \  -H "Content-Type: application/json" \  -d '{    "currentPassword": "string"  }'
{
  "details": {
    "sequence": 0,
    "changeDate": "1s",
    "resourceOwner": "string",
    "creationDate": "1s"
  }
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?