---
title: "Creating a new Time Entry"
method: POST
path: "/time_entries"
tags: ["Time Entries"]
---

# Creating a new Time Entry

`POST /time_entries`

## Request

- Base URL: `https://api.mavenlink.com/api/v1`
- URL: `https://api.mavenlink.com/api/v1/time_entries`
- Auth: none declared

Creates time entries for a user.

**Bulk Create**

This endpoint supports bulk creating up to 100 objects. In the request body, set the top-level key to its plural form and place the objects in an array. Example:

```
{
  "time_entries": [
    {
      "workspace_id": 123,
      "date_performed": "2025-01-23",
      "time_in_minutes": 60
    },
    {
      "workspace_id": 123,
      "date_performed": "2025-01-24",
      "time_in_minutes": 60
    }
  ]
}
```


This endpoint returns structured Time Entry objects.
As with all Kantata OX API endpoints, the returned data will be referenced in sorted order in the `results` array
and will be indexed by ID in the `time_entries` top-level JSON key.
Please see our [Response Format](#section/Response-Format) section for more information.

## Query parameters

- `include` string
- `optional_fields` string[]

## Request body

- object
  - `time_entry` object
    - `workspace_id` integer, required: The ID of the project the time entry is logging work in.
    - `date_performed` string, date, required: The date the activity for which the time is being entered was performed, format: YYYY-MM-DD. The date must be in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format.
    - `time_in_minutes` integer, required: The amount of time in minutes that the activity was worked on.
    - `billable` boolean: Whether this Time Entry is billable time. If you don't provide this parameter, `billable` will be defaulted to the value of the `billable` flag of its associated `Story` if any, otherwise to true.
    - `rate_in_cents` integer: The hourly rate for the time entry in cents.
    - `notes` string: Any notes added to the time entry. To add line breaks, use `\n`.
    - `role_id` integer: The ID of the default Role or user assigned Role for the time entry.
    - `story_id` integer: The ID of the task (story) this time entry is associated with.
    - `user_id` integer: This is set to the current_user ID by default. This parameter is ignored unless the authorizing user has financial access in the project and is on the consultants team (or if the authorizing user is an account administrator and has proxy permissions via an account member with those permissions).
    - `external_reference` object: Typically populated programmatically by a third party system via an integration, this is an optional object that holds data from an external system. It connects objects in an external system with objects in Kantata OX (for example, to connect a Jira issue to a Kantata OX Project).
      - `service_name` string, required: The provider name of the integration. If you are adding multiple external references to the same object, the `service_name` must be unique.
      - `service_model` string, required: The object type of the external object this external reference belongs to.
      - `service_model_ref` string, required: The object ID of the external object this external reference belongs to.
      - `status` string: The status of the integration. Options are `successful`, `pending`, or `failed`.
      - `external_message` string: The message on the external object.
      - `external_link` string: The link to the external object.
      - `external_status` string: The status of the external object in the external system.
      - `locked` boolean: Whether the subject is locked.
    - `location` string: The location of the time entry. Must match the name of an existing account location.

## Response `200`

Time Entry has been created.

- object
  - `count` integer
  - `meta` object
    - `count` integer
    - `page_count` integer
    - `page_number` integer
    - `page_size` integer
  - `results` object[]
    - `key` string
    - `id` string
  - `time_entries` object
  - `external_references` object
  - `stories` object
  - `workspaces` object
  - `users` object
  - `timesheet_submissions` object
  - `invoices` object
  - `roles` object

## Other responses

- `400`: Bad Request
- `401`: Unauthorized request
- `403`: Forbidden request
- `404`: Page Not Found
- `422`: Unprocessable Entity
- `503`: Service is unavailable

---

[API](https://skmtc.dev/kantata/apis/kantata-ox-api-documentation.md) - [All operations](https://skmtc.dev/kantata/apis/kantata-ox-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/kantata/apis/kantata-ox-api-documentation/revisions/9d4ebed2fa98?raw)
