Clients, Leads and Contacts / Clients / Create Client's Contact
This is a POST request, submitting data to an API via the request body. This request submits JSON data, and the data is reflected in the response. A successful POST request typically returns
Body parameters
module
|
string |
Example: users
|
data
|
array |
Example:
|
This is a POST request, submitting data to an API via the request body. This request submits JSON data, and the data is reflected in the response.
A successful POST request typically returns a `200 OK` or `201 Created` response code. And a random password for the user.
Allowed Values and their keys:
**language**: `english, french, dutch, spanish, turkish, greek, italian, polish, norwegian, german, russian, french, turkish, czech, portuguese`
**user_type**: `client` _(The system will automatically reset this value always to client, regardeless of your payload)_
Usable fields:
| Field | Type | Length | Mandatory |
| --- | --- | --- | --- |
| id | int | 11 | Yes On Update only |
| first_name | varchar | 50 | Yes |
| last_name | varchar | 50 | Yes |
| user_type | enum | client, ~~staff, lead~~ | Yes |
| is_admin | tinyint | 1 | Yes |
| role_id | int | 11 | Yes |
| email | varchar | 255 | Yes (unique) |
| password | varchar | 255 | No |
| image | text | base64 | No |
| status | enum | active, inactive | Yes |
| message_checked_at | datetime | | No |
| client_id | int | 11 | Yes |
| notification_checked_at | datetime | | No |
| is_primary_contact | tinyint | 1 | Yes |
| job_title | varchar | 100 | Yes |
| disable_login | tinyint | 1 | Yes |
| note | mediumtext | | No |
| address | text | | No |
| alternative_address | text | | No |
| phone | varchar | 20 | No |
| alternative_phone | varchar | 20 | No |
| dob | date | | No |
| ssn | varchar | 20 | No |
| gender | enum | male, female, other | No |
| sticky_note | mediumtext | | No |
| skype | text | | No |
| language | varchar | 50 | Yes |
| enable_web_notification | tinyint | 1 | Yes |
| enable_email_notification | tinyint | 1 | Yes |
| created_at | datetime | | No |
| last_online | datetime | | No |
| requested_account_removal | tinyint | 1 | Yes |
| client_permissions | text | all | No |
| deleted | int | 11 | Yes |