Graph API
3 TopicsUpdate of appointment with Graph API results in error ".NET number values [...] cannot be written"
I'm trying to update an appointment by first getting all attributes with a GET request (https://graph.microsoft.com/v1.0/solutions/bookingBusinesses/{bookingBusiness-id}/appointments/{bookingAppointment-id}):, changing some values and then sending an update with a PATCH request. This worked fine until yesterday (2023-08-21), but today I get a "400 Bad Request" response and this error message: { "code": "UnknownError", "message": "{\"error\":{\"message\":\".NET number values such as positive and negative infinity cannot be written as valid JSON. To make it work when using 'JsonSerializer', consider specifying 'JsonNumberHandling.AllowNamedFloatingPointLiterals' (see https://docs.microsoft.com/dotnet/api/system.text.json.serialization.jsonnumberhandling).\",\"code\":\"Bad Request\"}}" } The problem is the value of the attributes in "serviceLocation.coordinates". The GET request returns this response: "serviceLocation": { "displayName": "", "locationEmailAddress": "", "locationUri": "", "locationType": "default", "uniqueId": null, "uniqueIdType": null, "address": { "street": "", "city": "", "state": "", "countryOrRegion": "", "postalCode": "" }, "coordinates": { "altitude": "NaN", "latitude": "NaN", "longitude": "NaN", "accuracy": "NaN", "altitudeAccuracy": "NaN" } } If I change the values of "altitude", "latitude", "longitude", "accuracy" and "altitudeAccuracy" to "null", the PATCH request works fine without an error. I also found out that I get the "NaN" values here if I use an app access token with MS Graph API. If I use my personal access token, I get the value "null" for all of these attributes. Does anybody know why and how this has changed since yesterday?964Views2likes1CommentUpdate of full-day event results in "OverBooking Slot" error message when using app access token
I'm using the Microsoft Graph API with the PHP package https://packagist.org/packages/microsoft/microsoft-graph. I want to update an appointment and add a new customer to it. This works fine as long as the event has a duration of e.g. 4 hours (from 08:00 to 12:00) and even if the event is at night time outside of normal working hours. But as soon as I check the checkbox for a full-day event and send an API request for it, I get a response "400 Bad Request" for a PATCH request to https://graph.microsoft.com/v1.0/solutions/bookingBusinesses/{bookingBusiness-id}/appointments/{bookingAppointment-id}: { "code": "UnknownError", "message": "{\"error\":{\"message\":\"OverBooking Slot\",\"code\":\"Bad Request\"}}", } By using a personal access token from the Microsoft Graph Explorer (and not the API app access token), I can successfully submit a request for a full-day event and add a new customer (as long as I don't include the attributes "selfServiceAppointmentId" and "anonymousJoinWebUrl", but that's another story). Does anybody have an idea why I get an error message when using the app access token and how I could avoid it?664Views1like1Comment