Example for a non-admin user
1
2
3
4
5
6
7
8
9
10
11
12
13
let options = {
"userId": "4b262379-5bbe-421e-a429-f6e2ab5a849b",
"existing": "m4rl451ng3r",
"new": "pr0j3ctM4yh3m"
};
client.security.users.updatePassword(options)
.then( result => {
console.log('API call was successful');
})
.catch(error => {
console.log('API call error: ', error);
});
Example for a System Adminstrators user
1
2
3
4
5
6
7
8
9
10
11
12
let options = {
"userId": "4b262379-5bbe-421e-a429-f6e2ab5a849b",
"new": "pr0j3ctM4yh3m"
};
client.security.users.updatePassword(options)
.then( result => {
console.log('API call was successful');
})
.catch(error => {
console.log('API call error: ', error);
});