Solutions
worksection
beta
help
Adding time and financial costs in task through API: add_costs
Sample add_costs request
?action=add_costs&id_task=TASK_ID&time=TIME
Creates individual costs for selected task
Required parameters:
- id_task — task ID
Conditional parameters:
*at least one of parameters required: time, money
*at least one of parameters required: time, money
- 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)
Optional parameters:
- email_user_from — cost author email (will be set automatically if using access token)
required if using admin token - is_rate=1 — financial costs are calculated on an hourly rate (money parameter is ignored)
- comment — cost log comment
- date — cost log date in DD.MM.YYYY format
Sample JSON response
If the request succeeds, the response will contain ok status and id of the cost line:
{"status": "ok","id": "COSTS_ID"}
Leave your review
Did this article help you?
Glad we could help! What was helpful?
Sorry this didn't help. What went wrong?