curl --request DELETE \
--url https://{host}/api/v3/timeentries \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
[
{
"id": 552586
}
]
'{
"Status": 401,
"Message": "Unauthorized"
}Delete one or several time-entries. Deletion is irrevocable.
The “id” field of each time-entry must be sent and correspond to existing time-entries.
A single request can delete time-entries for several different owners.
It actually doest not delete entirely the object, but rather sets the “archivedAt” field to the current DateTime.
Read more about the time-entry object and any validation error that you might encounter when using this API.
There are different ways to update time-entries. Please see this guide on how to update time-entries the right way depending on your use case.
curl --request DELETE \
--url https://{host}/api/v3/timeentries \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
[
{
"id": 552586
}
]
'{
"Status": 401,
"Message": "Unauthorized"
}Was this page helpful?