dev

Change User Password

Change a user's password (dev-only endpoint).

This endpoint requires X-Lapis-Dev-Token header for authentication.

It will:

  1. Look up the user by email
  2. Hash the new password using the same method as user signup (bcrypt)
  3. Update the user's password in the database

Args: request: User email and new password db: Database session

Returns: Status message confirming password change

Example: POST /api/v1/dev/change-user-password Headers: X-Lapis-Dev-Token: <token> Body: { "email": "user@example.com", "new_password": "newpassword123" }

post/api/v1/dev/change-user-password

Request

  • Base URL: https://api.trylapis.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.trylapis.com/api/v1/dev/change-user-password
  • Auth: none declared

Headers

x-lapis-dev-tokenstring

Request body

emailstring required

User email address

new_passwordstring required

New password (min 6 characters)

Response

Successful Response

statusstring required
messagestring required
user_idinteger required
user_emailstring required

Changes

No recorded changes to this operation across all 1 revision of this API.