Reset the password for a user
POST/v2/users/:username/reset_password
Reset the password for a user.
Request
Path Parameters
Specifies the user ID to update. Note that the username must be percent encoded and URI safe.
Header Parameters
Possible values: >= 1
The API will make a best effort to complete the request in the specified seconds or time out.
Possible values: >= 1
The API will make a best effort to complete the request in the specified milliseconds or time out.
Responses
- 200
- 403
- 404
User was sent the password reset email.
- application/json
- Schema
- Example (from schema)
Schema
A one time code that can be used to reset the password. This is optional, and is only populated for some Vectara deployments.
The link where to enter the one_time_code
.
This is optional, and is only populated for some Vectara deployments.
{
"one_time_code": "string",
"one_time_code_link": "string"
}
Permissions do not allow resetting the user password.
- application/json
- Schema
- Example (from schema)
Schema
The messages describing why the error occurred.
The ID of the request that can be used to help Vectara support debug what went wrong.
{
"messages": [
"Internal server error."
],
"request_id": "string"
}
User not found.
- application/json
- Schema
- Example (from schema)
Schema
The ID cannot be found.
ID of the request that can be used to help Vectara support debug what went wrong.
{
"id": "string",
"messages": [
"string"
],
"request_id": "string"
}