Skip to content

Delete a time entry

DELETE
/boards/{board}/cards/{card}/time-tracks/{timeTrack}
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.

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).

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
<= 255 characters
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."
]
}
}