> ## Documentation Index
> Fetch the complete documentation index at: https://kaneo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update time entry

> Replace a time entry's start, end, and description. Setting endTime closes a running entry and fills in its duration.



## OpenAPI

````yaml /openapi.json put /time-entry/{id}
openapi: 3.1.0
info:
  title: Kaneo API
  version: 1.0.0
  description: Kaneo Project Management API - Manage projects, tasks, labels, and more
servers:
  - url: https://cloud.kaneo.app/api
    description: Kaneo API Server
security:
  - bearerAuth: []
paths:
  /time-entry/{id}:
    put:
      tags:
        - Time Entries
      summary: Update time entry
      description: >-
        Replace a time entry's start, end, and description. Setting endTime
        closes a running entry and fills in its duration.
      operationId: updateTimeEntry
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                startTime:
                  type: string
                  format: date-time
                  example: '2026-01-31T09:00:00Z'
                endTime:
                  type: string
                  format: date-time
                  example: '2026-01-31T09:00:00Z'
                description:
                  type: string
              required:
                - startTime
      responses:
        '200':
          description: The updated time entry
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TimeEntry'
        '400':
          description: Invalid timestamps, or unknown entry
          content:
            text/plain:
              schema:
                type: string
        '401':
          description: Missing or invalid credentials
        '403':
          description: No workspace access, or missing task:update permission
          content:
            text/plain:
              schema:
                type: string
components:
  schemas:
    TimeEntry:
      type: object
      properties:
        id:
          type: string
        taskId:
          type: string
        userId:
          type:
            - string
            - 'null'
          description: Null once the user who logged the time has been removed.
        description:
          type:
            - string
            - 'null'
        startTime:
          type: string
          format: date-time
        endTime:
          type:
            - string
            - 'null'
          format: date-time
          description: Null while the timer is still running.
        duration:
          type:
            - number
            - 'null'
          description: Elapsed seconds, filled in once the entry has an endTime.
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - taskId
        - userId
        - description
        - startTime
        - endTime
        - duration
        - createdAt
        - updatedAt
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````