Api event user set user passwd
API Endpoint: api/event/user/set_user_passwd/
Description: Change the password for a given user. Returns the user's login key for continued authentication, or null if you are unauthorized to change that user's password.
| Index | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (String) | Username | |
| 1 | REQUIRED | (String) | Password |
Response Codes
| Response Code: | Description |
|---|---|
| 200 | String (String) |
| 300-600 | Codes Overview |
Example POST
Curl example POST
curl 'https://engine.tygron.com/api/event/user/set_user_passwd/' -H 'Content-Type: application/json' -H 'Authorization: Basic <credentials>=' -d '[ "Username", "Password" ]'JavaScript example POST
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Basic <credentials>=" },
body: '[ "Username", "Password" ]'
};
fetch("https://engine.tygron.com/api/event/user/set_user_passwd/", options)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));