Employees
Create employee
POST
application/json- body
first_name*stringlast_name*stringemail*stringhired_on*stringFormat
dateemployee_number?stringldap_username?stringaccess?booleansend_welcome_letter?booleanmiddle_name?stringpersonal_email?stringmobile_number?stringwork_phone_number?stringdate_of_birth?stringFormat
dategender?stringslack_username?stringtwitter_username?stringfacebook_url?stringlinkedin_url?stringposition_id?integerFormat
int64department_id?integerFormat
int64employment_type_id?integerFormat
int64division_id?integerFormat
int64location_id?integerFormat
int64legal_entity_id?integerFormat
int64job_profile_id?integerFormat
int64favourite_colour?stringshirt_size?integerFormat
int32languages?array<>buddy?integerFormat
int32include_historical_values?booleanThe created employee.
application/json- response
data*curl -X POST 'https://app.peopleforce.io/api/public/v3/employees' \ -H 'Content-Type: application/json' \ -d '{ "first_name": "string", "last_name": "string", "email": "string", "hired_on": "2019-08-24"}'Example Response
{ "data": { "id": 0, "status": "terminated", "access": true, "employee_number": "string", "full_name": "string", "first_name": "string", "middle_name": "string", "last_name": "string", "avatar_url": "string", "email": "string", "mobile_number": "string", "work_phone_number": "string", "personal_email": "string", "date_of_birth": "2019-08-24", "probation_ends_on": "2019-08-24", "hired_on": "2019-08-24", "gender": { "id": 0, "name": "string" }, "legal_entity": { "id": 0, "name": "string" }, "position": { "id": 0, "name": "string" }, "job_level": { "id": 0, "name": "string" }, "location": { "id": 0, "name": "string" }, "employment_type": { "id": 0, "name": "string" }, "division": { "id": 0, "name": "string" }, "job_profile": { "id": 0, "name": "string" }, "department": { "id": 0, "name": "string", "parent_id": 0, "manager_id": 0, "department_level": { "id": 0, "name": "string", "hex_color": "string" }, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "ancestors": [ { "id": 0, "name": "string", "department_level": { "id": 0, "name": "string", "hex_color": "string" } } ], "fields": { "property1": { "name": "string", "value": "string" }, "property2": { "name": "string", "value": "string" } } }, "reporting_to": { "id": 0, "first_name": "string", "last_name": "string", "email": "string" }, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "direct_reports": [ { "id": 0, "first_name": "string", "last_name": "string", "email": "string" } ], "fields": { "property1": { "label": "string", "group": { "id": 0, "name": "string" }, "value": "string", "option_id": 0, "option_ids": [ 0 ], "user_id": 0, "effective_on": "string", "historical_values": [ { "effective_on": "string", "value": "string" } ] }, "property2": { "label": "string", "group": { "id": 0, "name": "string" }, "value": "string", "option_id": 0, "option_ids": [ 0 ], "user_id": 0, "effective_on": "string", "historical_values": [ { "effective_on": "string", "value": "string" } ] } }, "termination_effective_on": "2019-08-24", "termination_comment": "string", "termination_eligible_for_rehire": true, "termination_type": { "id": 0, "name": "string" }, "termination_reason": { "id": 0, "name": "string" } }}