Microsoft Graph API v1 for Bookings states that you can update the customers
field for an existing appointment
https://learn.microsoft.com/en-us/graph/api/bookingappointment-update?view=graph-rest-1.0&tabs=csharp
Doing so results in a vague exception (Microsoft.Graph.ServiceException)
Message: An error has occurred.
Inner error:
AdditionalData:
date: 2022-01-14T18:04:47
request-id: 42a99059-024a-4f10-9396-4bae19925fae
client-request-id: 42a99059-024a-4f10-9396-4bae19925fae
ClientRequestId: 42a99059-024a-4f10-9396-4bae19925fae
The code I'm using to do this is very simple. Please advise.
var updatedAppointment = await _graphServiceClient.Solutions
.BookingBusinesses["bookings-business-id"]
.Appointments["existing-appointment-id"]
.Request()
.UpdateAsync(new BookingAppointment
{
Customers = new List<BookingCustomerInformation>
{
new BookingCustomerInformation { CustomerId = "customer-1-id" },
new BookingCustomerInformation { CustomerId = "customer-im-trying-to-add-id" }
}
});