Timesheet

Create time entry

POST
Creates new time entry for given resource on given day.

Request

This endpoint expects an object.
date
stringOptional
Time entry date
hours
doubleOptional
Reported hours
taskId
stringOptional
Task id that time reported to
adminTypeId
stringOptional
Admin task id that time reported to
resourceId
stringOptional
Resource id that time reported to
notes
stringOptional
Notes

Response

This endpoint returns an object
error
objectOptional
If the API call failed, this will contain information about the error that occurred.
success
booleanOptional
True if the API call succeeded; false otherwise.
hasError
booleanOptional
True if the API call failed.
statusCode
enumOptional
The HTTP code of the response.
data
objectOptional
Time entry representation
POST
$curl -X POST /api/data/timesheets \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{}'
Response
1{
2 "error": {
3 "technicalError": "technicalError",
4 "additionalErrors": [
5 "additionalErrors"
6 ],
7 "message": "message"
8 },
9 "success": true,
10 "hasError": true,
11 "statusCode": "Continue",
12 "data": {
13 "id": "id",
14 "taskId": "taskId",
15 "projectId": "projectId",
16 "resourceId": "resourceId",
17 "timesheetAdminTypeId": "timesheetAdminTypeId",
18 "date": "2024-01-15T09:30:00Z",
19 "notes": "notes",
20 "approved": true,
21 "hours": 1.1
22 }
23}