Skip to main content
PUT
/
api
/
v1
/
time-entries
/
{timeEntryId}
Update time entry
curl --request PUT \
  --url https://api.contracting.kukkingu.software/api/v1/time-entries/{timeEntryId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'tenant-id: <tenant-id>' \
  --data '
{
  "date": "2023-10-05",
  "durationSeconds": 3600,
  "description": "Implemented authentication flow.",
  "referenceSource": "JIRA",
  "referenceId": "PROJ-123",
  "billableId": "bil_eym9hcqlh1m7v3d36blf0vfx"
}
'
{
  "data": {
    "id": "tsh_8f4d4gk1p9h2x0s7v3n5c1a9",
    "project": "prj_8f4d4gk1p9h2x0s7v3n5c1a9",
    "billable": "bil_eym9hcqlh1m7v3d36blf0vfx",
    "date": "2023-10-05",
    "durationSeconds": 3600,
    "createdAt": "2023-10-05T14:48:00.000Z",
    "updatedAt": "2023-10-05T14:48:00.000Z",
    "description": "Implemented authentication flow.",
    "referenceSource": "JIRA",
    "referenceId": "PROJ-123"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

tenant-id
string
required

Specifies the tenant context for the request. All endpoints operate within this tenant scope.

Example:

"tnt_pfh0haxfpzowht3oi213cqos"

Path Parameters

timeEntryId
string
required

Unique identifier of the time entry.

Example:

"tsh_8f4d4gk1p9h2x0s7v3n5c1a9"

Body

application/json

Request body used to fully replace an existing time entry resource.

Request body used to fully replace an existing time entry resource.

date
string<date>
required

Date when the time entry was recorded.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
Example:

"2023-10-05"

durationSeconds
integer
required

Duration of the time entry in seconds.

Required range: x <= 9007199254740991
Example:

3600

description
string

Optional description of the time entry.

Maximum string length: 1024
Example:

"Implemented authentication flow."

referenceSource
string

External source of the time entry reference.

Maximum string length: 255
Example:

"JIRA"

referenceId
string

External reference identifier for the time entry.

Maximum string length: 255
Example:

"PROJ-123"

billableId
string | null

Unique identifier of the billable.

Example:

"bil_eym9hcqlh1m7v3d36blf0vfx"

Response

Default Response

Standard success response payload wrapped in a data property.

data
object
required

Time entry resource returned by the API.