POST
/
api
/
users
/
{userId}
/
actions
/
reset
Set user password.
curl --request POST \
  --url https://{tenant}/api/users/{userId}/actions/reset \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "api_model": {},
  "current_password": "minimum6charactersPassword",
  "new_password": "newMinimum6CharactersPassword"
}'
{
  "Message": "User password updated",
  "Meta": null,
  "Status": "OK"
}

Authorizations

Authorization
string
header
required

The Tyk Dashboard API Access Credentials

Path Parameters

userId
string
required

User ID of the user whose password is being reset.

Body

application/json
api_model
object
current_password
string
Minimum length: 6
Example:

"testuser1password"

new_password
string
Minimum length: 6
Example:

"newtestuser1password"

Response

OK

ID
string
Message
string
Meta
any
Status
string