I've created custom connector using the Booking API. When trying to create an appointment, I get the following error:
Hi @astheo,
Have you tried including the @odata.type in the body of the http request?
For example, for booking details is "@odata.type":"#microsoft.graph.bookingAppointment"... customer details is "#microsoft.graph.bookingCustomerInformation"... for event date and time is "@odata.type":"#microsoft.graph.dateTimeTimeZone"
PATCH https://graph.microsoft.com/v1.0/solutions/bookingBusinesses/Contosolunchdelivery@contoso.onmicrosoft.com/appointments/AAMkADKnAAA=
Content-type: application/json
{
"@odata.type":"#microsoft.graph.bookingAppointment",
"endDateTime":{
"@odata.type":"#microsoft.graph.dateTimeTimeZone",
"dateTime":"2018-05-06T12:30:00.0000000+00:00",
"timeZone":"UTC"
},
"startDateTime":{
"@odata.type":"#microsoft.graph.dateTimeTimeZone",
"dateTime":"2018-05-06T12:00:00.0000000+00:00",
"timeZone":"UTC"
}
}
Hope it helps!