---
search:
  tags:
    - timebookings
    - PATCH
seo:
  description: >-
    Updates an existing time booking entry. You can modify any field of the…
    Reference for the PATCH /timebookings/{id} endpoint in the Leadtime Public
    API API.
sidebar:
  badge: PATCH
  label: Update an existing time booking
title: Update an existing time booking
type: openapi-operation
---
Updates an existing time booking entry. You can modify any field of the time booking.

**Who can update time bookings:**
- You can always update your own time bookings
- If you have the "editAnyTimeLog" permission, you can update any time booking in the workspace
- Otherwise, you cannot update time bookings created by other users

**What can be updated:**
All fields are optional in the update request. Only provide the fields you want to change:
- **Type**: Change between task-based and project-based booking
- **Task ID**: Switch to a different task (if type is "task")
- **Project ID**: Switch to a different project (if type is "project")
- **Activity ID**: Change the activity type
- **Hours**: Adjust the logged hours
- **Minutes**: Adjust additional minutes (0-59)
- **Comment**: Update the comment text
- **Date**: Change the date when the work was performed

**How it works:**
- Fields not provided in the update request will keep their existing values
- If you change the type from "task" to "project" (or vice versa), make sure to provide the appropriate ID field
- Hours and minutes are combined: if you provide both, they are added together
- The system validates that the time booking exists and belongs to your workspace

**Common use cases:**
- Correcting a typo in hours or comment
- Moving time from one task to another
- Changing the activity type for better categorization
- Updating the date if it was logged incorrectly

<Operation source="api-reference" id="timebookingscontroller-updatetimebooking" />
