| description |
Automatically generated file. DO NOT MODIFY |
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
com.microsoft.graph.users.item.presence.setautomaticlocation.SetAutomaticLocationPostRequestBody setAutomaticLocationPostRequestBody = new com.microsoft.graph.users.item.presence.setautomaticlocation.SetAutomaticLocationPostRequestBody();
setAutomaticLocationPostRequestBody.setWorkLocationType(WorkLocationType.Office);
setAutomaticLocationPostRequestBody.setPlaceId("eb706f15-137e-4722-b4d1-b601481d9251");
graphClient.me().presence().setAutomaticLocation().post(setAutomaticLocationPostRequestBody);