curl --location 'https://api.rippling.com/platform/api/leave_requests' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"role": "5ae0b2cb40cae73202bd66cc",
"status": "PENDING",
"startDate": "2018-08-22",
"endDate": "2018-08-24",
"startDateStartTime": "2018-08-22T12:00:00.235000-07:00",
"endDateEndTime": "2018-08-24T15:00:00.235000-07:00",
"startDateCustomHours": "8",
"endDateCustomHours": "4",
"reasonForLeave": "Visiting hometown for my brother’s wedding",
"companyLeaveType": "4c397f3b3c304e478da575da",
"leavePolicy": "5b998cf940cae798a83e87fd"
}'[
{
"id": "5b998dfb40cae798a83e8874",
"createdAt": "2018-08-12T15:06:51.681000-07:00",
"updatedAt": "2018-08-13T15:06:51.684000-07:00",
"role": "5ae0b2cb40cae73202bd66cc",
"roleName": "Jane Doe",
"requestedBy": "5ae0b2cb40cae73202bd66cc",
"requestedByName": "Jane Doe",
"status": "PENDING",
"startDate": "2018-08-22",
"endDate": "2018-08-24",
"startDateStartTime": "2018-08-22T12:00:00.235000-07:00",
"endDateEndTime": "2018-08-24T15:00:00.235000-07:00",
"startDateCustomHours": 8,
"endDateCustomHours": 4,
"comments": null,
"numHours": 20,
"numMinutes": 1200,
"leavePolicy": "5b998cf940cae798a83e87fd",
"leaveType": "VACATION",
"policyDisplayName": "Vacation",
"processedAt": null,
"processedBy": null,
"processedByName": null,
"reasonForLeave": "Visiting hometown for my brother’s wedding",
"externalId": "qwerty12345",
"roleTimezone": "America/Los_Angeles",
"dates": [
{
"date": "2018-08-22",
"numMinutes": 480
},
{
"date": "2018-08-23",
"numMinutes": 480
},
{
"date": "2018-08-24",
"numMinutes": 240
}
]
}
]