Skip to content

Commit 50edc0a

Browse files
committed
Fixed reference to Microsoft Graph v1 endpoint when shoud be beta endpoint
- fixes SharePoint#4365
1 parent b72f13f commit 50edc0a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/solution-guidance/multigeo-discovery.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,19 @@ clientContext.ExecuteQuery();
4343

4444
You can get the geo ___location information for a tenant by using Microsoft Graph. The following example returns a collection with one object per geo ___location.
4545

46+
> [!NOTE]
47+
> The following code sample uses the `dataLocationCode` attribute on the `siteCollection` object. At the time of publishing, this property is only available in [Microsoft Graph beta endpoint](https://docs.microsoft.com/en-us/graph/api/resources/sitecollection?view=graph-rest-beta).
48+
49+
4650
```
47-
GET https://graph.microsoft.com/v1.0/sites?filter=siteCollection/root%20ne%20null&select=webUrl,siteCollection
51+
GET https://graph.microsoft.com/beta/sites?filter=siteCollection/root%20ne%20null&select=webUrl,siteCollection
4852
```
4953

5054
#### Example response for a Multi-Geo tenant
5155

5256
```json
5357
{
54-
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#sites",
58+
"@odata.context": "https://graph.microsoft.com/beta/$metadata#sites",
5559
"value": [
5660
{
5761
"webUrl": "https://contoso.sharepoint.com/",
@@ -92,14 +96,14 @@ The following example shows the results of a Microsoft Graph call to a single-ge
9296
<!-- Not sure where the output for a Multi-Geo tenant is. Provide a link? -->
9397

9498
```
95-
GET https://graph.microsoft.com/v1.0/sites?filter=siteCollection/root%20ne%20null&select=webUrl,siteCollection
99+
GET https://graph.microsoft.com/beta/sites?filter=siteCollection/root%20ne%20null&select=webUrl,siteCollection
96100
```
97101

98102
#### Example response for a single-geo tenant
99103

100104
```json
101105
{
102-
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#sites",
106+
"@odata.context": "https://graph.microsoft.com/beta/$metadata#sites",
103107
"value": [
104108
{
105109
"webUrl": "https://singlegeotest.sharepoint.com/",

0 commit comments

Comments
 (0)