1e8ba619e741
Update a time entry
This endpoint can be used to update a time entry using its ID. To ensure that the total time for all the time entries added for that date does not exceed 24 hours, the fields date and minutes are mandatory. The properties activityName, notes, billable and minutes can be updated using this endPoint. This API returns the updated time entry object.
Path parameters
The unique, system-generated identifier, which can be used to identify the time entry globally.
Query parameters
This query parameter allows you to specify which fields should be returned in the response body by selecting from the drop down. To get the relevant fields, use comma separated values. If the field is left blank, the default properties are returned.
This query parameter allows you to specify if all the fields should be returned in the response body. If the field is left blank, the default properties are returned.
Request body
Response
The requested action was successfully executed.
Example response
{
"timeEntryId": 201,
"date": "2023-03-28",
"minutes": 250,
"activityName": "Pre-Sales campaign",
"project": {
"projectName": "Acme Onboarding",
"projectId": 204
},
"task": {
"taskName": "Kickoff meeting",
"taskId": 201
},
"projectPhase": {
"phaseId": 201,
"phaseName": "Go live"
},
"createdAt": 1681319726000,
"updatedAt": 1681319726000,
"createdBy": {
"emailId": "john.doe@rocketlane.com",
"userId": 201,
"firstName": "John",
"lastName": "Doe"
},
"updatedBy": {
"emailId": "john.doe@rocketlane.com",
"userId": 201,
"firstName": "John",
"lastName": "Doe"
},
"billable": true,
"user": {
"emailId": "john.doe@rocketlane.com",
"userId": 201,
"firstName": "John",
"lastName": "Doe"
},
"notes": "Working on API integration",
"category": {
"categoryName": "Pre-sales",
"categoryId": 8
},
"sourceType": "Task",
"submittedBy": {
"emailId": "john.doe@rocketlane.com",
"userId": 201,
"firstName": "John",
"lastName": "Doe"
},
"submittedAt": 1681319726000,
"approvedBy": {
"emailId": "john.doe@rocketlane.com",
"userId": 201,
"firstName": "John",
"lastName": "Doe"
},
"approvedAt": 1681319726000,
"rejectedBy": {
"emailId": "john.doe@rocketlane.com",
"userId": 201,
"firstName": "John",
"lastName": "Doe"
},
"rejectedAt": 1681319726000,
"deleted": true,
"costRate": {
"rate": 40,
"currency": "USD"
},
"billRate": {
"rate": 40,
"currency": "EUR"
},
"fields": [
{
"fieldId": 201,
"fieldLabel": "MRR",
"fieldValueLabel": "1000"
}
]
}