Skip to main content
PUT
Create/Set a password
Deprecated. Please use the Flow API instead. What’s the Flow API?.
Create a or update an existing password for the user identified by user_id. This endpoint is only available if passwords have been enabled via configuration option passwords.enabled.

Authorizations

hanko
string
cookie
required

Body

application/json
user_id
string<uuid4>
required

The ID of the user to create/set a password for

Example:

"c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c"

password
string
required

The actual password, its minLength defaults to 8 but can be configured through the password.min_password_length option.

Required string length: 8 - 72
Example:

"9UnCBEx924a45P7p"

Response

Successful password update