microsoftgraph / microsoftgraph/microsoft-graph-explorer-v4

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

Open
#4,037 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Triaged-Unassigned
Dominant language
TypeScript
Stars
260
Forks
110
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the POST request to the Microsoft Graph setCurrentLocation endpoint with the valid placeId, currentDay scope, and office location shown in the issue. Trace where this request is handled in the TypeScript Graph Explorer code and compare the sent payload with the API requirements. Done means a valid placeId sets the current location without a Bad Request response.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.