API ReferenceEmployees
Update additional compensation
PUT
HttpBearerAuthheader
AuthorizationBearer <JWT>employee_id*Employee Idid*Idapplication/json- body
compensation_type_id*Compensation Type Idid компонента компенсации: он же приходит в compensation_type.id на чтении.
description?string|nulldate_effective_from*Date Effective FromFormat
dateamount_gross?number|string|nullamount_net?number|string|nullamount?||Устаревшее поле: пишется в amount_gross, если amount_gross не передан.
currency?string|nullcomment?string|nullcustom_fields?|nullSuccessful Response
application/json- response
id*Idcustom_fields?array<>Default
[]date_effective_from*Date Effective Fromcompensation_type*id — компонент из общего реестра, а не элемент оргсписка compensation_types.
description*string|nullamount*Amountamount_gross*string|nullamount_net*string|nullcurrency*Currencycomment*string|nullchanged_by*|nullcurl -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 }}