---
title: "POST /time-entry"
method: POST
path: "/time-entry"
tags: ["Time Entries"]
---

# POST /time-entry

`POST /time-entry`

Create a new time entry for a task

## Request body

- object
  - `taskId` string, required
  - `startTime` string, required
  - `endTime` string
  - `description` string

## Response `200`

Time entry created successfully

- object
  - `id` string, required
  - `taskId` string, required
  - `userId` string, required
  - `description` string, required
  - `startTime` unknown, required
  - `endTime` unknown
  - `duration` number, required
  - `createdAt` unknown, required

## Changes

- **2026-01-11** `f6c7baa36924` — 1 breaking, 1 info
  - the response property `endTime` became optional for the status `200`
  - removed `subschema #1, subschema #2` from the `endTime` response property `anyOf` list for the response status `200`
- **2025-12-11** `93b231773126` — 1 breaking, 8 info
  - the response's body type/format changed from ``/`` to `object`/`` for status `200`
  - added the required property `createdAt` to the response with the `200` status
  - added the required property `description` to the response with the `200` status
  - added the required property `duration` to the response with the `200` status
  - …5 more

[Change history](https://skmtc.dev/usekaneo/apis/kaneo-api/changes/time-entry/post.md)

---

[API](https://skmtc.dev/usekaneo/apis/kaneo-api.md) · [All operations](https://skmtc.dev/usekaneo/apis/kaneo-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/usekaneo/kaneo-api/revisions/15fac753c45f/schema)
