Create a time entry for an employee
team:time-tracking.writehttps://api.holded.com/api/v2/employees/{employeeId}/timesCreates a completed time tracking entry with start and end times. The response returns the new time entry `id`. ## Error handling When this tool returns a 422 error, the error message contains the reason. Surface it verbatim to the user and stop — do NOT offer to retry with different parameters. Common errors: - **"start_at cannot be a future date"**: future time entries are not allowed — inform the user and stop. - **"overlaps with an existing time entry"**: there is already an entry for that period — inform the user and stop.
Parameters
Path parameters
stringrequiredEmployee ID
Request body
Start time in the user's local timezone. Use ISO 8601 format without UTC offset (e.g. 2026-03-01T09:00:00) so the API interprets it in the account timezone. Do not use +00:00 — it will shift the stored time by the account's UTC offset. Date-only (e.g. 2026-03-01) is also accepted.
End time in the user's local timezone. Use ISO 8601 format without UTC offset (e.g. 2026-03-01T17:00:00) so the API interprets it in the account timezone. Do not use +00:00 — it will shift the stored time by the account's UTC offset. Date-only (e.g. 2026-03-01) is also accepted.
Optional list of pauses within the time entry. Each pause must be within the start/end range.
Pause start time in local time without timezone offset (e.g. 2026-03-01T14:00:00). Do NOT append +00:00 or Z.
Pause end time in local time without timezone offset (e.g. 2026-03-01T15:00:00). Do NOT append +00:00 or Z.
Request
import requests
url = "https://api.holded.com/api/v2/employees/{employeeId}/times"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
payload = {
"start_at": "2026-03-01T09:00:00",
"end_at": "2026-03-01T17:00:00",
"pauses": [
{
"start_at": "2026-03-01T14:00:00",
"end_at": "2026-03-01T15:00:00"
}
]
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())Responses
Response
{
"id": "507f1f77bcf86cd799439011"
}Success responses
201Time entry createdapplication/jsonError responses
400Bad requestapplication/json401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json422Validation errorapplication/json429Rate limit exceededapplication/json