Microsoft graph API for appointments not working

Anonymous
2024-09-25T09:26:07.4133333+00:00

I have tried to use a POST request for booking interview using "https://graph.microsoft.com/v1.0/solutions/bookingBusinesses/<service-id>/appointments". but it thowed a Internal Server Error with error code "UnknownError".

for your reference "request-id":"7fc28ac3-2a6a-463f-8151-1bd360dabaa7"

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Answer accepted by question author
  1. Hitesh Pachipulusu - MSFT 3,635 Reputation points Microsoft External Staff
    2024-09-25T11:44:06.0733333+00:00

    Hello Guna Shankar Kalla,

    Thank you for reaching out to Microsoft Support!

    It sounds frustrating to encounter an error like that. The “Internal Server Error” with the “UnknownError” code can be tricky to diagnose, but here are a few steps you can take to troubleshoot:

    1. Check the Request Format: Ensure that your POST request is correctly formatted. The body of the request should include all required fields for creating a booking appointment. In documentation, its mentioned start and end parameters in request body but we should use startdatetime and enddatetime parameters. Also, please verify you have provided valid customer details, service-id, staffmemberIds and customerId. You can verify all these details by running below Graph API.
         GET https://graph.microsoft.com/v1.0/solutions/bookingBusinesses/{id}
      
    2. If you have created the bookingpage using Graph API, please verify in UI whether it has been created or not.

    I have tested the API locally and able to create a new appointment. Please check below screenshot.

    image (29)

    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.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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