update_userUpdates a user. All fields available in the `users` table are applicable as optional parameters.
| Name | Type | Required | Example |
|---|---|---|---|
userID | Integer | Y | 123The userID of the row to update. Not required if username or external_id is provided |
username | String | Y | johndoeThe unique username of the row to update. Not required if userID or external_id is provided |
exteral_id | String | Y | Abc123The unique external_id of the row to update. Not required if userID or usernameis provided |
password | String | N | Pass123Not required. If provided, the password must contain at least 7 characters and include at least one uppercase letter, one lower case letter, and one number |
first_name | String | Y | John |
last_name | String | Y | Doe |
phone | String | Y | 8005551234 |
email | String | Y | john.doe@example.com |
company | String | N | Doe Enterprises |
account_type | String | N | CustomerAn optional/custom account type |
country | Char | N | USResident country of the user. |
is_business | Boolean | N | TrueAny non-empty value besides is true, except: n, no, false |
gov_id_type | string | N | ssnName of the government id type such as SSN or TAX ID. Requires gov_id_number value. |
gov_id_number | Integer | N | 123456789The government id number. Requires gov_id_type value. |