Update a user
PUT /sso/users/{ssoUserId}
Version | Change |
---|---|
v1.0 | Initial version |
v1.2 | DB Structure changes, validations |
<v1.2>
{ssoUserId}
- integer - this will be a number which we need to match to hub_alpha>user>threecots_user_id
Updates a user. Should return 200 OK if success. 404 if not found. Response body is empty.
It is possible that the email will change. 2 users cannot have the same email. We need to check for emails that are not with deleted
flag. Return a 400 error.
If hub_alpha>user>deleted
is equal to 1 the record is treated as non existent
</v1.2>
Example request:
{
"email": "rcastro@threecolts.com",
"user_name": "tacticalarbitrage",
"first_name": "Rodrigo",
"last_name": "Castro",
"time_zone": "America/Chicago"
}
Key in request | Value from field/hardcoded | Extra info |
---|---|---|
email |
hub_alpha>user>email |
|
user_name |
hub_alpha>user>username |
<v1.2> Added value. Default null if empty</v1.2> |
first_name |
hub_alpha>user>names |
Concatenation between first_name and last_name to be saved in the field. With an empty space between both |
last_name |
hub_alpha>user>names |
Concatenation between first_name and last_name to be saved in the field. With an empty space between both |
time_zone |
hub_alpha>user>timezone |
<v1.2> Default value is UTC Save in the specified field.</v1.2> |