Update task time log with API

I can’t seem to find the API documentation to update tasks timer.
Is there anybody that know how to do it?


You can update a task using a PUT request, sorry I don’t have an example to share.

Hi, thanks, I’ve imagined that. It’s a shame that there is nothing about it in the documentation.

Does anybody know how I can do that?

You can always in spect the browser console in the webapp to see what requests it uses to update the task time logs, below is an example.

Notes, the time log uses an Array of timestamps array

   start_unixtimestamp, end_unixtimestamp
    "description": "",
    "number": "",
    "duration": 0,
    "invoice_id": "",
    "client_id": "Xe0RV3pLbx",
    "rate": 0,
    "project_id": "",
    "time_log": "[[1666317600,1666321200]]",
    "custom_value1": "",
    "custom_value2": "",
    "custom_value3": "",
    "custom_value4": "",
    "status_id": "X7axvg1Jdy",
    "documents": [],
    "created_at": 0,
    "updated_at": 0,
    "archived_at": 0,
    "id": "-1853",
    "isChanged": true,
    "is_deleted": false,
    "user_id": "",
    "assigned_user_id": ""

Hi David, thanks for your reply.
Sorry, if I reply to you only now, but I don’t receive any email notification…:man_shrugging:
I’m not that…into this thing. Do you know how I can start and stop a task without the need to insert time, just send the command to start and to stop?
Thanks again,