Create a timesheet
POST/api/timesheets
Required permissions:
- timetracking.view: allows to create resources.
Here the dedicated support page.
Request
Header Parameters
The company you want to interact with
The API version you want to use
- application/json
Body
The date of the timesheet (must be a Monday).
The day of the week (mon, tue, wed, thu, fri, sat, sun).
The number of hours worked.
Optional notes for the timesheet.
The ID of the project.
The ID of the person.
Responses
- 201
- 400
- 401
- 403
Returns the created timesheet.
- application/json
- Schema
- Example (from schema)
Schema
Possible values: >= 1
The unique identifier of the resource
The date and time when the resource was created
The date and time when the resource was last updated
The date of the timesheet
The daily hours of the timesheet
Notes of the timesheet
The mode of the timesheet
Possible values: >= 1
ID of the project related to the timesheet
Possible values: >= 1
ID of the person related to the timesheet
{
"id": 1,
"created_at": "2025-06-06T13:37:11.357Z",
"updated_at": "2025-06-06T13:37:11.357Z",
"date": "2024-01-01",
"hours": 15.6,
"notes": "This is a note",
"mode": "daily",
"project_id": 1,
"person_id": 1,
"deleted_at": "2025-06-06T13:37:11.357Z"
}
Validation failed
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Error unique key
Human-readable message describing the error
failures
object[]
List of validation errors
Name of the field causing the error
Human-readable description of the error
{
"key": "invalid_data",
"message": "You provided invalid data. Check 'failures' for details.",
"failures": [
{
"field": "string",
"message": "string"
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Error unique key
Human-readable message describing the error
{
"key": "string",
"message": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Error unique key
Human-readable message describing the error
{
"key": "string",
"message": "string"
}