Skip to content

Commit eb02e4f

Browse files
authored
Merge branch 'main' into cparker/createExoImportExportDocs
2 parents 34eb238 + a930880 commit eb02e4f

File tree

180 files changed

+1528
-452
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+1528
-452
lines changed

api-reference/beta/api/filestoragecontainer-lock.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "fileStorageContainer: lock"
3-
description: "Lock a fileStorageContainer."
3+
description: "Lock a fileStorageContainer to prevent modifications to its content."
44
author: "javieralvarezchiang"
55
ms.localizationpriority: medium
66
ms.subservice: "onedrive"
@@ -14,7 +14,7 @@ Namespace: microsoft.graph
1414

1515
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
1616

17-
Lock a [fileStorageContainer](../resources/filestoragecontainer.md) to prevent users from adding, updating, or deleting content.
17+
Lock a [fileStorageContainer](../resources/filestoragecontainer.md) to prevent modifications to its content.
1818

1919
This action updates the [lockState](../resources/enums.md#sitelockstate-values).
2020

api-reference/beta/api/filestoragecontainer-restore.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ If successful, this action returns a `200 OK` response code and a [fileStorageCo
5959

6060
The following example shows a request.
6161

62+
# [HTTP](#tab/http)
6263
<!-- {
6364
"blockType": "request",
6465
"name": "filestoragecontainerthis.restore"
@@ -68,6 +69,36 @@ The following example shows a request.
6869
POST https://graph.microsoft.com/beta/storage/fileStorage/deletedContainers/b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z/restore
6970
```
7071

72+
# [C#](#tab/csharp)
73+
[!INCLUDE [sample-code](../includes/snippets/csharp/filestoragecontainerthisrestore-csharp-snippets.md)]
74+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
75+
76+
# [CLI](#tab/cli)
77+
[!INCLUDE [sample-code](../includes/snippets/cli/filestoragecontainerthisrestore-cli-snippets.md)]
78+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
79+
80+
# [Go](#tab/go)
81+
[!INCLUDE [sample-code](../includes/snippets/go/filestoragecontainerthisrestore-go-snippets.md)]
82+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
83+
84+
# [Java](#tab/java)
85+
[!INCLUDE [sample-code](../includes/snippets/java/filestoragecontainerthisrestore-java-snippets.md)]
86+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
87+
88+
# [JavaScript](#tab/javascript)
89+
[!INCLUDE [sample-code](../includes/snippets/javascript/filestoragecontainerthisrestore-javascript-snippets.md)]
90+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
91+
92+
# [PHP](#tab/php)
93+
[!INCLUDE [sample-code](../includes/snippets/php/filestoragecontainerthisrestore-php-snippets.md)]
94+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
95+
96+
# [Python](#tab/python)
97+
[!INCLUDE [sample-code](../includes/snippets/python/filestoragecontainerthisrestore-python-snippets.md)]
98+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
99+
100+
---
101+
71102

72103
### Response
73104

api-reference/beta/api/filestoragecontainer-unlock.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "fileStorageContainer: unlock"
3-
description: "Unlock a fileStorageContainer."
3+
description: "Unlock a fileStorageContainer for users and application-only identities to allow the addition, updating, and deletion of content."
44
author: "javieralvarezchiang"
55
ms.localizationpriority: medium
66
ms.subservice: "onedrive"
@@ -14,7 +14,7 @@ Namespace: microsoft.graph
1414

1515
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
1616

17-
Unlock a [fileStorageContainer](../resources/filestoragecontainer.md) to allow users to add, update, or delete content.
17+
Unlock a [fileStorageContainer](../resources/filestoragecontainer.md) for users and application-only identities to allow the addition, updating, and deletion of content.
1818

1919
This action updates the value of the **lockState** property.
2020

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ GET https://graph.microsoft.com/beta/identity/authenticationEventListeners/{list
7474

7575
---
7676

77-
7877
### Response
7978

8079
The following example shows the response.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ Content-Type: application/json
103103

104104
---
105105

106-
107106
### Response
108107

109108
The following example shows the response.

api-reference/beta/api/site-archive.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,8 @@ Choose the permission or permissions marked as least privileged for this API. Us
2929
|Delegated (personal Microsoft account)|Not supported.|Not supported.|
3030
|Application|Sites.FullControl.All|Not available.|
3131

32-
In delegated scenarios, the signed-in user must also be assigned one of the following supported [Microsoft Entra roles](/entra/identity/role-based-access-control/permissions-reference) for this operation:
33-
34-
* SharePoint Administrator
35-
* Global Administrator
36-
37-
*SharePoint Administrator* is the least privileged role for this operation.
32+
> [!IMPORTANT]
33+
> 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. *SharePoint Administrator* is the least privileged role for this operation.
3834
3935
## HTTP request
4036

@@ -62,6 +58,7 @@ If successful, this method returns a `204 No Content` response code. It doesn't
6258

6359
The following example shows how to archive a site.
6460

61+
# [HTTP](#tab/http)
6562
<!-- {
6663
"blockType": "request",
6764
"name": "archive_site",
@@ -72,6 +69,12 @@ The following example shows how to archive a site.
7269
POST https://graph.microsoft.com/beta/sites/contoso.sharepoint.com,da60e844-ba1d-49bc-b4d4-d5e36bae9019,712a596e-90a1-49e3-9b48-bfa80bee8740/archive
7370
```
7471

72+
# [JavaScript](#tab/javascript)
73+
[!INCLUDE [sample-code](../includes/snippets/javascript/archive-site-javascript-snippets.md)]
74+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
75+
76+
---
77+
7578
### Response
7679

7780
The following example shows the response.

api-reference/beta/api/site-unarchive.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,8 @@ Choose the permission or permissions marked as least privileged for this API. Us
2929
|Delegated (personal Microsoft account)|Not supported.|Not supported.|
3030
|Application|Sites.FullControl.All|Not available.|
3131

32-
In delegated scenarios, the signed-in user must also be assigned one of the following supported [Microsoft Entra roles](/entra/identity/role-based-access-control/permissions-reference) for this operation:
33-
34-
* SharePoint Administrator
35-
* Global Administrator
36-
37-
*SharePoint Administrator* is the least privileged role for this operation.
32+
> [!IMPORTANT]
33+
> 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. *SharePoint Administrator* is the least privileged role for this operation.
3834
3935
## HTTP request
4036

@@ -63,6 +59,7 @@ If successful, this method returns a `202 Accepted` response code. The response
6359

6460
The following example shows how to unarchive a site.
6561

62+
# [HTTP](#tab/http)
6663
<!-- {
6764
"blockType": "request",
6865
"name": "unarchive_site",
@@ -73,6 +70,12 @@ The following example shows how to unarchive a site.
7370
POST https://graph.microsoft.com/beta/sites/contoso.sharepoint.com,da60e844-ba1d-49bc-b4d4-d5e36bae9019,712a596e-90a1-49e3-9b48-bfa80bee8740/unarchive
7471
```
7572

73+
# [JavaScript](#tab/javascript)
74+
[!INCLUDE [sample-code](../includes/snippets/javascript/unarchive-site-javascript-snippets.md)]
75+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
76+
77+
---
78+
7679
### Response
7780

7881
The following example shows the response.

api-reference/beta/api/team-put-schedule.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ PUT https://graph.microsoft.com/beta/teams/871dbd5c-3a6a-4392-bfe1-042452793a50/
204204
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
205205

206206
# [PowerShell](#tab/powershell)
207-
[!INCLUDE [snippet-not-available](../includes/snippets/snippet-not-available.md)]
207+
[!INCLUDE [sample-code](../includes/snippets/powershell/team-put-schedule-2-powershell-snippets.md)]
208208
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
209209

210210
# [Python](#tab/python)

api-reference/beta/includes/snippets/cli/create-ediscoveryholdpolicy-from--cli-snippets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: "Automatically generated file. DO NOT MODIFY"
88
mgc-beta security cases ediscovery-cases legal-holds create --ediscovery-case-id {ediscoveryCase-id} --body '{\
99
"displayName": "My legalHold with sources",\
1010
"description": "Created from Graph API",\
11-
"contentQuery": "KQL content query"\
11+
"contentQuery": "KQL content query",\
1212
}\
1313
'
1414

api-reference/beta/includes/snippets/cli/create-retentionlabel-from--cli-snippets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "Automatically generated file. DO NOT MODIFY"
55
```bash
66

77

8-
mgc security labels retention-labels create --body '{\
8+
mgc-beta security labels retention-labels create --body '{\
99
"@odata.type": "#microsoft.graph.security.retentionLabel",\
1010
"displayName": "Retention Schedule 10005",\
1111
"behaviorDuringRetentionPeriod": "retain",\

0 commit comments

Comments
 (0)