Create an employee associated with the license_number provided.
OK
Bad Request
{- "license": {
- "license_number": "KMPL20200818"
 
}, - "name": {
- "first_name": "Judau",
 - "last_name": "Ashita"
 
}, - "email_address": "jashita@greencheckverified.com",
 - "phone_number": "408-123-4567",
 - "type": {
- "id": "5"
 
}, - "facilities": [
- {
- "id": "12345"
 
} 
], - "credentials": [
- {
- "username": "jdoe@kmpl.com",
 - "password": "mysecurepassword",
 - "software_name": "metrc",
 - "state": "ca",
 - "api_key": "1234567889asfasdfafaasfd",
 - "other": "other required value"
 
} 
], - "permission_groups": [
- {
- "id": "1"
 
} 
], - "birthday": "2000-01-03T00:00:00Z",
 - "hire_date": "2019-01-03T00:00:00Z"
 
}{- "results": {
- "type": "object",
 - "data": {
- "id": "25689",
 - "name": {
- "first_name": "Judau",
 - "last_name": "Ashita"
 
}, - "email_address": "jashita@greencheckverified.com",
 - "phone_number": "408-123-4567",
 - "type": {
- "id": "5",
 - "name": "full-time"
 
}, - "company": {
- "id": "234",
 - "name": "KMPL Cannabis"
 
}, - "facilities": [
- {
- "id": "12345",
 - "name": "KMPL Manufacturing",
 - "license": {
- "license_number": "KMPL20200818",
 - "type": {
- "name": "Type 12"
 
} 
} 
} 
], - "occupational_licenses": [ ],
 - "credentials": [
- {
- "username": "jdoe@kmpl.com",
 - "password": "mysecurepassword",
 - "software_name": "metrc",
 - "state": "ca",
 - "api_key": "1234567889asfasdfafaasfd",
 - "other": "other required value"
 
} 
], - "permission_groups": [
- {
- "id": "1",
 - "name": "Administration"
 
} 
], - "birthday": "2000-01-03T00:00:00Z",
 - "hire_date": "2019-01-03T00:00:00Z",
 - "termination_date": "",
 - "entity_state": [
- {
- "state": "active",
 - "date": "2021-01-12T05:27:39Z",
 - "reason": "employee created",
 - "actioned_by": "admin@kmp.com"
 
} 
] 
} 
}, - "warnings": [ ]
 
}