1e8ba619e741
Create a time entry
This endpoint can be used to create a time entry. It is mandatory to provide values for these three properties: date, minutes and the source of the time entry, which can be either one of activityName, task, projectPhase or project. The activityName param can be used to track time against adhoc activities. Providing multiple sources as input will result in an error. This API returns the created time entry object.
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 resource was successfully created in the database.
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"
}
]
}