Modifying a Password
PATCH /user/password
Introduction
Modifies the password of the user.
Caution
This command does not support the password modification function for the user administrator (modifying the password of a user who is not the current user).
You can only modify the password of the user to whom the specified token is generated.
Request Examples
- This is an example of modifying the password of the user named "User#1" from "old_psd" to "new_psd".
$ curl -i -H "Content-Type:application/json" -H "Authorization: Bearer g17e4umvwYoHuhkG7yCSee.." -X PATCH "https://192.168.1.1:5665/api/v1/user/password" -d '{ "user_name":"User#1", "old_password":"old_psd", "new_password":"new_psd" }'
Response Examples
{
"job_id": 8192001,
"job_href": "/api/v1/job/8192001"
}
Parameters
REQUEST BODY
| user_name
(required) |
strings User Name. Input criteria:
|
| old_password
(required) |
string Old password. Input criteria:
|
| new_password
(required) |
string New password. Input criteria:
|
Responses
If the job registration is successful, the HTTP status code will be 202 (Accepted) and the response body will respond.
REQUEST BODY
| job_id | integer Job ID. |
| job_href | string Resource link of the job. |

