Update password

POST /api/my-account/password

Update password for the user, a logto-verification-id in header is required for checking sensitive permissions.

application/json

Body Required

  • password string Required

    The new password for the user.

    Minimum length is 1.

Responses

  • The password was updated successfully.

  • Bad Request

  • Unauthorized

  • Permission denied, the verification record is invalid.

  • Unprocessable Content

POST /api/my-account/password
curl \
 -X POST https://[tenant_id].logto.app/api/my-account/password \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"password":"string"}'
Request examples
{
  "password": "string"
}