SnozeDevelopers
API referenceTime tracking

Abandon a time entry without recording its time

Marks the caller's own running or paused entry `abandoned` so its elapsed time is not counted anywhere, and returns it. Requires a workspace member with `time_entries:write` who can write the entry's target, and only the person the entry belongs to may abandon it. An unknown entry is reported as not found and an entry that is neither active nor paused is refused as a transition conflict. Naturally idempotent: abandoning an already-abandoned entry returns it unchanged.

POST
/v1/workspaces/{workspaceId}/time-entries/{entryId}/abandon
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Path Parameters

workspaceId*string
entryId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/workspaces/string/time-entries/string/abandon" \  -H "Content-Type: application/json" \  -d '{}'
{  "data": {    "entry": {      "id": "string",      "workspaceId": "string",      "userId": "string",      "userDisplayName": "string",      "targetKind": "database_record",      "targetId": "string",      "targetTitleSnapshot": "string",      "databaseId": "string",      "fieldId": "string",      "fieldLabelSnapshot": "string",      "source": "timer",      "mode": "stopwatch",      "status": "active",      "startedAt": "string",      "endedAt": "string",      "pausedAt": "string",      "accumulatedPausedMs": 0,      "durationMs": 0,      "targetDurationMs": 0,      "dueAt": "string",      "summary": "string",      "soundId": "none",      "completedBy": "user",      "shiftId": "string",      "clientMutationId": "string",      "createdByUserId": "string",      "updatedByUserId": "string",      "createdAt": "string",      "updatedAt": "string"    },    "serverTime": "string",    "authoritativeElapsedMs": 0  }}