Skip to content

PUT /user/{user_key}/password

Reset User Password

PUT
/user/{user_key}/password

Set a new password for the calling user (post-reset flow).

Validates that user_key matches the JWT's consumer_key — users can
only reset their own password via this endpoint. Hashes new_password
and clears the reset_password flag. Intended to be called after a
forced password reset triggered by POST /auth returning action=reset_password.

Emits: (direct transaction — no event class)

Required scope: auth:password:reset

Authorizations

OAuth2PasswordBearer
password Flow
Token URL"/api/auth"
Scopes:
  • "admin"User can access and edit users and system settings
  • "library"User can access and edit products
  • "production"User can access and edit production plans
  • "operator"User can access the operator panel and make production declarations

Parameters

Path Parameters

user_key*
Type
string
Required

Request Body

application/json
JSON
{
  
"new_password": "string"
}

Responses

Successful Response

application/json
JSON
{
  
"status": 200,
  
"message": "string",
  
"detail": "string"
}

Samples

Powered by VitePress OpenAPI

Released under the Apache 2.0 License.