Microsoft GraphAPI - Error updating room using Java SDK

Anil Sharma 0 Reputation points
2023-03-20T17:36:27.4566667+00:00

I user Java SDK to update a Room as shown in example

https://learn.microsoft.com/en-us/graph/api/place-update?view=graph-rest-1.0&tabs=java

Getting the following Error Message while updating a room

2023-03-20 18:22:23.927 ERROR 3316 --- [nio-8080-exec-8] global : CoreHttpProvider[sendRequestInternal] - 408Graph service exception

2023-03-20 18:22:23.927 ERROR 3316 --- [nio-8080-exec-8] global : Throwable detail: com.microsoft.graph.http.GraphServiceException: Error code:

Error message: Update request has to be for a tenant Room, Space, Desk or RoomList.

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

1 answer

Sort by: Most helpful
  1. HarmeetSingh7172 4,826 Reputation points
    2023-03-31T00:03:28.15+00:00

    Hello Anil Sharma,

    A 408 Graph service exception is an error that occurs when there is a timeout while trying to establish a connection between a client application and MS graph service. The 408 error indicates that the server timed out due to an issue with the request or with the target resource.

    As per my testing, Update Place graph API with delegated permission 'Place.ReadWrite.All' permission is working absolutely fine. Possible reasons you are encountering this 408-service exception could be:

    You're trying to update an object that is not a Tenant room, or roomlist.

    You're using application permissions/client credentials flow to update the room, which is not supported as per documentation.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    0 comments No comments

Your answer

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