---
title: "Update time entry"
method: PUT
path: "/v3/time-entries/{id}"
tags: ["[v3] Time Entry"]
---

# Update time entry

`PUT /v3/time-entries/{id}`

Update a time entry by id.

## Path parameters

- `id` integer, required

## Headers

- `Accept` string
- `Tc-service` string

## Request body

- object
  - `date` string, date
  - `startTime` string
  - `endTime` string
  - `duration` integer — Duration in seconds.
  - `increase` boolean — When true, adds duration to the current time entry duration instead of replacing it.
  - `note` string — Time entry note. Takes precedence over description when both are provided.
  - `description` string — Time entry description. Used when note is not provided.
  - `billable` boolean
  - `invoiceId` integer
  - `taskId` integer
  - `analyticsPlace` string
  - `analyticsElement` string

## Response `200`

Time entry updated successfully.

- object
  - `data` object
    - `entry_id` integer
    - `task_id` integer
    - `time_span` integer — Duration in seconds.
    - `user_id` integer
    - `date` string, date
    - `start_time_hour` string
    - `end_time_hour` string
    - `note` string, nullable
    - `billable` boolean
    - `invoiceId` integer
    - `color` string, nullable
    - `tags` integer[]
  - `meta` object
    - `tags` object[] — Tag metadata for tags assigned to the updated time entry.
      - `id` integer, required
      - `name` string, required

## Other responses

- `400` — Invalid request payload.
- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Time entry not found.

---

[API](https://skmtc.net/timecamp/apis/timecamp-api.md) · [All operations](https://skmtc.net/timecamp/apis/timecamp-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/timecamp/timecamp-api/versions/c7e9d1f9cf61/schema)
