Delete a time entry
DELETE
/boards/{board}/cards/{card}/time-tracks/{timeTrack}
const url = 'https://projects.work.optidata.cloud/api/boards/1/cards/1/time-tracks/1';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://projects.work.optidata.cloud/api/boards/1/cards/1/time-tracks/1 \ --header 'Authorization: Bearer <token>'Deletes the time entry and returns the card’s recomputed total.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”board
required
integer
Board id.
card
required
integer
Card id (must belong to the board).
timeTrack
required
integer
Time entry id (must belong to the card).
Responses
Section titled “Responses”The deleted entry plus the card’s recomputed total.
Media typeapplication/json
object
time_track
A time entry on a card. end_at null means the timer is running.
object
id
integer
board_id
integer
card_id
integer
user_id
integer
start_at
string format: date-time
end_at
string | null format: date-time
amount_seconds
Tracked duration in seconds (set when stopped).
integer | null
description
string | null
created_at
string format: date-time
updated_at
string format: date-time
total_time_spent
string
Examplegenerated
{ "time_track": { "id": 1, "board_id": 1, "card_id": 1, "user_id": 1, "start_at": "2026-04-15T12:00:00Z", "end_at": "2026-04-15T12:00:00Z", "amount_seconds": 1, "description": "example", "created_at": "2026-04-15T12:00:00Z", "updated_at": "2026-04-15T12:00:00Z" }, "total_time_spent": "example"}Missing, invalid or expired bearer passport.
Media typeapplication/json
object
error
string
Example
{ "error": "JWT passport exception: Missing bearer token in request"}The authenticated user lacks the required board permission.
Media typeapplication/json
object
message
string
Example
{ "message": "This action is unauthorized."}Resource not found, or a nested resource does not belong to its parent in the path.
Media typeapplication/json
object
message
string
Example
{ "message": "Not found."}Validation failed.
Media typeapplication/json
object
message
First validation error message.
string
errors
Map of field name → list of error messages.
object
key
additional properties
Array<string>
Example
{ "message": "The name field is required.", "errors": { "name": [ "The name field is required." ] }}