Skip to main content

Create Time Entry for Unit

POST 

/api/repairs/:repair/lines/:line/time-entries

Adds a manual time entry to a unit and restates its labour cost.

Required scope: repairs:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Fields:

  • user_id (integer, optional) — the technician; defaults to the caller.
  • started_at (datetime, required) — ISO 8601; stored in UTC.
  • ended_at (datetime) — after started_at. Required unless minutes is given.
  • minutes (number) — > 0, max 1440. Required unless ended_at is given.
  • note (string, optional, max 255).

A single entry can be at most 24 hours.

Authentication: Bearer token with the repairs:write scope.

Request​

Responses​

OK

Response Headers
    Content-Type