---
title: "Create a new time entry (clock in)"
method: POST
path: "/api/v1/community/time-entries"
tags: ["community"]
---

# Create a new time entry (clock in)

`POST /api/v1/community/time-entries`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/v1/community/time-entries`
- Auth: HTTP bearer

Create a new time entry (clock in)

## Request body

- object
  - `serverId` number, required: Server ID
  - `clockIn` string, date-time, required: Clock in timestamp (ISO 8601)

## Response `200`

Default Response

- object
  - `success` true, required
  - `data` object, required
    - `id` string: UUID of the timesheet entry
    - `date` string
    - `startTime` string
    - `endTime` string, nullable
    - `serverId` number
    - `serverName` string
    - `rate` number
    - `durationHours` number, nullable: Total hours (active + idle)
    - `activeHours` number, nullable: Active hours (paid time)
    - `idleHours` number, nullable: Idle hours (unpaid time)
  - `meta` object, required
    - `timestamp` number, required

## Other responses

- `400`: Default Response
- `401`: Default Response
- `403`: Default Response
- `404`: Server not found
- `422`: Already clocked in to another server
- `500`: Default Response

---

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