Reset user password
Reset a password using password reset token
POST
/{apiBasePath}/{tenantId}/user/password/resetPath parameters
apiBasePathstringrequiredIts value depends on the apiBasePath set by the user
tenantIdstringThe tenant against which the request is made. If left empty, the default tenant will be used.
Header parameters
ridstringThe email password recipe ID
Request body
application/jsonmethodmethodThe method to use for the operation
formfieldsformFieldsForm fields for authentication
Show propertiesHide properties
Array of
objectididField identifier
Allowed:
emailpasswordvaluestringField value
tokentokenA security token used for authentication
Responses
200Reset a password using password reset token
One of:
passwordResetResponse
statusstringSuccess status
Allowed:
OKpasswordResetErrorResponse
statusstringError status
Allowed:
RESET_PASSWORD_INVALID_TOKEN_ERRORfieldErrorResponse
statusstringError status
Allowed:
FIELD_ERRORformFieldsobject[]List of field errors
Show propertiesHide properties
Array of
objectidstringField ID
errorstringError message
generalErrorResponse
statusstringError status code
Allowed:
GENERAL_ERRORmessagestringError message
404Resource not found error
string500Internal server error
stringTry it
Server
Parameters
Bodyapplication/json
Request
curl -X POST "/auth/public/user/password/reset" \
-H "Content-Type: application/json" \
-d '{
"method": "token",
"formFields": [
{
"id": "password",
"value": "newPass123"
}
],
"token": "ZTRiOTBjNz...jI5MTZlODkxw"
}'const response = await fetch("/auth/public/user/password/reset", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"method": "token",
"formFields": [
{
"id": "password",
"value": "newPass123"
}
],
"token": "ZTRiOTBjNz...jI5MTZlODkxw"
})
});import requests
response = requests.post(
"/auth/public/user/password/reset",
headers={
"Content-Type": "application/json"
},
json={
"method": "token",
"formFields": [
{
"id": "password",
"value": "newPass123"
}
],
"token": "ZTRiOTBjNz...jI5MTZlODkxw"
},
)Response
{
"status": "OK"
}"Not Found""Internal Error"