To get attendees free meeting slots you need to use header Prefer: outlook.timezone="India Standard Time"
. Please find the below sample screenshot along with the body.
{
"attendees": [
{
"type": "required",
"emailAddress": {
"name": "Diego Siciliani",
"address": DiegoS@M****.OnMicrosoft.com
}
}
],
"locationConstraint": {
"isRequired": false,
"suggestLocation": false,
"locations": [
{
"resolveAvailability": false,
"displayName": "Conf room Hood"
}
]
},
"timeConstraint": {
"activityDomain": "work",
"timeSlots": [
{
"start": {
"dateTime": "2022-11-16T09:00:00",
"timeZone": "Pacific Standard Time"
},
"end": {
"dateTime": "2022-11-16T17:00:00",
"timeZone": "Pacific Standard Time"
}
}
]
},
"isOrganizerOptional": "false",
"meetingDuration": "PT1H",
"returnSuggestionReasons": "true",
"minimumAttendeePercentage": "100"
}
Please refer to this documentation for more details.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.