Update a salary
Changed onUpdate a salary.
Request
- Base URLhttps://developer.productive.io (the document declares no server; this is the origin it was published from)
- URLhttps://developer.productive.io/api/v2/salaries/{id}
- Authnone declared
Path parameters
ID
Request body
Example request
{
"data": {
"type": "salaries",
"attributes": {
"started_on": "2026-01-01",
"salary_type_id": 1,
"working_hours": 40,
"cost": "85000.00",
"currency": "USD"
},
"relationships": {
"person": {
"data": {
"type": "people",
"id": "12"
}
},
"holiday_calendar": {
"data": {
"type": "holiday_calendars",
"id": "3"
}
}
}
}
}Response
Single salary
Example response
{
"data": {
"id": "34",
"type": "salaries",
"attributes": {
"default_salary": true,
"started_on": "2026-01-01",
"ended_on": null,
"salary_type_id": 1,
"working_hours": 40,
"overhead": false,
"note": null,
"exchange_rate": null,
"exchange_date": null,
"currency": "USD",
"cost": "85000.00",
"hourly_rate": "51.44"
},
"relationships": {
"person": {
"data": {
"type": "people",
"id": "12"
}
},
"holiday_calendar": {
"data": {
"type": "holiday_calendars",
"id": "3"
}
}
}
},
"included": []
}Changes
- warning
added the new
bad_decimal_formatenum value to the//response property for the response status - warning
added the new
non_finite_numberenum value to the//response property for the response status - warning
added the new
null_bytes_in_paramsenum value to the//response property for the response status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- warning
- breaking
response property
data/attributes/exchange_ratelist-of-types was widened by adding typesnull and stringto media typeapplication/vnd.api+jsonof response200 - breaking
the
//response's property type changed fromstringto no type, and format fromdateto no format for status - breaking
the
//response's property type changed fromstringto no type, and format fromdateto no format for status - breaking
the
//response's property type changed fromobjecttoarrayfor status - warning
deleted the
headerrequest parameterX-Organization-Id
This list may be incomplete.
- breaking