Create time entries
Writes require a UUID Idempotency-Key. Retry the same operation with the same key, body and etag. Results are retained for 30 days; reconcile the outcome before retrying later. Legacy timestamp:UUID keys remain accepted.
Parameters
Idempotency-Key
header · Required
Writes require a UUID Idempotency-Key. Retry the same operation with the same key, body and etag. Results are retained for 30 days; reconcile the outcome before retrying later. Legacy timestamp:UUID keys remain accepted.
Type: string
Complete JSON Schema
Request body
Required
application/json
Type: object
| Field | Type | Required | Description and constraints |
|---|---|---|---|
| startTime | string | Yes | Start timestamp in ISO 8601 with a time zone {"format":"date-time"} |
| stopTime | string | null | No | Stop timestamp; null means running |
| stopTime (anyOf 1) | string | No | {"format":"date-time"} |
| stopTime (anyOf 2) | null | No | |
| detail | string | null | No | Entry description |
| detail (anyOf 1) | string | No | {"maxLength":65536} |
| detail (anyOf 2) | null | No | |
| note | string | null | No | Note |
| note (anyOf 1) | string | No | {"maxLength":65536} |
| note (anyOf 2) | null | No | |
| projectId | string | null | No | Project ID, or null |
| projectId (anyOf 1) | string | No | {"minLength":1,"maxLength":512} |
| projectId (anyOf 2) | null | No | |
| tagIds | array<string> | No | Tag IDs; comma-separated GET filter, array in bodies {"maxItems":100} |
| tagIds[] | string | No | {"minLength":1,"maxLength":512} |
Complete JSON Schema
Request example
Replace path and request parameters with actual values. For requests with a body, save it as request.json using the schema above.
Responses
201
Successful response; status depends on the operation result.
application/json
Type: object
| Field | Type | Required | Description and constraints |
|---|---|---|---|
| id | string | Yes | Resource, job or operation identifier |
| version | string | Yes | Version as a decimal string; do not convert to a floating-point number {"pattern":"^(0|[1-9][0-9]*)$"} |
| etag | string | Yes | Concurrency tag; preserve quotes when sending If-Match |
| updatedAt | string | Yes | Last server update timestamp |
| operationId | string | No | Request receipt identifier; no status polling is needed |
| deletedAt | string | No | Deletion timestamp |
| startTime | string | null | No | Start timestamp in ISO 8601 with a time zone |
| startTime (anyOf 1) | string | No | |
| startTime (anyOf 2) | null | No | |
| stopTime | string | null | No | Stop timestamp; null means running |
| stopTime (anyOf 1) | string | No | |
| stopTime (anyOf 2) | null | No | |
| detail | string | null | No | Entry description |
| detail (anyOf 1) | string | No | |
| detail (anyOf 2) | null | No | |
| note | string | null | No | Note |
| note (anyOf 1) | string | No | |
| note (anyOf 2) | null | No | |
| projectId | string | null | No | Project ID, or null |
| projectId (anyOf 1) | string | No | |
| projectId (anyOf 2) | null | No | |
| tagIds | array<string> | No | Tag IDs; comma-separated GET filter, array in bodies |
| tagIds[] | string | No | |
| source | string | null | No | Source label |
| source (anyOf 1) | string | No | |
| source (anyOf 2) | null | No | |
| state | string | No | Entry, job or operation state; meaning depends on the endpoint |
| durationSeconds | number | null | No | Duration in seconds; may be fractional |
| durationSeconds (anyOf 1) | number | No | |
| durationSeconds (anyOf 2) | null | No |
Complete JSON Schema
400, 401, 403, 404, 409, 410, 413, 422, 429, 500, 503
Error response; branch on code.
application/json
Type: object
| Field | Type | Required | Description and constraints |
|---|---|---|---|
| code | string | Yes | Machine-readable error code |
| message | string | No | Error message; use code for program logic |
| requestId | string | No | Request trace identifier |
| operationId | string | No | Request receipt identifier; no status polling is needed |