---
title: "Add a time range entry for a task"
method: POST
path: "/v1/time-track/tasks/{taskId}/range"
tags: ["Task Timer"]
---

# Add a time range entry for a task

`POST /v1/time-track/tasks/{taskId}/range`

Logs a time entry based on a start and end timestamp. Useful when you know the exact time window.

## Path parameters

- `taskId` integer, required

## Headers

- `X-Org-Id` integer, required

## Request body

- RangeTimerRequest — Payload to log a time range for a task, including start/end timestamps, billing, and optional notes.
  - `startTime` integer, required — Start time of the work (epoch millis)
  - `endTime` integer, required — End time of the work (epoch millis)
  - `billingType` boolean, required — Whether the time is billable
  - `notes` string — Optional notes describing the work

## Response `200`

Time range added successfully

- ApiSuccessResponseTimeTrackerDto — Standard API success response structure
  - `success` boolean — Indicates if the operation was successful
  - `message` string — Message describing the result of the operation
  - `code` integer — HTTP status code of the response
  - `data` TimeTrackerDto
    - `tenantId` integer
    - `trackId` integer
    - `trackerType` string
    - `startTime` string, date-time
    - `endTime` string, date-time
    - `timePeriod` integer
    - `taskId` integer
    - `parentTaskId` integer
    - `title` string
    - `projectId` integer
    - `spaceId` integer
    - `billingType` boolean
    - `notes` string
    - `user` UserMinimalDto
      - `userId` integer
      - `firstName` string
      - `email` string
      - `profilePicURL` string
      - `profilePicColor` string
      - `provider` string
      - `role` OrgRoleDto
        - `orgRoleId` integer
        - `roleName` string
    - `createdTime` string, date-time
    - `when` string, date-time
    - `status` string
  - `timestamp` string, date-time — Timestamp of the response

---

[API](https://skmtc.net/astravue/apis/astravue-api.md) · [All operations](https://skmtc.net/astravue/apis/astravue-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/astravue/astravue-api/versions/237f5bbd4029/schema)
