Timesheet

Update time entry

PUT
Updates a time entry by its unique identifier.

Path parameters

timesheetIdstringRequired
time entry id

Request

This endpoint expects an object.
hours
doubleOptional
Reported hours
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
PUT
$curl -X PUT /api/data/timesheets/timesheetId \
> -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}