Skip to main contentExample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
let user = {
"userName": "tdurden",
"email": "t.turden@fightclub.com",
"firstname": "Tyler",
"lastname": "Durden",
"timezone": "America/New_York",
"language": "en-US",
"custom": {
"department": "Soap sales"
},
"credentials": {
"password": "pr0j3ctM4yh3m"
}
};
client.security.users.create(user)
.then(result => {
console.log('API call result: ', result);
})
.catch(error => {
console.log('API call fetch error: ', error);
});