Initating a password reset
Changed onAnybody can initate a reset of any user's password. An email will be sent with instructions on how to complete the password reset; it contains a token that is required to complete the process.
The optional query parameter invalidate may be set to true to immediately invalidate the user's current password, regardless of whether they complete the reset process. This can be done if, for example, their password has been compromised. In order to do this, though, the request must be performed as an authenticated user with permission to do this. If invalidation is attempted without the proper permissions, the entire request will fail.
If the email address provided does not match any user in the system, that address will still be sent an email informing them of the attempt and that no account was found.
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- URL/v1/users/reset/initiate
- Authnone declared
Query parameters
Specify true in order to immediately invalidate the user's present password.
Request body */*
Example request
{
"email": "my.email.address@getodk.org"
}Response
OK
Example response
{
"success": true
}Changes
- info
api operation id
Initating a password resetremoved and replaced withinitatePasswordReset
- info
- info
removed the non-success response with the status
- info