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 compensation

Deprecated

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

Path Parameters

employee_id*integer
Formatint64
id*integer
Formatint64

Request Body

application/x-www-form-urlencoded
  1. body
effective_on?string
Formatdate
amount*string
currency_code?string
per?string|null
comment?string
overtime?string
pay_schedule_id?string
custom_fields?
compensation_component_id?string

Response Body

The updated employee compensation.

application/json
  1. response
data*
Example Request
curl -X PUT 'https://app.peopleforce.io/api/public/v1/employees/0/compensations/0' \  -H 'Content-Type: application/x-www-form-urlencoded' \  -d 'amount=string'
Example Response
{  "data": {    "id": 0,    "effective_on": "2019-08-24",    "amount": "string",    "currency_code": "string",    "per": "string",    "comment": "string",    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z",    "overtime": true,    "pay_schedule": {      "id": 0,      "name": "string"    },    "custom_fields": {      "property1": {        "name": "string",        "value": "string"      },      "property2": {        "name": "string",        "value": "string"      }    },    "compensation_component": {      "id": 0,      "name": "string",      "code": "string",      "payout_type": "once_off",      "frequency": "hourly"    }  }}