---
title: "Create a new timecard entry"
method: POST
path: "/v1/time_tracking/timecard_entries"
---

# Create a new timecard entry

`POST /v1/time_tracking/timecard_entries`

## Request

- Base URL: `https://api.gomotive.com`
- URL: `https://api.gomotive.com/v1/time_tracking/timecard_entries`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/gomotive/apis/motive/docs/v1/time_tracking/timecard_entries/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- object
  - `date` string, date, required: Specify the date for which you want to update the timecard entries.
  - `user_id` integer, required: Specify the ID of the user for whom you are making these changes.
  - `timecard_entries` object[]
    - `start_time` string, date: Specify the start time for the timecard entry.
    - `end_time` string, date: Specify the end time for the timecard entry.
    - `entry_type` string: Specify the type of the entry. Allowed values are <ul><li><b>clocked_in</b></li><li><b>clocked_out</b></li></ul>
    - `notes` string: Specify notes for updating the timecard of the user. For example, "Updated the entry_type to clocked_in, as it was not captured earlier."
    - `address` string: The address associated with the timecard entry.
    - `detail_uuid` string: The unique identifier of the detail.
    - `lat` string: The latitude location of the driver when the timecard was updated.
    - `lon` string: The longitude location of the driver when the timecard was updated.

## Response `200`

200

- object
  - `success` boolean

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/gomotive/apis/motive.md) - [All operations](https://skmtc.dev/gomotive/apis/motive/llms.txt) - [OpenAPI document](https://skmtc.dev/gomotive/apis/motive/revisions/c71780e497f5?raw)
