• FAQ
  • API
  • Costs
  • Updating time and financial costs of task through API: update_costs

Updating time and financial costs of task through API: update_costs


Sample update_costs request

?action=update_costs&id=ID_COSTS&time=2
Updates selected individual costs of task

Required parameters:
  • id_costs — cost ID (can be obtained through get_costs method)

Optional parameters:
  • time — time costs in one of the following formats: 0.15 / 0,15 / 0:09
  • money — financial costs in account currency (if it needs to be specified without reference to an hourly rate)
  • is_rate=1 — financial costs are calculated on an hourly rate, if new time value is specified (money parameter is ignored)
  • comment — cost log comment
  • date — cost log date in DD.MM.YYYY format

Parameters unavailable for updating:
  • email_user_from — cost author email

Sample JSON response
If the request succeeds, the response will contain ok status

{
"status": "ok",
}