---
title: "Update Time Entry"
method: PUT
path: "/api/v1/time_entries/{time_entry_id}/"
tags: ["time_entries", "time_entries"]
---

# Update Time Entry

`PUT /api/v1/time_entries/{time_entry_id}/`

## Request

- Base URL: `https://api.peil.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.peil.app/api/v1/time_entries/{time_entry_id}/`
- Auth: none declared

## Path parameters

- `time_entry_id` integer, required

## Request body

- TimeEntryUpdate
  - `client_id` integer, nullable
  - `project_id` integer, nullable
  - `invoice_id` integer, nullable
  - `date` string, date, required
  - `start_time` string, nullable
  - `end_time` string, nullable
  - `hours` number
  - `rate` number
  - `activities` string[], nullable
  - `description` string, nullable
  - `billable` boolean
  - `status` string

## Response `200`

Successful Response

- TimeEntry
  - `client_id` integer, nullable
  - `project_id` integer, nullable
  - `invoice_id` integer, nullable
  - `date` string, date, required
  - `start_time` string, nullable
  - `end_time` string, nullable
  - `hours` number
  - `rate` number
  - `activities` string[], nullable
  - `description` string, nullable
  - `billable` boolean
  - `status` string
  - `id` integer, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `client_name` string, nullable
  - `project_name` string, nullable
  - `invoice_status` string, nullable
  - `invoice_due_date` string, date, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/peil/apis/peil-api.md) · [All operations](https://skmtc.dev/peil/apis/peil-api/llms.txt) · [OpenAPI document](https://skmtc.dev/peil/apis/peil-api/revisions/ee3ca1246dde?raw)
