Skip to Content
PeopleForce
Employees

Deprecated

Company API v1 is deprecated. It no longer receives changes and will stop being supported, so move integrations to Company API v3.

Update an employee

Deprecated

PUT
/api/public/v1/employees/{id}

Path Parameters

id*integer
Formatint64

Request Body

application/x-www-form-urlencoded
  1. body
first_name?string
last_name?string
middle_name?string
custom_fields?
employee_number?string
ldap_username?string
access?string
send_welcome_letter?string
email?string
personal_email?string
mobile_number?string
work_phone_number?string
date_of_birth?string
Formatdate
hired_on?string
Formatdate
gender?string
slack_username?string
twitter_username?string
facebook_url?string
linkedin_url?string
position_id?string
department_id?string
employment_type_id?string
division_id?string
location_id?string
legal_entity_id?string
job_profile_id?string
termination_effective_date?string
Formatdate
termination_type_id?string
termination_reason_id?string
termination_eligible_for_rehire?string
termination_comment?string

Response Body

The updated employee.

application/json
  1. response
data*
Example Request
curl -X PUT 'https://app.peopleforce.io/api/public/v1/employees/0' \  -H 'Content-Type: application/x-www-form-urlencoded' \  -d ''
Example Response
{  "data": {    "id": 0,    "active": true,    "access": true,    "employee_number": "string",    "full_name": "string",    "first_name": "string",    "middle_name": "string",    "last_name": "string",    "email": "string",    "personal_email": "string",    "mobile_number": "string",    "work_phone_number": "string",    "date_of_birth": "2019-08-24",    "gender": "string",    "gender_id": 0,    "avatar_url": "string",    "probation_ends_on": "2019-08-24",    "hired_on": "2019-08-24",    "slack_username": "string",    "twitter_username": "string",    "facebook_url": "string",    "linkedin_url": "string",    "position": {      "id": 0,      "name": "string",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    },    "job_level": {      "id": 0,      "name": "string",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    },    "location": {      "id": 0,      "name": "string",      "address": "string",      "time_zone": "string",      "holiday_policy_id": 0,      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    },    "employment_type": {      "id": 0,      "name": "string",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    },    "division": {      "id": 0,      "name": "string",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    },    "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"    },    "job_profile": {      "id": 0,      "name": "string",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z",      "job_group": {        "id": 0,        "name": "string"      },      "job_level": {        "id": 0,        "name": "string"      },      "fields": {        "property1": {          "name": "string",          "value": "string"        },        "property2": {          "name": "string",          "value": "string"        }      }    },    "direct_reports": [      {        "id": 0,        "first_name": "string",        "last_name": "string",        "email": "string"      }    ],    "custom_fields": [      {        "internal_name": "string",        "uuid": "string",        "name": "string",        "group": "string",        "value": "string"      }    ],    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  }}