question

skdz2000 avatar image
0 Votes"
skdz2000 asked ShwetaChoudhary-8869 commented

Resource not found for the segment 'getSchedule'


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@xxxxx.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-calendar
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Can you please help me with detailed error you are getting along with request id and timestamp so that I can check it from our end.
Thanks!

0 Votes 0 ·
skdz2000 avatar image skdz2000 ShwetaChoudhary-8869 ·

HI! Thanks a lot.

The error message is as follows:

{
"error": {
"code": "BadRequest",
"message": "Resource not found for the segment 'getSchedule'.",
"innerError": {
"date": "2021-05-20T03:30:27",
"request-id": "557288e9-a1f6-4291-8b5b-89da17beebce",
"client-request-id": "557288e9-a1f6-4291-8b5b-89da17beebce"
}
}
}

0 Votes 0 ·

Please reach out to Microsoft support for this.

Thanks!

0 Votes 0 ·

0 Answers