Resource not found for the segment 'getSchedule'

skdz2000 1 Reputation point
2021-05-18T03:32:48.97+00:00

I am using Office 365 operated by 21Vianet in China.
I can request /me/calendars and /calendar/events, and it will return calendars and events.
But When I trying to post to /me/calendar/getSchedule, it will return “resource not found for the segment 'getschedule'.”.

Permission type: Application
Permissions: Calendars.ReadWrite
url(Office 365 operated by 21Vianet in China): https://microsoftgraph.chinacloudapi.cn/v1.0/me/calendar/getSchedule
post Headers:
{
"Authorization": "Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"Content-Type": "application/json"
}

Post body:
{
"schedules": [
"xxxxxxxxx@Piepel .com"
],
"startTime": {
"dateTime": "2021-05-17T00:00:00",
"timeZone": "Pacific Standard Time"
},
"endTime": {
"dateTime": "2021-05-18T00:00:00",
"timeZone": "Pacific Standard Time"
},
"availabilityViewInterval": 60,
}

Am I missing something?
Thanks in advance.

David

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,435 questions
{count} votes