Share via

Problem with GraphML Create new booking appointment

Konstantinos Spiliakos 5 Reputation points
2025-03-21T10:29:15.9566667+00:00

We are posting the following JSON:

{
    "@odata.type": "#microsoft.graph.bookingAppointment",
    "customerTimeZone": "UTC",
    "customerName": "Jordan Miller",
    "customerEmailAddress": "******@contoso.com",
    "customerPhone": "213-555-0199",
    "customerNotes": null,
    "end": {
        "@odata.type": "#microsoft.graph.dateTimeTimeZone",
        "dateTime": "2025-03-21T17:30:00.0000000+00:00",
        "timeZone": "UTC"
    },
    "isCustomerAllowedToManageBooking": false,
    "isLocationOnline": true,
    "optOutOfCustomerEmail": false,
    "anonymousJoinWebUrl": null,
    "postBuffer": "PT10M",
    "preBuffer": "PT5M",
    "serviceId": "****",
    "start": {
        "@odata.type": "#microsoft.graph.dateTimeTimeZone",
        "dateTime": "2025-03-21T17:00:00.0000000+00:00",
        "timeZone": "UTC"
    },
    "maximumAttendeesCount": 5,
    "filledAttendeesCount": 1
}

on https://graph.microsoft.com/v1.0/solutions/bookingBusinesses/{bookingservice-id}/appointments

(for obvious reasons, serviceID and full URL are obfuscated for security purposes)

we get the following response:

{
    "error": {
        "code": "UnknownError",
        "message": "",
        "innerError": {
            "date": "2025-03-21T10:23:52",
            "request-id": "a9fca3f9-c853-4337-b831-5518f1bc585b",
            "client-request-id": "***"
        }
    }
}

(client request ID also obfuscated)

Please advise.

Thank you.

Microsoft Security | Microsoft Graph
0 comments No comments

1 answer

Sort by: Most helpful
  1. Akhil Nasalwai - MSFT 1,690 Reputation points Microsoft External Staff
    2025-03-21T17:39:08.86+00:00

    Hello Konstantinos Spiliakos,

    Thank you for reaching out to Microsoft Support!!

    While creating a new booking appointment using Graph API v1.0, i tried replicating the scenario by replacing the start and end properties with startDateTime and endDateTime and we are able to create the booking appointment as expected.

    Please try the above workaround and let us know the response.

    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

    Was this answer helpful?

    0 comments No comments

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.