Skip to Content
API ReferenceEmployees

Update compensation item

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

Authorization

HttpBearerAuth
headerAuthorizationBearer <JWT>

Path Parameters

employee_id*Employee Id
id*Id

Request Body

application/json
  1. body

PUT заменяет пакет целиком: строки, причину и комментарий. currency — валюта свёрток пакета.

date_effective_from*Date Effective From
Formatdate
change_reason_id?integer|null
comment?string|null
currency?string|null
lines*array<>
Items1 <= items

Response Body

Successful Response

application/json
  1. response
success?Success
Defaulttrue
Example Request
curl -X PUT 'https://api.skailer.com/api/v1/employees/0/compensations/0' \  -H 'Content-Type: application/json' \  -d '{  "date_effective_from": "2019-08-24",  "lines": [    {      "compensation_type_id": 0    }  ]}'
Example Response
{  "success": true}