Skip to content

Commit abf08b0

Browse files
Update Places example and format (#28475)
1 parent fe332d1 commit abf08b0

14 files changed

Lines changed: 58 additions & 18 deletions

api-reference/beta/api/place-delete.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Choose the permission or permissions marked as least privileged for this API. Us
3030
<!-- { "blockType": "permissions", "name": "place_delete" } -->
3131
[!INCLUDE [permissions-table](../includes/permissions/place-delete-permissions.md)]
3232

33-
>**Note**: Exchange Admin role is requied to delete places.
33+
[!INCLUDE [rbac-places-apis-write](../includes/rbac-for-apis/rbac-places-apis-write.md)]
3434

3535
## HTTP request
3636

api-reference/beta/api/place-get.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ The following example shows a request.
362362
}
363363
-->
364364
```msgraph-interactive
365-
GET https://graph.microsoft.com/beta/places/bldg1@contoso.com
365+
GET https://graph.microsoft.com/beta/places/dc404124-302a-92aa-f98d-7b4deb0c1705/microsoft.graph.roomList
366366
```
367367

368368
# [JavaScript](#tab/javascript)
@@ -385,7 +385,6 @@ HTTP/1.1 200 OK
385385
Content-Type: application/json
386386
387387
{
388-
"@odata.type": "#microsoft.graph.roomList",
389388
"id": "dc404124-302a-92aa-f98d-7b4deb0c1705",
390389
"displayName": "Building 1",
391390
"address": {

api-reference/beta/api/place-patch-places.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ Choose the permission or permissions marked as least privileged for this API. Us
3232
<!-- { "blockType": "permissions", "name": "place_patch_places" } -->
3333
[!INCLUDE [permissions-table](../includes/permissions/place-patch-places-permissions.md)]
3434

35+
[!INCLUDE [rbac-places-apis-write](../includes/rbac-for-apis/rbac-places-apis-write.md)]
36+
3537
## HTTP request
3638

3739
<!-- {

api-reference/beta/api/place-post.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Choose the permission or permissions marked as least privileged for this API. Us
2727
<!-- { "blockType": "permissions", "name": "place_post" } -->
2828
[!INCLUDE [permissions-table](../includes/permissions/place-post-permissions.md)]
2929

30-
>**Note**: Exchange Admin role is requied to create places.
30+
[!INCLUDE [rbac-places-apis-write](../includes/rbac-for-apis/rbac-places-apis-write.md)]
3131

3232
## HTTP request
3333

api-reference/beta/api/place-update.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Choose the permission or permissions marked as least privileged for this API. Us
2525
<!-- { "blockType": "permissions", "name": "place_update" } -->
2626
[!INCLUDE [permissions-table](../includes/permissions/place-update-permissions.md)]
2727

28-
>**Note**: Exchange Admin role is requied to update places.
28+
[!INCLUDE [rbac-places-apis-update-known-issue](../includes/rbac-for-apis/rbac-places-apis-update-known-issue.md)]
2929

3030
## HTTP request
3131

@@ -495,7 +495,7 @@ Content-Type: application/json
495495
"city": "Buffalo",
496496
"state": "NY",
497497
"postalCode": "98052",
498-
"countryOrRegion": "USA"
498+
"countryOrRegion": "US"
499499
},
500500
"geoCoordinates": {
501501
"latitude": 47.0,
@@ -604,7 +604,7 @@ Content-Type: application/json
604604
"city": "Buffalo",
605605
"state": "NY",
606606
"postalCode": "98052",
607-
"countryOrRegion": "USA"
607+
"countryOrRegion": "US"
608608
},
609609
"geoCoordinates": {
610610
"latitude": 47.0,
@@ -652,7 +652,7 @@ Content-Type: application/json
652652
"city": "Buffalo",
653653
"state": "NY",
654654
"postalCode": "98052",
655-
"countryOrRegion": "USA"
655+
"countryOrRegion": "US"
656656
},
657657
"geoCoordinates": {
658658
"altitude": null,
@@ -720,7 +720,7 @@ Content-Type: application/json
720720
"city": "Buffalo",
721721
"state": "NY",
722722
"postalCode": "98052",
723-
"countryOrRegion": "USA"
723+
"countryOrRegion": "US"
724724
},
725725
"geoCoordinates": {
726726
"altitude": null,
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
author: Dongjing-MSIT
3+
ms.topic: include
4+
---
5+
6+
> [!IMPORTANT]
7+
> In delegated scenarios with work or school accounts, the signed-in user must be assigned a supported [Microsoft Entra role](/entra/identity/role-based-access-control/permissions-reference?toc=%2Fgraph%2Ftoc.json) or a custom role with a supported role permission. *Exchange Administrator* is the least privileged role supported for this operation.
8+
9+
> **Known issue:** Update requests may still succeed without the role assignment but result in unexpected behaviors.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
author: Dongjing-MSIT
3+
ms.topic: include
4+
---
5+
6+
> [!IMPORTANT]
7+
> In delegated scenarios with work or school accounts, the signed-in user must be assigned a supported [Microsoft Entra role](/entra/identity/role-based-access-control/permissions-reference?toc=%2Fgraph%2Ftoc.json) or a custom role with a supported role permission. *Exchange Administrator* is the least privileged role supported for this operation.

api-reference/v1.0/api/place-delete.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Choose the permission or permissions marked as least privileged for this API. Us
2828
<!-- { "blockType": "permissions", "name": "place_delete" } -->
2929
[!INCLUDE [permissions-table](../includes/permissions/place-delete-permissions.md)]
3030

31-
>**Note**: Exchange Admin role is requied to delete places.
31+
[!INCLUDE [rbac-places-apis-write](../includes/rbac-for-apis/rbac-places-apis-write.md)]
3232

3333
## HTTP request
3434

api-reference/v1.0/api/place-get.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ The following example shows a request.
357357
}
358358
-->
359359
``` http
360-
GET https://graph.microsoft.com/v1.0/places/bldg1@contoso.com
360+
GET https://graph.microsoft.com/v1.0/places/dc404124-302a-92aa-f98d-7b4deb0c1705/microsoft.graph.roomList
361361
```
362362

363363
# [JavaScript](#tab/javascript)
@@ -381,7 +381,6 @@ HTTP/1.1 200 OK
381381
Content-Type: application/json
382382
383383
{
384-
"@odata.type": "#microsoft.graph.roomList",
385384
"id": "dc404124-302a-92aa-f98d-7b4deb0c1705",
386385
"displayName": "Building 1",
387386
"address": {

api-reference/v1.0/api/place-post.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Choose the permission or permissions marked as least privileged for this API. Us
2525
<!-- { "blockType": "permissions", "name": "place_post" } -->
2626
[!INCLUDE [permissions-table](../includes/permissions/place-post-permissions.md)]
2727

28-
>**Note**: Exchange Admin role is requied to create places.
28+
[!INCLUDE [rbac-places-apis-write](../includes/rbac-for-apis/rbac-places-apis-write.md)]
2929

3030
## HTTP request
3131

0 commit comments

Comments
 (0)