v1
latestOpenAPI 3.1.02026-07-2466150275.0 KBUsers
Create User
Create a user along with their company profile.
post/v1/user/
Request body
Example request
{
"firstName": "John",
"lastName": "Doe",
"email": "j.doe@example.com",
"phone": "6045551234",
"phoneCell": "6045551234",
"phoneWork": "6045554321",
"address": "#22 - 321 Someplace St",
"city": "Burnaby",
"postalCode": "V3V2X2",
"country": "Canada",
"timezone": "America/Vancouver",
"birthDate": "1980-01-23",
"industryId": 1,
"tradeId": 12,
"emergencyContact": "John Smith",
"emergencyContactPhone": "6045551234",
"password": "Some_Secure_Password_0012@#",
"companyUser": {
"isActive": true,
"editTimer": true,
"createTimer": true,
"position": "Office Manager",
"employeeId": "EM00123",
"roleId": 4
}
}Response
Successful Response
Example response
{
"data": {
"id": 1,
"firstName": "John",
"lastName": "Doe",
"email": "j.doe@example.com",
"phone": "6045551234",
"phoneCell": "6045551234",
"phoneWork": "6045554321",
"address": "#22 - 321 Someplace St",
"city": "Burnaby",
"postalCode": "V3V2X2",
"country": "Canada",
"timezone": "America/Vancouver",
"birthDate": "1980-01-23",
"industryId": 1,
"tradeId": 12,
"emergencyContact": "John Smith",
"emergencyContactPhone": "6045551234",
"companyUser": {
"id": 1275,
"role": {
"id": 4,
"name": "Foreman",
"slug": "foreman"
},
"isActive": true,
"employeeId": "EM00123",
"position": "Office Manager",
"editTimer": true,
"createTimer": true,
"userId": 2,
"companyId": 1
}
}
}