update_user
Updates a user. All fields available in the `users` table are applicable as optional parameters.
Name | Type | Required | Example |
---|---|---|---|
userID | Integer | Y | 123 The userID of the row to update. Not required if username or external_id is provided |
username | String | Y | johndoe The unique username of the row to update. Not required if userID or external_id is provided |
exteral_id | String | Y | Abc123 The unique external_id of the row to update. Not required if userID or usernameis provided |
password | String | N | Pass123 Not 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 | Customer An optional/custom account type |
country | Char | N | US Resident country of the user. |
is_business | Boolean | N | True Any non-empty value besides is true, except: n, no, false |
gov_id_type | string | N | ssn Name of the government id type such as SSN or TAX ID. Requires gov_id_number value. |
gov_id_number | Integer | N | 123456789 The government id number. Requires gov_id_type value. |