Get a time entry
Changed onThis endpoint can be used to get a time entry using its ID. This API returns the time entry object that matches the ID. The includeFields param can be used to customise the response.
Request
- Base URLhttps://api.rocketlane.com/api
- AuthAPI key in header api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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.
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"
},
"budget": {
"budgetId": 201,
"budgetName": "Pre-sales"
},
"fields": [
{
"fieldId": 201,
"fieldLabel": "MRR",
"fieldValueLabel": "1000"
}
]
}Changes
- breaking
the
response's property format changed fromint32toint64for status - info
added the optional property
to the response with the status
- breaking