microsoftgraph / microsoftgraph/microsoft-graph-explorer-v4
`https://graph.microsoft.com/v1.0/me/settings/workHoursAndLocations/occurrences/setCurrentLocation` throws Bad Request
Nobody has claimed this yet.
- 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:
- Get valid
placeId - Send a POST request to
https://graph.microsoft.com/v1.0/me/settings/workHoursAndLocations/occurrences/setCurrentLocationwith following body:
{
"placeId": "{VALID-PLACE-ID}",
"updateScope": "currentDay",
"workLocationType": "office",
}
- See error
Expected behavior
Should set the current location correctly
Desktop (please complete the following information):
- OS: MacOS
- Browser: Chrome
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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