Hello @Riya Dhyani ,
To disable the accept/decline options for a calendar event via the Microsoft Graph API, you can set the responseRequested property of the event to false.
Make a POST request to the following endpoint, replacing {event_id} with the actual ID of the event you want to modify to create event disabling response.
In the request body, include the responseRequested property and set it false.
PATCH /me/events/{event_id}
{ "responseRequested": false }
Send the request and the specified event will be created with disabling the accept/decline options for attendees.
Please refer to documentation. https://learn.microsoft.com/en-us/graph/api/user-post-events?view=graph-rest-1.0&tabs=http
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".