Skip to content

Commit 2c56307

Browse files
Merge branch 'main' into 2025-01-15-manjaris-haiku-parameters
2 parents e90f409 + bbd36a0 commit 2c56307

File tree

278 files changed

+3740
-665
lines changed

Some content is hidden

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

278 files changed

+3740
-665
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ Content-type: application/json
218218
"identifierUris": {
219219
"nonDefaultUriAddition": {
220220
"state": "disabled",
221-
"restrictForAppsCreatedAfterDateTime": null,
222221
"excludeAppsReceivingV2Tokens": true,
223222
"excludeSaml": true
224223
}

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

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,7 @@ The following example shows a request that gets a chat message that has a Loop c
785785

786786
The following example shows a request.
787787

788+
# [HTTP](#tab/http)
788789
<!-- {
789790
"blockType": "request",
790791
"name": "get_chatmessage_7",
@@ -794,6 +795,40 @@ The following example shows a request.
794795
GET https://graph.microsoft.com/beta/chats/19:e2ed97baac8e4bffbb91299a38996790@thread.v2/messages/1732043970539
795796
```
796797

798+
# [C#](#tab/csharp)
799+
[!INCLUDE [sample-code](../includes/snippets/csharp/get-chatmessage-7-csharp-snippets.md)]
800+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
801+
802+
# [CLI](#tab/cli)
803+
[!INCLUDE [sample-code](../includes/snippets/cli/get-chatmessage-7-cli-snippets.md)]
804+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
805+
806+
# [Go](#tab/go)
807+
[!INCLUDE [sample-code](../includes/snippets/go/get-chatmessage-7-go-snippets.md)]
808+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
809+
810+
# [Java](#tab/java)
811+
[!INCLUDE [sample-code](../includes/snippets/java/get-chatmessage-7-java-snippets.md)]
812+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
813+
814+
# [JavaScript](#tab/javascript)
815+
[!INCLUDE [sample-code](../includes/snippets/javascript/get-chatmessage-7-javascript-snippets.md)]
816+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
817+
818+
# [PHP](#tab/php)
819+
[!INCLUDE [sample-code](../includes/snippets/php/get-chatmessage-7-php-snippets.md)]
820+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
821+
822+
# [PowerShell](#tab/powershell)
823+
[!INCLUDE [sample-code](../includes/snippets/powershell/get-chatmessage-7-powershell-snippets.md)]
824+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
825+
826+
# [Python](#tab/python)
827+
[!INCLUDE [sample-code](../includes/snippets/python/get-chatmessage-7-python-snippets.md)]
828+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
829+
830+
---
831+
797832

798833

799834
#### Response

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ GET https://graph.microsoft.com/beta/deviceManagement/virtualEndpoint/cloudPCs/4
202202
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
203203

204204
# [JavaScript](#tab/javascript)
205-
[!INCLUDE [snippet-not-available](../includes/snippets/snippet-not-available.md)]
205+
[!INCLUDE [sample-code](../includes/snippets/javascript/get-cloudpc-selected-properties-javascript-snippets.md)]
206206
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
207207

208208
# [PHP](#tab/php)

api-reference/beta/api/cloudpc-getprovisionedcloudpcs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ GET https://graph.microsoft.com/beta/deviceManagement/virtualEndpoint/cloudPCs/g
224224
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
225225

226226
# [JavaScript](#tab/javascript)
227-
[!INCLUDE [snippet-not-available](../includes/snippets/snippet-not-available.md)]
227+
[!INCLUDE [sample-code](../includes/snippets/javascript/cloudpcgetprovisionedcloudpcs-2-javascript-snippets.md)]
228228
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
229229

230230
# [PHP](#tab/php)

api-reference/beta/api/driveitem-copy.md

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

429429
---
430430

431-
432431
#### Response
433432

434433
The following example shows the response.

api-reference/beta/api/group-post-members.md

Lines changed: 51 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The following table shows the least privileged permission that's required by eac
5555

5656
```http
5757
POST /groups/{group-id}/members/$ref
58-
POST /groups/{group-id}/members/
58+
PATCH /groups/{group-id}/members
5959
```
6060

6161
## Request headers
@@ -67,11 +67,16 @@ POST /groups/{group-id}/members/
6767

6868
## Request body
6969

70-
When using the `/groups/{group-id}/members/$ref` syntax, supply a JSON object that contains an **@odata.id** property with a reference by ID to a supported group member object type.
70+
When using the `POST /groups/{group-id}/members/$ref` syntax, supply a JSON object that contains an **@odata.id** property with a reference by ID to a supported group member object type.
7171

72-
When using the `/groups/{group-id}/members` syntax, supply a JSON object that contains a **members@odata.bind** property with one or more references by IDs to a supported group member object type.
73-
74-
If using the **directoryObjects** reference, that is, `https://graph.microsoft.com/v1.0/directoryObjects/{id}`, the object type must still be a supported group member object type.
72+
When using the `PATCH /groups/{group-id}/members` syntax, supply a JSON object that contains a **members@odata.bind** property with one or more references by IDs to a supported group member object type. That is:
73+
- For Microsoft 365 groups, only `https://graph.microsoft.com/v1.0/directoryObjects/{id}` and `https://graph.microsoft.com/v1.0/groups/{id}` is allowed where `{id}` must be a user because only users can members of Microsoft 365 groups.
74+
- For security groups, the following ID references are allowed:
75+
- `https://graph.microsoft.com/v1.0/directoryObjects/{id}` where `{id}` must belong to a user, security group, device, service principal, or organizational contact.
76+
- `https://graph.microsoft.com/v1.0/groups/{id}` where `{id}` must belong to another security group. Microsoft 365 groups can't be members of security groups.
77+
- `https://graph.microsoft.com/v1.0/devices/{id}` where `{id}` belongs to a device.
78+
- `https://graph.microsoft.com/v1.0/servicePrincipal/{id}` where `{id}` belongs to a service principal.
79+
- `https://graph.microsoft.com/v1.0/orgContact/{id}` where `{id}` belongs to an organizational contact.
7580

7681
## Response
7782

@@ -82,9 +87,11 @@ If successful, this method returns a `204 No Content` response code. It returns
8287

8388
## Example
8489

85-
### Request
90+
### Example 1: Add a member to a group
8691

87-
The following example shows a request.
92+
#### Request
93+
94+
The following example shows a request that uses the **directoryObjects** reference to add a member to a group.
8895

8996
# [HTTP](#tab/http)
9097

@@ -136,9 +143,44 @@ Content-type: application/json
136143

137144
---
138145

139-
In the request body, supply a JSON representation of the `id` of the [directoryObject](../resources/directoryobject.md), [user](../resources/user.md), or [group](../resources/group.md) object you want to add.
146+
#### Response
147+
148+
The following example shows the response.
149+
150+
<!-- {
151+
"blockType": "response"
152+
} -->
153+
154+
```http
155+
HTTP/1.1 204 No Content
156+
```
157+
158+
### Example 2: Add multiple members to a group in a single request
159+
160+
This example shows how to add multiple members to a group with OData bind support in a PATCH operation. Up to 20 members can be added in a single request. If an error condition exists in the request body, no members are added and the appropriate response code is returned.
161+
162+
#### Request
163+
164+
The following example shows a request.
165+
<!-- {
166+
"blockType": "request",
167+
"name": "add_multiple_members_to_group"
168+
}-->
169+
170+
```http
171+
PATCH https://graph.microsoft.com/beta/groups/{group-id}
172+
Content-type: application/json
173+
174+
{
175+
"members@odata.bind": [
176+
"https://graph.microsoft.com/beta/directoryObjects/{id}",
177+
"https://graph.microsoft.com/beta/directoryObjects/{id}",
178+
"https://graph.microsoft.com/beta/directoryObjects/{id}"
179+
]
180+
}
181+
```
140182

141-
### Response
183+
#### Response
142184

143185
The following example shows the response.
144186

api-reference/beta/api/industrydata-industrydatarun-start.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,34 @@ The following example shows a request.
6767
POST https://graph.microsoft.com/beta/external/industryData/runs/start
6868
```
6969

70+
# [C#](#tab/csharp)
71+
[!INCLUDE [sample-code](../includes/snippets/csharp/industrydatarunthisstart-csharp-snippets.md)]
72+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
73+
74+
# [CLI](#tab/cli)
75+
[!INCLUDE [sample-code](../includes/snippets/cli/industrydatarunthisstart-cli-snippets.md)]
76+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
77+
78+
# [Go](#tab/go)
79+
[!INCLUDE [sample-code](../includes/snippets/go/industrydatarunthisstart-go-snippets.md)]
80+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
81+
82+
# [Java](#tab/java)
83+
[!INCLUDE [sample-code](../includes/snippets/java/industrydatarunthisstart-java-snippets.md)]
84+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
85+
7086
# [JavaScript](#tab/javascript)
7187
[!INCLUDE [sample-code](../includes/snippets/javascript/industrydatarunthisstart-javascript-snippets.md)]
7288
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
7389

90+
# [PHP](#tab/php)
91+
[!INCLUDE [sample-code](../includes/snippets/php/industrydatarunthisstart-php-snippets.md)]
92+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
93+
94+
# [Python](#tab/python)
95+
[!INCLUDE [sample-code](../includes/snippets/python/industrydatarunthisstart-python-snippets.md)]
96+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
97+
7498
---
7599

76100
### Response

api-reference/beta/api/mailbox-createimportsession.md

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

5454
The following example shows how to create an import session. The opaque URL, returned in the **importUrl** property of the response, is preauthenticated and contains the appropriate authorization token for subsequent POST queries in the https://outlook.office365.com domain. That token expires by **expirationDateTime**. Don't customize this URL for subsequent POST operations.
5555

56+
# [HTTP](#tab/http)
5657
<!-- {
5758
"blockType": "request",
5859
"name": "mailboxthis.createimportsession",
@@ -63,6 +64,36 @@ The following example shows how to create an import session. The opaque URL, ret
6364
POST https://graph.microsoft.com/beta/admin/exchange/mailboxes/MBX:e0643f21@a7809c93/createImportSession
6465
```
6566

67+
# [C#](#tab/csharp)
68+
[!INCLUDE [sample-code](../includes/snippets/csharp/mailboxthiscreateimportsession-csharp-snippets.md)]
69+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
70+
71+
# [CLI](#tab/cli)
72+
[!INCLUDE [sample-code](../includes/snippets/cli/mailboxthiscreateimportsession-cli-snippets.md)]
73+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
74+
75+
# [Go](#tab/go)
76+
[!INCLUDE [sample-code](../includes/snippets/go/mailboxthiscreateimportsession-go-snippets.md)]
77+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
78+
79+
# [Java](#tab/java)
80+
[!INCLUDE [sample-code](../includes/snippets/java/mailboxthiscreateimportsession-java-snippets.md)]
81+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
82+
83+
# [JavaScript](#tab/javascript)
84+
[!INCLUDE [sample-code](../includes/snippets/javascript/mailboxthiscreateimportsession-javascript-snippets.md)]
85+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
86+
87+
# [PHP](#tab/php)
88+
[!INCLUDE [sample-code](../includes/snippets/php/mailboxthiscreateimportsession-php-snippets.md)]
89+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
90+
91+
# [Python](#tab/python)
92+
[!INCLUDE [sample-code](../includes/snippets/python/mailboxthiscreateimportsession-python-snippets.md)]
93+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
94+
95+
---
96+
6697
### Response
6798

6899
The following example shows the response.

api-reference/beta/api/mailbox-delete-folders.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ If successful, this method returns a `204 No Content` response code.
5353
### Request
5454

5555
The following example shows how to delete a mailbox folder.
56+
# [HTTP](#tab/http)
5657
<!-- {
5758
"blockType": "request",
5859
"name": "delete_mailboxfolder",
@@ -63,6 +64,12 @@ The following example shows how to delete a mailbox folder.
6364
DELETE https://graph.microsoft.com/beta/admin/exchange/mailboxes/MBX:e0648f21@aab09c93/folders/AAMkAGVmMDEzM/$ref
6465
```
6566

67+
# [JavaScript](#tab/javascript)
68+
[!INCLUDE [sample-code](../includes/snippets/javascript/delete-mailboxfolder-javascript-snippets.md)]
69+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
70+
71+
---
72+
6673
### Response
6774

6875
The following example shows the response.

api-reference/beta/api/mailbox-exportitems.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ If successful, this action returns a `200 OK` response code and a collection of
6161
### Request
6262

6363
The following example exports two items present in the user's mailbox. The **itemIds** of the items to be exported are specified in the request body.
64+
# [HTTP](#tab/http)
6465
<!-- {
6566
"blockType": "request",
6667
"name": "mailboxthis.exportitems",
@@ -79,6 +80,36 @@ Content-type: application/json
7980
}
8081
```
8182

83+
# [C#](#tab/csharp)
84+
[!INCLUDE [sample-code](../includes/snippets/csharp/mailboxthisexportitems-csharp-snippets.md)]
85+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
86+
87+
# [CLI](#tab/cli)
88+
[!INCLUDE [sample-code](../includes/snippets/cli/mailboxthisexportitems-cli-snippets.md)]
89+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
90+
91+
# [Go](#tab/go)
92+
[!INCLUDE [sample-code](../includes/snippets/go/mailboxthisexportitems-go-snippets.md)]
93+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
94+
95+
# [Java](#tab/java)
96+
[!INCLUDE [sample-code](../includes/snippets/java/mailboxthisexportitems-java-snippets.md)]
97+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
98+
99+
# [JavaScript](#tab/javascript)
100+
[!INCLUDE [sample-code](../includes/snippets/javascript/mailboxthisexportitems-javascript-snippets.md)]
101+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
102+
103+
# [PHP](#tab/php)
104+
[!INCLUDE [sample-code](../includes/snippets/php/mailboxthisexportitems-php-snippets.md)]
105+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
106+
107+
# [Python](#tab/python)
108+
[!INCLUDE [sample-code](../includes/snippets/python/mailboxthisexportitems-python-snippets.md)]
109+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
110+
111+
---
112+
82113
### Response
83114

84115
The following example shows the response.

0 commit comments

Comments
 (0)