Retrieving Event Details from a incorrect Calendar Folder

Test User 26 Reputation points
2024-10-29T09:24:00.01+00:00

The current implementation of the API does not restrict event retrieval to the specified folderId. Instead, it retrieves event details regardless of the provided folder context. As a result, if an event does not exist within the specified folder, the API should ideally return a "404 Not Found" error. However, it is currently returning event details from other folders, which is not the expected behaviour.

API Endpoint: /me/calendars/{{folderId}}/events/{id}

Expected Behaviour : When querying for event details using the specified folderId, the API should only return details for events contained within that folder. If the event is not found in the specified folder, a "404 Not Found" error should be returned.

Outlook
Outlook
A family of Microsoft email and calendar products.
4,052 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,317 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 6,650 Reputation points Microsoft Vendor
    2024-10-30T02:35:11.5866667+00:00

    Hello Test User,

    Thank you for reaching out to Microsoft Support!

    After testing, the fact is as you belong, when changing calendar_id, even if the event does not exist in the calendar, it can still return normally, this is the wrong behavior, you can give feedback here.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.