---
title: "Record time against a request"
method: POST
path: "/requests/{request}/time-events"
tags: ["Time tracking"]
---

# Record time against a request

`POST /requests/{request}/time-events`

## Request

- Base URL: `https://helpspot.example.com/api/v2`
- URL: `https://helpspot.example.com/api/v2/requests/{request}/time-events`
- Auth: one of:
  - HTTP bearer
  - HTTP basic

## Path parameters

- `request` integer, required

## Request body

- StoreTimeEventRequest
  - `staff_id` integer, required
  - `month` integer, required
  - `day` integer, required
  - `year` integer, required
  - `description` string, required
  - `time` string, required
  - `added_at` integer
  - `billable` boolean

## Response `201`

Time event resource. See the Time tracking guide.

- object
  - `data` TimeEventResource, required
    - `id` integer
    - `request_id` integer
    - `staff_id` integer
    - `duration_seconds` integer
    - `billable` boolean
    - `created_at` string, date-time, nullable
    - `description` string, nullable
    - `work_date` string, date, nullable

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: An error
- `404`: Not Found
- `405`: Method Not Allowed
- `406`: Not Acceptable
- `409`: Conflict
- `413`: Content Too Large
- `422`: Validation error
- `429`: Too Many Requests
- `500`: Internal Server Error
- `503`: Service Unavailable

---

[API](https://skmtc.dev/helpspot/apis/helpspot-api-v2.md) · [All operations](https://skmtc.dev/helpspot/apis/helpspot-api-v2/llms.txt) · [OpenAPI document](https://skmtc.dev/helpspot/apis/helpspot-api-v2/revisions/794dac0002c0?raw)
