Skip to Content
API ReferenceEmployees

Update additional compensation

PUT
/api/v1/employees/{employee_id}/additional-compensations/{id}

Authorization

HttpBearerAuth
headerAuthorizationBearer <JWT>

Path Parameters

employee_id*Employee Id
id*Id

Request Body

application/json
  1. body
compensation_type_id*Compensation Type Id

id компонента компенсации: он же приходит в compensation_type.id на чтении.

description?string|null
date_effective_from*Date Effective From
Formatdate
amount_gross?number|string|null
amount_net?number|string|null
amount?||

Устаревшее поле: пишется в amount_gross, если amount_gross не передан.

currency?string|null
comment?string|null
custom_fields?|null

Response Body

Successful Response

application/json
  1. response
id*Id
custom_fields?array<>
Default[]
date_effective_from*Date Effective From
compensation_type*

id — компонент из общего реестра, а не элемент оргсписка compensation_types.

description*string|null
amount*Amount
amount_gross*string|null
amount_net*string|null
currency*Currency
comment*string|null
changed_by*|null
Example Request
curl -X PUT 'https://api.skailer.com/api/v1/employees/0/additional-compensations/0' \  -H 'Content-Type: application/json' \  -d '{  "compensation_type_id": 0,  "date_effective_from": "2019-08-24"}'
Example Response
{  "id": 0,  "custom_fields": [],  "date_effective_from": "string",  "compensation_type": {    "id": 0,    "title": "string",    "is_archived": true  },  "description": "string",  "amount": "string",  "amount_gross": "string",  "amount_net": "string",  "currency": "string",  "comment": "string",  "changed_by": {    "id": 0,    "first_name": "string",    "last_name": "string",    "email": "string",    "is_archived": false  }}