PUT /admin/users/{user_id}/password
Admin modifies/resets password for a specified user
Authentication `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
user_id |
path |
string |
Yes |
|
|
|
User ID |
Request Body
Schema: dto.HTTPChangePasswordRequest
| Field | Type | Required | Example | Constraints | Description |
new_password |
string |
Yes |
|
length: 8–? |
New password |
old_password |
string |
No |
|
|
Old password (optional for admin reset) |
password_transmission |
string |
No |
|
|
plain|hash|symmetric|asymmetric |
Referenced Schemas
dto.SimpleResponseWrapper
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|