Skip to content

https://graph.microsoft.com/v1.0/me/settings/workHoursAndLocations/occurrences/setCurrentLocation throws Bad Request #4037

@Ceddy610

Description

@Ceddy610

Describe the bug
When trying to set a work location with a valid placeId the response is following:

{
    "error": {
        "code": "UnknownError",
        "message": "{\"ErrorCode\":\"400\",\"Message\":\"Unable to validate place ID due to a service error. Please try again later.\",\"InstanceAnnotations\":[]}",
        "innerError": {
            "date": "2026-05-22T07:30:54",
            "request-id": "6353678e-a336-48e3-a6e6-ac16b1802bb8",
            "client-request-id": "..."
        }
    }
}

To Reproduce
Steps to reproduce the behavior:

  1. Get valid placeId
  2. Send a POST request to https://graph.microsoft.com/v1.0/me/settings/workHoursAndLocations/occurrences/setCurrentLocation with following body:
{
    "placeId": "{VALID-PLACE-ID}",
    "updateScope": "currentDay",
    "workLocationType": "office",
}
  1. See error

Expected behavior
Should set the current location correctly

Desktop (please complete the following information):

  • OS: MacOS
  • Browser: Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    Triaged-Unassignedissue that is triaged but unassigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions