---
title: "Create time entry"
method: POST
path: "/v1/organization/{organization}/time-entries"
tags: ["TimeEntry"]
---

# Create time entry

`POST /v1/organization/{organization}/time-entries`

## Path parameters

- `organization` string, uuid, required

## Request body

- object
  - `user_id` string, uuid, required — ID of the user that the time entry should belong to
  - `task_id` string, uuid, nullable — ID of the task that the time entry should belong to
  - `start` string, required — Start of time entry (ISO 8601 format, UTC timezone)
  - `end` string, nullable, required — End of time entry (ISO 8601 format, UTC timezone)
  - `description` string, nullable — Description of time entry
  - `tags` string[], nullable — List of tag IDs

## Response `200`

`TimeEntryResource`

- object
  - `data` TimeEntryResource, required
    - `id` string, required — ID of time entry
    - `start` string, required — Start of time entry (ISO 8601 format, UTC timezone, example: 2024-02-26T17:17:17Z)
    - `end` string, nullable, required — End of time entry (ISO 8601 format, UTC timezone, example: 2024-02-26T17:17:17Z)
    - `duration` integer, required — Duration of time entry in seconds
    - `description` string, nullable, required — Description of time entry
    - `task_id` string, nullable, required — ID of task
    - `project_id` string, nullable, required — ID of project
    - `user_id` string, required — ID of user
    - `tags` string[], required — List of tag IDs

## Other responses

- `403` — Authorization error
- `404` — Not found
- `422` — Validation error

---

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