Time-Offs
Get time-off by Id
get/1.0/time-offs/{timeOffId}
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
timeOffIdinteger required
The unique identifier of the time-off is generated by the system and used to identify the time-off globally.
Query parameters
includeFieldsstring[]
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.
includeAllFieldsboolean
Example:true
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
{
"timeOffId": 201,
"user": {
"emailId": "john.doe@rocketlane.com",
"userId": 201,
"firstName": "John",
"lastName": "Doe"
},
"note": "Sick leave.",
"startDate": "2023-03-28",
"endDate": "2023-03-28",
"durationInMinutes": 50,
"type": "FULL_DAY",
"notifyUsers": {
"others": [
{
"emailId": "john.doe@rocketlane.com",
"userId": 201,
"firstName": "John",
"lastName": "Doe"
}
]
},
"createdAt": 1681319726000,
"createdBy": {
"emailId": "john.doe@rocketlane.com",
"userId": 201,
"firstName": "John",
"lastName": "Doe"
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.