Updates from: 01/05/2021 04:09:47
Service Microsoft Docs article Related commit history on GitHub Change details
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageassignmentpolicy-post https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageassignmentpolicy-post.md
@@ -283,6 +283,8 @@ Questions configured in an assignment policy will be asked to requestors in scop
The following example shows a request to create an access package assignment policy. +
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "create_accesspackageassignmentpolicy_from_accesspackageassignmentpolicies_questions"
@@ -380,6 +382,24 @@ Content-type: application/json
}] } ```
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/create-accesspackageassignmentpolicy-from-accesspackageassignmentpolicies-questions-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/create-accesspackageassignmentpolicy-from-accesspackageassignmentpolicies-questions-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/create-accesspackageassignmentpolicy-from-accesspackageassignmentpolicies-questions-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/create-accesspackageassignmentpolicy-from-accesspackageassignmentpolicies-questions-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
+ ---
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageassignmentpolicy-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageassignmentpolicy-update.md
@@ -163,6 +163,18 @@ Content-length: 1000
[!INCLUDE [sample-code](../includes/snippets/java/update-accesspackageassignmentpolicy-java-snippets.md)] [!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/update-accesspackageassignmentpolicy-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/update-accesspackageassignmentpolicy-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/update-accesspackageassignmentpolicy-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+ ---
v1.0 https://docs.microsoft.com/en-us/graph/api/accessreviewscheduledefinition-create https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accessreviewscheduledefinition-create.md
@@ -115,6 +115,18 @@ Content-type: application/json
[!INCLUDE [sample-code](../includes/snippets/javascript/create-accessreviewscheduledefinition-javascript-snippets.md)] [!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/create-accessreviewscheduledefinition-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/create-accessreviewscheduledefinition-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/create-accessreviewscheduledefinition-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+ ---
v1.0 https://docs.microsoft.com/en-us/graph/api/appcatalogs-list-teamsapps https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/appcatalogs-list-teamsapps.md
@@ -266,19 +266,19 @@ The following example lists applications with a given ID, and expands **appDefin
GET https://graph.microsoft.com/beta/appCatalogs/teamsApps?$filter=id eq '876df28f-2e78-423b-94a5-44181bd0e225'&$expand=appDefinitions ``` # [C#](#tab/csharp)
-[!INCLUDE [sample-code](../includes/snippets/csharp/list-teamsapp-expand-appdefinitions-csharp-snippets.md)]
+[!INCLUDE [sample-code](../includes/snippets/csharp/list-teamsapp-with-filter-expand-appdefinitions-csharp-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)] # [JavaScript](#tab/javascript)
-[!INCLUDE [sample-code](../includes/snippets/javascript/list-teamsapp-expand-appdefinitions-javascript-snippets.md)]
+[!INCLUDE [sample-code](../includes/snippets/javascript/list-teamsapp-with-filter-expand-appdefinitions-javascript-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)] # [Objective-C](#tab/objc)
-[!INCLUDE [sample-code](../includes/snippets/objc/list-teamsapp-expand-appdefinitions-objc-snippets.md)]
+[!INCLUDE [sample-code](../includes/snippets/objc/list-teamsapp-with-filter-expand-appdefinitions-objc-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)] # [Java](#tab/java)
-[!INCLUDE [sample-code](../includes/snippets/java/list-teamsapp-expand-appdefinitions-java-snippets.md)]
+[!INCLUDE [sample-code](../includes/snippets/java/list-teamsapp-with-filter-expand-appdefinitions-java-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)] ---
v1.0 https://docs.microsoft.com/en-us/graph/api/b2cidentityuserflow-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/b2cidentityuserflow-update.md
@@ -67,6 +67,8 @@ If successful, this method returns a `200 OK` response code and an updated [b2cI
The following is an example of the request. +
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "update_b2cidentityuserflow"
@@ -83,6 +85,16 @@ Content-length: 469
"defaultLanguageTag": "en", } ```
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/update-b2cidentityuserflow-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/update-b2cidentityuserflow-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
+ ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/calendargroup-post-calendars https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/calendargroup-post-calendars.md
@@ -84,6 +84,18 @@ Content-type: application/json
[!INCLUDE [sample-code](../includes/snippets/javascript/create-calendar-from-calendargroup-javascript-snippets.md)] [!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/create-calendar-from-calendargroup-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/create-calendar-from-calendargroup-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/create-calendar-from-calendargroup-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+ ---
v1.0 https://docs.microsoft.com/en-us/graph/api/channel-post https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/channel-post.md
@@ -63,6 +63,8 @@ If the request is unsuccessful, this method returns a `400 Bad Request` response
The following example shows a request to create a standard channel. +
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "create_channel_from_group"
@@ -77,6 +79,24 @@ Content-type: application/json
"membershipType": "standard" } ```
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/create-channel-from-group-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/create-channel-from-group-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/create-channel-from-group-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/create-channel-from-group-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
+ ---
@@ -110,6 +130,8 @@ Content-length: 201
The following example shows a request to create a private channel and add a user as an team owner. +
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "create_private_channel_with_member"
@@ -134,6 +156,24 @@ Content-type: application/json
] } ```
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/create-private-channel-with-member-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/create-private-channel-with-member-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/create-private-channel-with-member-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/create-private-channel-with-member-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
+ ---
@@ -171,6 +211,8 @@ Content-length: 201
The following example shows how to create a channel that will be used for importing messages. +
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "create_channel_for_migration"
@@ -188,6 +230,24 @@ Content-Type: application/json
"createdDateTime": "2020-03-14T11:22:17.067Z" } ```
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/create-channel-for-migration-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/create-channel-for-migration-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/create-channel-for-migration-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/create-channel-for-migration-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
+ #### Response
@@ -212,6 +272,8 @@ Content-Location: /teams/57fb72d0-d811-46f4-8947-305e6072eaa5/channels/{channelI
The following example shows a request to create a standard channel with moderation settings. This operation can only be performed for a standard channel. +
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "create_channel_with_moderation_settings"
@@ -233,6 +295,24 @@ Content-type: application/json
} } ```
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/create-channel-with-moderation-settings-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/create-channel-with-moderation-settings-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/create-channel-with-moderation-settings-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/create-channel-with-moderation-settings-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
+ ---
v1.0 https://docs.microsoft.com/en-us/graph/api/chat-delete-members https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/chat-delete-members.md
@@ -52,6 +52,8 @@ If successful, this method returns a `204 No Content` response code.
> [!NOTE] > There are some known issues with this functionality. For details, see [known issues](/graph/known-issues.md#unable-to-remove-members-from-chat). +
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "delete_members_from_chat"
@@ -60,6 +62,24 @@ If successful, this method returns a `204 No Content` response code.
``` http DELETE https://graph.microsoft.com/beta/chats/19:cf66807577b149cca1b7af0c32eec122@thread.v2/members/MCMjMjQzMmI1N2ItMGFiZC00M2RiLWFhN2ItMTZlYWRkMTE1ZDM0IyMxOTpiZDlkYTQ2MzIzYWY0MjUzOTZkMGZhNjcyMDAyODk4NEB0aHJlYWQudjIjIzQ4YmY5ZDUyLWRjYTctNGE1Zi04Mzk4LTM3Yjk1Y2M3YmQ4Mw== ```
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/delete-members-from-chat-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/delete-members-from-chat-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/delete-members-from-chat-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/delete-members-from-chat-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
+ ### Response The following is an example of the response.
v1.0 https://docs.microsoft.com/en-us/graph/api/chat-get-members https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/chat-get-members.md
@@ -64,6 +64,8 @@ If successful, this method returns a `200 OK` response code and a [conversationM
Here is an example of the request. +
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "get_conversation_member"
@@ -71,6 +73,24 @@ Here is an example of the request.
```msgraph-interactive GET https://graph.microsoft.com/beta/chats/19:cf66807577b149cca1b7af0c32eec122@thread.v2/members/141c574c-dd90-4131-b173-baf4bb0e894e ```
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/get-conversation-member-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/get-conversation-member-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/get-conversation-member-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/get-conversation-member-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
+ ---
v1.0 https://docs.microsoft.com/en-us/graph/api/chat-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/chat-get.md
@@ -66,6 +66,24 @@ Here is an example of the request.
```msgraph-interactive GET https://graph.microsoft.com/beta/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5/chats/19:8b081ef6-4792-4def-b2c9-c363a1bf41d5_877192bd-9183-47d3-a74c-8aa0426716cf@unq.gbl.spaces ```
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/get-chat-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/get-chat-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/get-chat-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/get-chat-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
+ ---
v1.0 https://docs.microsoft.com/en-us/graph/api/chat-list-members https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/chat-list-members.md
@@ -75,6 +75,24 @@ Here is an example of the request.
```msgraph-interactive GET https://graph.microsoft.com/beta/me/chats/19:8b081ef6-4792-4def-b2c9-c363a1bf41d5_5031bb31-22c0-4f6f-9f73-91d34ab2b32d@unq.gbl.spaces/members ```
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/list-conversation-members-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/list-conversation-members-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/list-conversation-members-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/list-conversation-members-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
+ ---
v1.0 https://docs.microsoft.com/en-us/graph/api/chat-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/chat-list.md
@@ -68,6 +68,24 @@ Here is an example of the request.
```msgraph-interactive GET https://graph.microsoft.com/beta/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5/chats ```
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/list-chats-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/list-chats-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/list-chats-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/list-chats-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
+ ---
@@ -128,6 +146,24 @@ Here is an example of the request.
```msgraph-interactive GET https://graph.microsoft.com/beta/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5/chats?$expand=members ```
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/list-chats-expand-members-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/list-chats-expand-members-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/list-chats-expand-members-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/list-chats-expand-members-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
+ ---
@@ -284,6 +320,24 @@ Here is an example of a request that will filter all the chats based on a specif
```msgraph-interactive GET https://graph.microsoft.com/beta/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5/chats?$expand=members&$filter=members/any(o: o/displayname eq 'Peter Parker') ```
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/list-chats-expand-members-and-filter-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/list-chats-expand-members-and-filter-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/list-chats-expand-members-and-filter-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/list-chats-expand-members-and-filter-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
+ ---
v1.0 https://docs.microsoft.com/en-us/graph/api/chat-patch https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/chat-patch.md
@@ -56,6 +56,8 @@ If successful, this method returns a `200 OK response` code and the updated **ch
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "update_chat"
@@ -69,6 +71,24 @@ Content-Type: application/json
"topic": "Group chat title update", } ```
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/update-chat-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/update-chat-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/update-chat-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/update-chat-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
+ ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/chat-post-members https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/chat-post-members.md
@@ -53,6 +53,8 @@ If successful, this method returns a `201 Created` response code and a Location
Here is an example of the request. +
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "create_conversation_member_with_specific_visibleHistoryStartDateTime"
@@ -67,6 +69,20 @@ content-type: application/json
"visibleHistoryStartDateTime": "2019-04-18T23:51:43.255Z" } ```
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/create-conversation-member-with-specific-visiblehistorystartdatetime-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/create-conversation-member-with-specific-visiblehistorystartdatetime-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/create-conversation-member-with-specific-visiblehistorystartdatetime-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
+ ---
@@ -94,6 +110,8 @@ Location: /chats/19:cf66807577b149cca1b7af0c32eec122@thread.v2/members/MCMjMjQzM
Here is an example of the request. +
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "create_conversation_member_with_no_visibleHistoryStartDateTime"
@@ -108,6 +126,21 @@ Content-type: application/json
} ```
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/create-conversation-member-with-no-visiblehistorystartdatetime-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/create-conversation-member-with-no-visiblehistorystartdatetime-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/create-conversation-member-with-no-visiblehistorystartdatetime-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
++ ---
@@ -134,6 +167,8 @@ Location: /chats/19:cf66807577b149cca1b7af0c32eec122@thread.v2/members/MCMjMjQzM
Here is an example of the request. +
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "create_conversation_member_with_all_visibleHistoryStartDateTime"
@@ -148,6 +183,20 @@ content-type: application/json
"visibleHistoryStartDateTime": "0001-01-01T00:00:00Z" } ```
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/create-conversation-member-with-all-visiblehistorystartdatetime-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/create-conversation-member-with-all-visiblehistorystartdatetime-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/create-conversation-member-with-all-visiblehistorystartdatetime-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
+ ---
v1.0 https://docs.microsoft.com/en-us/graph/api/chat-post https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/chat-post.md
@@ -47,7 +47,7 @@ The following table lists the properties that are required to create a chat obje
|Property|Type|Description| |:---|:---|:---| |topic|(Optional) String|The title of the chat. The chat title can be provided only if the chat is of 'group' type.|
-|chatType|[chatType](../resources/chat.md#chattype-values)| Specifies the type of chat. Possible values are:`group` and `oneOnOne`. |
+|chatType|[chatType](../resources/chat.md#chattype-values)| Specifies the type of chat. Possible values are: `group` and `oneOnOne`. |
|members|[conversationMember](../resources/conversationmember.md) collection|List of conversation members that should be added. Every single user, including the user initiating the create request, who will participate in the chat must be specified in this list.| ## Response
@@ -59,6 +59,8 @@ If successful, this method returns a 201 Created response code and the newly cre
### Example 1: Create a one-on-one chat #### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "create_chat_oneOnOne"
@@ -84,6 +86,24 @@ Content-Type: application/json
] } ```
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/create-chat-oneonone-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/create-chat-oneonone-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/create-chat-oneonone-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/create-chat-oneonone-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
+ --- #### Response
@@ -111,6 +131,8 @@ Content-Type: application/json
### Example 2: Create a group chat #### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "create_chat_group"
@@ -142,6 +164,24 @@ Content-Type: application/json
] } ```
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/create-chat-group-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/create-chat-group-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/create-chat-group-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/create-chat-group-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
+ --- #### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/connector-post-memberof https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/connector-post-memberof.md
@@ -63,6 +63,18 @@ Content-length: 99
[!INCLUDE [sample-code](../includes/snippets/javascript/create-connectorgroup-from-connector-javascript-snippets.md)] [!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/create-connectorgroup-from-connector-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/create-connectorgroup-from-connector-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/create-connectorgroup-from-connector-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+ --- In the request body, supply a JSON representation of [connectorGroup](../resources/connectorgroup.md) object.
v1.0 https://docs.microsoft.com/en-us/graph/api/connectorgroup-post-applications https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/connectorgroup-post-applications.md
@@ -64,6 +64,18 @@ Content-length: 30
[!INCLUDE [sample-code](../includes/snippets/javascript/create-application-from-connectorgroup-javascript-snippets.md)] [!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/create-application-from-connectorgroup-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/create-application-from-connectorgroup-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/create-application-from-connectorgroup-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+ ---
v1.0 https://docs.microsoft.com/en-us/graph/api/device-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/device-get.md
@@ -46,8 +46,8 @@ Do not supply a request body for this method.
If successful, this method returns a `200 OK` response code and [device](../resources/device.md) object in the response body. ## Example
-##### Request
-Here is an example of the request.
+### Request
+The following example shows a request.
# [HTTP](#tab/http) <!-- {
@@ -76,10 +76,12 @@ GET https://graph.microsoft.com/beta/devices/{id}
---
-> Note: The "id" in the request is the "id" property of the device, not the "deviceId" property.
+> **Note:** The `id` in the request is the **id** property of the device, not the **deviceId** property.
-##### Response
-Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.
+### Response
+The following example shows a response for a device with no **hostNames**.
+
+>**Note:** The response object shown here might be shortened for readability.
<!-- { "blockType": "response", "truncated": true,
@@ -95,10 +97,35 @@ Content-length: 322
"approximateLastSignInDateTime": "2016-10-19T10:37:00Z", "deviceId": "deviceId-value", "deviceMetadata": "deviceMetadata-value",
- "deviceVersion": 99
+ "deviceVersion": 99,
+ "hostNames": []
} ```
+The following example shows a response for a device with **hostNames**.
+
+>**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.device"
+} -->
+```http
+HTTP/1.1 200 OK
+Content-type: application/json
+Content-length: 322
+
+{
+ "accountEnabled": true,
+ "approximateLastSignInDateTime": "2016-10-19T10:37:00Z",
+ "deviceId": "deviceId-value",
+ "deviceMetadata": "deviceMetadata-value",
+ "deviceVersion": 99,
+ "hostnames":["hostname1.contoso.onmicrosoft.com", "hostname1"]
+}
+```
++ ## See also - [Add custom data to resources using extensions](/graph/extensibility-overview)
v1.0 https://docs.microsoft.com/en-us/graph/api/device-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/device-list.md
@@ -189,7 +189,18 @@ Content-type: application/json
"displayName":"a_device_1", "Manufacturer":"Google", "Model":"Pixel 3a",
- "operatingSystemVersion":"10.0"
+ "operatingSystemVersion":"10.0",
+ "hostNames":[]
+ },
+ {
+ "accountEnabled":true,
+ "deviceId":"00000000-0000-0000-0000-000000000001",
+ "deviceVersion":1,
+ "displayName":"a_device_1",
+ "Manufacturer":"Microsoft",
+ "Model":"Surface",
+ "operatingSystemVersion":"windows10EnterpriseN",
+ "hostNames":["device_1.contoso.onmicrosoft.com", "device_1"]
} ] }
@@ -236,7 +247,8 @@ Content-type: application/json
"displayName":"contoso_Android", "Manufacturer":"Google", "Model":"Pixel 3a",
- "operatingSystemVersion":"10.0"
+ "operatingSystemVersion":"10.0",
+ "hostNames":[]
} ] }
v1.0 https://docs.microsoft.com/en-us/graph/api/educationclass-post-assignments https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/educationclass-post-assignments.md
@@ -28,7 +28,6 @@ One of the following permissions is required to call this API. To learn more, in
<!-- { "blockType": "ignored" } --> ```http POST /education/classes/{id}/assignments- ``` ## Request headers | Header | Value |
v1.0 https://docs.microsoft.com/en-us/graph/api/identityuserflowattributeassignment-setorder https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/identityuserflowattributeassignment-setorder.md
@@ -86,6 +86,18 @@ Content-length: 90
[!INCLUDE [sample-code](../includes/snippets/javascript/identityuserflowattributeassignment-setorder-javascript-snippets.md)] [!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/identityuserflowattributeassignment-setorder-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/identityuserflowattributeassignment-setorder-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/identityuserflowattributeassignment-setorder-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+ ---
v1.0 https://docs.microsoft.com/en-us/graph/api/mailfolder-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/mailfolder-get.md
@@ -1,7 +1,7 @@
--- title: "Get mailFolder" description: "Retrieve the properties and relationships of a message folder object."
-author: "svpsiva"
+author: "abheek-das"
localization_priority: Normal ms.prod: "outlook" doc_type: apiPageType
@@ -120,7 +120,8 @@ Content-type: application/json
"childFolderCount": 2, "unreadItemCount": 59, "totalItemCount": 60,
- "wellKnownName": "inbox"
+ "wellKnownName": "inbox",
+ "isHidden": false
} ```
@@ -185,6 +186,7 @@ Content-type: application/json
"unreadItemCount": 6, "totalItemCount": 6, "wellKnownName": null,
+ "isHidden": false,
"isSupported": true, "includeNestedFolders": true, "sourceFolderIds": [
v1.0 https://docs.microsoft.com/en-us/graph/api/permission-revokegrants https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/permission-revokegrants.md
@@ -90,6 +90,18 @@ Content-length: 95
[!INCLUDE [sample-code](../includes/snippets/javascript/permission-revokegrants-javascript-snippets.md)] [!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/permission-revokegrants-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/permission-revokegrants-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/permission-revokegrants-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+ ---
v1.0 https://docs.microsoft.com/en-us/graph/api/printjob-update-configuration https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/printjob-update-configuration.md
@@ -49,6 +49,8 @@ The following example shows how to call this API.
### Request The following is an example of the request. +
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "printjob-update-configuration"
@@ -88,6 +90,16 @@ POST https://graph.microsoft.com/beta/print/printers/d5ef6ec4-07ca-4212-baf9-d45
"fitPdfToPage": false } ```
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/printjob-update-configuration-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/printjob-update-configuration-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
+ ### Response The following is an example of the response.
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationjob-provision-on-demand https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationjob-provision-on-demand.md
@@ -82,6 +82,18 @@ Content-length: 122
[!INCLUDE [sample-code](../includes/snippets/javascript/synchronizationjob-provisionondemand-javascript-snippets.md)] [!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/synchronizationjob-provisionondemand-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/synchronizationjob-provisionondemand-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/synchronizationjob-provisionondemand-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+ ---
v1.0 https://docs.microsoft.com/en-us/graph/api/team-get-members https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/team-get-members.md
@@ -100,15 +100,16 @@ Content-type: application/json
Content-length: 201 {
-"@odata.context": "https://graph.microsoft.com/beta/$metadata#teams('ece6f0a1-7ca4-498b-be79-edf6c8fc4d82')/members/microsoft.graph.aadUserConversationMember/$entity",
-"@odata.type": "#microsoft.graph.aadUserConversationMember",
-"id": "/ZWUwZjVhZTItOGJjNi00YWU1LTg0NjYtN2RhZWViYmZhMDYyIyM3Mzc2MWYwNi0yYWM5LTQ2OWMtOWYxMC0yNzlhOGNjMjY3Zjk=",
-"roles": ["owner"],
-"displayName": "John Doe",
-"userId": "8b081ef6-4792-4def-b2c9-c363a1bf41d5",
-"email": null
+ "@odata.context":"https://graph.microsoft.com/beta/$metadata#teams('ece6f0a1-7ca4-498b-be79-edf6c8fc4d82')/members/microsoft.graph.aadUserConversationMember/$entity",
+ "@odata.type":"#microsoft.graph.aadUserConversationMember",
+ "id":"/ZWUwZjVhZTItOGJjNi00YWU1LTg0NjYtN2RhZWViYmZhMDYyIyM3Mzc2MWYwNi0yYWM5LTQ2OWMtOWYxMC0yNzlhOGNjMjY3Zjk=",
+ "roles":[
+ "owner"
+ ],
+ "displayName":"John Doe",
+ "userId":"8b081ef6-4792-4def-b2c9-c363a1bf41d5",
+ "email":null
}- ``` <!-- uuid: 8fcb5dbc-d5aa-4681-8e31-b001d5168d79 2015-10-25 14:57:30 UTC -->
v1.0 https://docs.microsoft.com/en-us/graph/api/team-sendactivitynotification https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/team-sendactivitynotification.md
@@ -108,6 +108,18 @@ Content-Type: application/json
[!INCLUDE [sample-code](../includes/snippets/javascript/team-sendactivitynotification-javascript-snippets.md)] [!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/team-sendactivitynotification-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/team-sendactivitynotification-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/team-sendactivitynotification-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+ ---
v1.0 https://docs.microsoft.com/en-us/graph/api/user-list-mailfolders https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/user-list-mailfolders.md
@@ -3,7 +3,7 @@ title: "List mailFolders"
description: "Get all the mail folders in the signed-in user's mailbox." localization_priority: Normal doc_type: apiPageType
-author: "svpsiva"
+author: "abheek-das"
ms.prod: "outlook" ---
@@ -13,7 +13,9 @@ Namespace: microsoft.graph
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
-Get all the mail folders in the signed-in user's mailbox, including any [mail search folders](../resources/mailsearchfolder.md).
+Get all the mail folders in the specified user's mailbox, including any [mail search folders](../resources/mailsearchfolder.md).
+
+By default, this operation does not return hidden folders. Use a query parameter _includeHiddenFolders_ to include them in the response.
## Permissions One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
@@ -25,18 +27,31 @@ One of the following permissions is required to call this API. To learn more, in
|Application | Mail.ReadBasic.All, Mail.Read, Mail.ReadWrite | ## HTTP request+
+To get all the mail folders in the specified user's mailbox, excluding those that are hidden:
<!-- { "blockType": "ignored" } --> ```http GET /me/mailFolders GET /users/{id | userPrincipalName}/mailFolders ```
-## Optional query parameters
-This method supports the [OData Query Parameters](/graph/query-parameters) to help customize the response.
+
+To include _hidden_ mail folders in the response:
+<!-- { "blockType": "ignored" } -->
+```http
+GET /me/mailFolders/?includeHiddenFolders=true
+GET /users/{id | userPrincipalName}/mailFolders/?includeHiddenFolders=true
+```
+
+## Query parameters
+To return a list of all mailFolders including those that are hidden (their **isHidden** property is true), in the request URL, specify the
+`includeHiddenFolders` query parameter as `true`, as shown in the [HTTP request](#http-request) section.
+
+This method also supports [OData query parameters](/graph/query-parameters) to help customize the response.
+ ## Request headers | Header | Value | |:---------------|:--------| | Authorization | Bearer {token}. Required. |
-| Content-Type | application/json |
## Request body Do not supply a request body for this method.
@@ -44,8 +59,13 @@ Do not supply a request body for this method.
## Response If successful, this method returns a `200 OK` response code and collection of [mailFolder](../resources/mailfolder.md) objects in the response body.
-## Example
-##### Request
+## Examples
+
+### Example 1: List mail folders in the signed-in user's mailbox
+
+This example includes a **mailSearchFolder** object in the response. The mail search folder is a child folder under the Inbox with the display name "Weekly digests".
+
+#### Request
Here is an example of the request. # [HTTP](#tab/http)
@@ -74,8 +94,10 @@ GET https://graph.microsoft.com/beta/me/mailFolders
---
-##### Response
-Here is an example of the response which includes a **mailSearchFolder** that is a child folder under the Inbox. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.
+#### Response
+Here is an example of the response.
+
+>**Note:** The response object shown here might be shortened for readability.
<!-- { "blockType": "response", "truncated": true,
@@ -96,7 +118,8 @@ Content-type: application/json
"childFolderCount": 0, "unreadItemCount": 0, "totalItemCount": 0,
- "wellKnownName": "archive"
+ "wellKnownName": "archive",
+ "isHidden": false
}, { "id": "AQMkADYAAAIBFQAAAA==",
@@ -105,7 +128,8 @@ Content-type: application/json
"childFolderCount": 1, "unreadItemCount": 0, "totalItemCount": 0,
- "wellKnownName": "conversationhistory"
+ "wellKnownName": "conversationhistory",
+ "isHidden": false
}, { "id": "AQMkADYAAAIBCgAAAA==",
@@ -114,7 +138,8 @@ Content-type: application/json
"childFolderCount": 0, "unreadItemCount": 0, "totalItemCount": 0,
- "wellKnownName": "deleteditems"
+ "wellKnownName": "deleteditems",
+ "isHidden": false
}, { "id": "AQMkADYAAAIBDwAAAA==",
@@ -123,7 +148,8 @@ Content-type: application/json
"childFolderCount": 0, "unreadItemCount": 0, "totalItemCount": 0,
- "wellKnownName": "drafts"
+ "wellKnownName": "drafts",
+ "isHidden": false
}, { "id": "AQMkADYAAAIBDAAAAA==",
@@ -132,7 +158,8 @@ Content-type: application/json
"childFolderCount": 1, "unreadItemCount": 70, "totalItemCount": 71,
- "wellKnownName": "inbox"
+ "wellKnownName": "inbox",
+ "isHidden": false
}, { "@odata.type": "#microsoft.graph.mailSearchFolder",
@@ -143,6 +170,7 @@ Content-type: application/json
"unreadItemCount": 4, "totalItemCount": 5, "wellKnownName": null,
+ "isHidden": false,
"isSupported": true, "filterQuery": "contains(subject, 'weekly digest')" },
@@ -153,7 +181,8 @@ Content-type: application/json
"childFolderCount": 0, "unreadItemCount": 0, "totalItemCount": 0,
- "wellKnownName": "junkemail"
+ "wellKnownName": "junkemail",
+ "isHidden": false
}, { "id": "AQMkADYAAAIBCwAAAA==",
@@ -162,7 +191,8 @@ Content-type: application/json
"childFolderCount": 0, "unreadItemCount": 0, "totalItemCount": 0,
- "wellKnownName": "outbox"
+ "wellKnownName": "outbox",
+ "isHidden": false
}, { "id": "AQMkADYAAAIBCQAAAA==",
@@ -171,7 +201,65 @@ Content-type: application/json
"childFolderCount": 0, "unreadItemCount": 0, "totalItemCount": 0,
- "wellKnownName": "sentitems"
+ "wellKnownName": "sentitems",
+ "isHidden": false
+ }
+ ]
+}
+```
++
+### Example 2: Include hidden folders in the signed-in user's mailbox
+
+The next example uses the `includeHiddenFolders` query parameter to get a list of mail folders including hidden mail folders. The response includes the "Clutters" folder that has the **isHidden** set to true.
+
+#### Request
+
+<!-- {
+ "blockType": "request",
+ "name": "get_hiddenmailfolders"
+}-->
+```http
+GET https://graph.microsoft.com/beta/me/mailFolders/?includeHiddenFolders=true
+```
+
+#### Response
+Here is an example of the response.
+
+>**Note:** The response object shown here is shortened for readability, and doesn't include all the default folders in a user mailbox.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.mailFolder",
+ "isCollection": true
+} -->
+```http
+HTTP/1.1 200 OK
+Content-type: application/json
+Content-length: 232
+
+{
+ "@odata.context": "https://graph.microsoft.com/beta/$metadata#users('68ca8ec0-11f8-456b-a785-70d9936650d5')/mailFolders",
+ "value": [
+ {
+ "id": "AAMkADg3NTY5MDg4LWMzYmQtNDQzNi05OTgwLWAAA=",
+ "displayName": "Clutters",
+ "parentFolderId": "AAMkADg3NTY5MDg4LWMzYmQtEIAAA=",
+ "childFolderCount": 0,
+ "unreadItemCount": 0,
+ "totalItemCount": 0,
+ "wellKnownName": null,
+ "isHidden": true
+ },
+ {
+ "id": "AAMkADg3NTY5MDg4LWMzYmQtNDQzNi05OTgwLWAAA=",
+ "displayName": "Conversation History",
+ "parentFolderId": "AAMkADg3NTY5MDg4LWMzYmQtEIAAA=",
+ "childFolderCount": 1,
+ "unreadItemCount": 0,
+ "totalItemCount": 0,
+ "wellKnownName": "conversationhistory",
+ "isHidden": false
} ] }
v1.0 https://docs.microsoft.com/en-us/graph/api/user-post-mailfolders https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/user-post-mailfolders.md
@@ -2,7 +2,7 @@
title: "Create MailFolder" description: "Use this API to create a new mail folder in the root folder of the user's mailbox." localization_priority: Normal
-author: "svpsiva"
+author: "abheek-das"
ms.prod: "outlook" doc_type: apiPageType ---
@@ -14,6 +14,9 @@ Namespace: microsoft.graph
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)] Use this API to create a new mail folder in the root folder of the user's mailbox.+
+If you intend a new folder to be hidden, you must set the **isHidden** property to `true` on creation.
+ ## Permissions One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
@@ -36,19 +39,20 @@ POST /users/{id | userPrincipalName}/mailFolders
| Content-Type | application/json | ## Request body
-In the request body, provide a JSON object with the following parameters. **displayName** is the only writable property for a
-[MailFolder](../resources/mailfolder.md) object.
+In the request body, provide a JSON object with the following parameters. **displayName** and **isHidden** are the only writable property for a
+[mailFolder](../resources/mailfolder.md) object.
| Parameter | Type |Description| |:---------------|:--------|:----------| |displayName|String|The display name of the new folder.|
+|isHidden|Boolean|Indicates whether the new folder is hidden. The default value is `false`. Setting the property is optional. Once set, you cannot update this property. See more information in [Hidden mail folders](../resources/mailfolder.md#hidden-mail-folders)|
## Response
-If successful, this method returns `201 Created` response code and a [MailFolder](../resources/mailfolder.md) object in the response body.
+If successful, this method returns `201 Created` response code and a [mailFolder](../resources/mailfolder.md) object in the response body.
## Example
-##### Request
+### Request
Here is an example of the request. # [HTTP](#tab/http)
@@ -62,7 +66,8 @@ Content-type: application/json
Content-length: 159 {
- "displayName": "Clutter"
+ "displayName": "Clutter",
+ "isHidden": true
} ``` # [C#](#tab/csharp)
@@ -84,8 +89,10 @@ Content-length: 159
---
-##### Response
-Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.
+### Response
+Here is an example of the response.
+
+>**Note:** The response object shown here might be shortened for readability.
<!-- { "blockType": "response", "truncated": true,
@@ -97,12 +104,14 @@ Content-type: application/json
Content-length: 179 {
+ "id": "hN2Y5OGRhNGYwODEALgAAA0DAKbvJvFhJgcT3lZpkhNQBAA1",
"displayName": "Clutter", "parentFolderId": "AQMkADlmOGQwZmU3LWVjOWMtNDhiYgAtODcxNy1", "childFolderCount": 99, "unreadItemCount": 99, "totalItemCount": 99,
- "id": "hN2Y5OGRhNGYwODEALgAAA0DAKbvJvFhJgcT3lZpkhNQBAA1"
+ "wellKnownName": null,
+ "isHidden": true
} ```
v1.0 https://docs.microsoft.com/en-us/graph/api/userteamwork-sendactivitynotification https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/userteamwork-sendactivitynotification.md
@@ -160,6 +160,18 @@ Content-Type: application/json
[!INCLUDE [sample-code](../includes/snippets/javascript/team-sendactivitynotification-javascript-snippets.md)] [!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/team-sendactivitynotification-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/team-sendactivitynotification-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/team-sendactivitynotification-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+ ---
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/add-teamsapp-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/add-teamsapp-csharp-snippets.md deleted file mode 100644
@@ -1,21 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var teamsAppInstallation = new TeamsAppInstallation
-{
- AdditionalData = new Dictionary<string, object>()
- {
- {"teamsApp@odata.bind", "https://graph.microsoft.com/beta/appCatalogs/teamsApps/12345678-9abc-def0-123456789a"}
- }
-};
-
-await graphClient.Teams["87654321-0abc-zqf0-321456789q"].InstalledApps
- .Request()
- .AddAsync(teamsAppInstallation);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/call-redirect-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/call-redirect-csharp-snippets.md
@@ -12,10 +12,9 @@ var targets = new List<InvitationParticipantInfo>()
{ Identity = new IdentitySet {
- Application = new Identity
+ AdditionalData = new Dictionary<string, object>()
{
- DisplayName = "test bot 2",
- Id = "22bfd41f-550e-477d-8789-f6f7bd2a5e8b"
+ {"phone", "{\"@odata.type\":\"#microsoft.graph.identity\",\"id\":\"+12345678901\"}"}
} } }
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-accesspackageassignmentpolicy-from-accesspackageassignmentpolicies-questions-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-accesspackageassignmentpolicy-from-accesspackageassignmentpolicies-questions-csharp-snippets.md new file mode 100644
@@ -0,0 +1,147 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var accessPackageAssignmentPolicy = new AccessPackageAssignmentPolicy
+{
+ AccessPackageId = "b2eba9a1-b357-42ee-83a8-336522ed6cbf",
+ DisplayName = "Users from connected organizations can request",
+ Description = "Allow users from configured connected organizations to request and be approved by their sponsors",
+ CanExtend = false,
+ DurationInDays = 365,
+ ExpirationDateTime = null,
+ RequestorSettings = new RequestorSettings
+ {
+ ScopeType = "AllExistingConnectedOrganizationSubjects",
+ AcceptRequests = true
+ },
+ RequestApprovalSettings = new ApprovalSettings
+ {
+ IsApprovalRequired = true,
+ IsApprovalRequiredForExtension = false,
+ IsRequestorJustificationRequired = true,
+ ApprovalMode = "SingleStage",
+ ApprovalStages = new List<ApprovalStage>()
+ {
+ new ApprovalStage
+ {
+ ApprovalStageTimeOutInDays = 14,
+ IsApproverJustificationRequired = true,
+ IsEscalationEnabled = true,
+ EscalationTimeInMinutes = 11520,
+ PrimaryApprovers = new List<UserSet>()
+ {
+ new GroupMembers
+ {
+ IsBackup = true,
+ Id = "d2dcb9a1-a445-42ee-83a8-476522ed6cbf",
+ Description = "group for users from connected organizations which have no external sponsor"
+ },
+ new ExternalSponsors
+ {
+ IsBackup = false
+ }
+ }
+ }
+ }
+ },
+ AccessReviewSettings = new AssignmentReviewSettings
+ {
+ IsEnabled = false
+ },
+ Questions = new List<AccessPackageQuestion>()
+ {
+ new AccessPackageMultipleChoiceQuestion
+ {
+ IsRequired = false,
+ Text = new AccessPackageLocalizedContent
+ {
+ DefaultText = "what state are you from?",
+ LocalizedTexts = new List<AccessPackageLocalizedText>()
+ {
+ new AccessPackageLocalizedText
+ {
+ Text = "¿De qué estado eres?",
+ LanguageCode = "es"
+ }
+ }
+ },
+ Choices = new List<AccessPackageAnswerChoice>()
+ {
+ new AccessPackageAnswerChoice
+ {
+ ActualValue = "AZ",
+ DisplayValue = new AccessPackageLocalizedContent
+ {
+ LocalizedTexts = new List<AccessPackageLocalizedText>()
+ {
+ new AccessPackageLocalizedText
+ {
+ Text = "Arizona",
+ LanguageCode = "es"
+ }
+ }
+ }
+ },
+ new AccessPackageAnswerChoice
+ {
+ ActualValue = "CA",
+ DisplayValue = new AccessPackageLocalizedContent
+ {
+ LocalizedTexts = new List<AccessPackageLocalizedText>()
+ {
+ new AccessPackageLocalizedText
+ {
+ Text = "California",
+ LanguageCode = "es"
+ }
+ }
+ }
+ },
+ new AccessPackageAnswerChoice
+ {
+ ActualValue = "OH",
+ DisplayValue = new AccessPackageLocalizedContent
+ {
+ LocalizedTexts = new List<AccessPackageLocalizedText>()
+ {
+ new AccessPackageLocalizedText
+ {
+ Text = "Ohio",
+ LanguageCode = "es"
+ }
+ }
+ }
+ }
+ },
+ AllowsMultipleSelection = false
+ },
+ new AccessPackageTextInputQuestion
+ {
+ IsRequired = false,
+ Text = new AccessPackageLocalizedContent
+ {
+ DefaultText = "Who is your manager?",
+ LocalizedTexts = new List<AccessPackageLocalizedText>()
+ {
+ new AccessPackageLocalizedText
+ {
+ Text = "por qué necesita acceso a este paquete",
+ LanguageCode = "es"
+ }
+ }
+ },
+ IsSingleLineQuestion = false
+ }
+ }
+};
+
+await graphClient.IdentityGovernance.EntitlementManagement.AccessPackageAssignmentPolicies
+ .Request()
+ .AddAsync(accessPackageAssignmentPolicy);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-accesspackageassignmentrequest-from-accesspackageassignmentrequests-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-accesspackageassignmentrequest-from-accesspackageassignmentrequests-csharp-snippets.md
@@ -8,12 +8,31 @@ GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var accessPackageAssignmentRequest = new AccessPackageAssignmentRequestObject {
- RequestType = "AdminAdd",
+ RequestType = "UserAdd",
AccessPackageAssignment = new AccessPackageAssignment { TargetId = "46184453-e63b-4f20-86c2-c557ed5d5df9", AssignmentPolicyId = "2264bf65-76ba-417b-a27d-54d291f0cbc8", AccessPackageId = "a914b616-e04e-476b-aa37-91038f0b165b"
+ },
+ Answers = new List<AccessPackageAnswer>()
+ {
+ new AccessPackageAnswerString
+ {
+ Value = "Arizona",
+ AnsweredQuestion = new AccessPackageQuestion
+ {
+ Id = "A714EC6F-4EE0-4614-BD81-37E0C5ECBBFF"
+ }
+ },
+ new AccessPackageAnswerString
+ {
+ Value = "Need access to marketing campaign material",
+ AnsweredQuestion = new AccessPackageQuestion
+ {
+ Id = "AA615EE9-D9D8-4C03-BE91-BEE37106DEDA"
+ }
+ }
} };
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-accessreviewscheduledefinition-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-accessreviewscheduledefinition-csharp-snippets.md new file mode 100644
@@ -0,0 +1,58 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var accessReviewScheduleDefinition = new AccessReviewScheduleDefinition
+{
+ DisplayName = "Test create",
+ DescriptionForAdmins = "New scheduled access review",
+ DescriptionForReviewers = "If you have any questions, contact jerry@contoso.com",
+ Scope = new AccessReviewScope
+ {
+ Query = "/groups/b7a059cb-038a-4802-8fc9-b9d1ed0c4444/transitiveMembers",
+ QueryType = "MicrosoftGraph"
+ },
+ Reviewers = new List<AccessReviewReviewerScope>()
+ {
+ new AccessReviewReviewerScope
+ {
+ Query = "/users/7eae4444-d425-48b2-adf2-3c777f6256f3",
+ QueryType = "MicrosoftGraph",
+ QueryRoot = "decisions"
+ }
+ },
+ Settings = new AccessReviewScheduleSettings
+ {
+ MailNotificationsEnabled = true,
+ ReminderNotificationsEnabled = true,
+ JustificationRequiredOnApproval = true,
+ DefaultDecisionEnabled = false,
+ DefaultDecision = "None",
+ InstanceDurationInDays = 1,
+ AutoApplyDecisionsEnabled = false,
+ RecommendationsEnabled = true,
+ Recurrence = new PatternedRecurrence
+ {
+ Pattern = new RecurrencePattern
+ {
+ Type = RecurrencePatternType.Weekly,
+ Interval = 1
+ },
+ Range = new RecurrenceRange
+ {
+ Type = RecurrenceRangeType.NoEnd,
+ StartDate = new Date(2020,9,8)
+ }
+ }
+ }
+};
+
+await graphClient.IdentityGovernance.AccessReviews.Definitions
+ .Request()
+ .AddAsync(accessReviewScheduleDefinition);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-application-from-connectorgroup-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-application-from-connectorgroup-csharp-snippets.md new file mode 100644
@@ -0,0 +1,13 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+await graphClient.Applications["{id}"].ConnectorGroup.Reference
+ .Request()
+ .PutAsync("{id}");
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-calendar-from-calendargroup-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-calendar-from-calendargroup-csharp-snippets.md new file mode 100644
@@ -0,0 +1,18 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var calendar = new Calendar
+{
+ Name = "Marketing calendar"
+};
+
+await graphClient.Me.CalendarGroups["AAMkADYAAAR9NR5AAA="].Calendars
+ .Request()
+ .AddAsync(calendar);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-channel-for-migration-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-channel-for-migration-csharp-snippets.md new file mode 100644
@@ -0,0 +1,25 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var channel = new Channel
+{
+ DisplayName = "Architecture Discussion",
+ Description = "This channel is where we debate all future architecture plans",
+ MembershipType = ChannelMembershipType.Standard,
+ CreatedDateTime = DateTimeOffset.Parse("2020-03-14T11:22:17.067Z"),
+ AdditionalData = new Dictionary<string, object>()
+ {
+ {"@microsoft.graph.channelCreationMode", "migration"}
+ }
+};
+
+await graphClient.Teams["57fb72d0-d811-46f4-8947-305e6072eaa5"].Channels
+ .Request()
+ .AddAsync(channel);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-channel-from-group-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-channel-from-group-csharp-snippets.md
@@ -13,7 +13,7 @@ var channel = new Channel
MembershipType = ChannelMembershipType.Standard };
-await graphClient.Teams["{id}"].Channels
+await graphClient.Teams["57fb72d0-d811-46f4-8947-305e6072eaa5"].Channels
.Request() .AddAsync(channel);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-channel-with-moderation-settings-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-channel-with-moderation-settings-csharp-snippets.md new file mode 100644
@@ -0,0 +1,27 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var channel = new Channel
+{
+ DisplayName = "TestChannelModeration",
+ Description = "Test channel moderation.",
+ MembershipType = ChannelMembershipType.Standard,
+ ModerationSettings = new ChannelModerationSettings
+ {
+ UserNewMessageRestriction = UserNewMessageRestriction.EveryoneExceptGuests,
+ ReplyRestriction = ReplyRestriction.Everyone,
+ AllowNewMessageFromBots = true,
+ AllowNewMessageFromConnectors = true
+ }
+};
+
+await graphClient.Teams["57fb72d0-d811-46f4-8947-305e6072eaa5"].Channels
+ .Request()
+ .AddAsync(channel);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-chat-group-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-chat-group-csharp-snippets.md new file mode 100644
@@ -0,0 +1,55 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var chat = new Chat
+{
+ ChatType = ChatType.Group,
+ Topic = "Group chat title",
+ Members = (IChatMembersCollectionPage)new List<ConversationMember>()
+ {
+ new AadUserConversationMember
+ {
+ Roles = new List<String>()
+ {
+ "owner"
+ },
+ AdditionalData = new Dictionary<string, object>()
+ {
+ {"user@odata.bind", "https://graph.microsoft.com/beta/users('8c0a1a67-50ce-4114-bb6c-da9c5dbcf6ca')"}
+ }
+ },
+ new AadUserConversationMember
+ {
+ Roles = new List<String>()
+ {
+ "owner"
+ },
+ AdditionalData = new Dictionary<string, object>()
+ {
+ {"user@odata.bind", "https://graph.microsoft.com/beta/users('82fe7758-5bb3-4f0d-a43f-e555fd399c6f')"}
+ }
+ },
+ new AadUserConversationMember
+ {
+ Roles = new List<String>()
+ {
+ "owner"
+ },
+ AdditionalData = new Dictionary<string, object>()
+ {
+ {"user@odata.bind", "https://graph.microsoft.com/beta/users('3626a173-f2bc-4883-bcf7-01514c3bfb82')"}
+ }
+ }
+ }
+};
+
+await graphClient.Chats
+ .Request()
+ .AddAsync(chat);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-chat-oneonone-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-chat-oneonone-csharp-snippets.md new file mode 100644
@@ -0,0 +1,43 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var chat = new Chat
+{
+ ChatType = ChatType.OneOnOne,
+ Members = (IChatMembersCollectionPage)new List<ConversationMember>()
+ {
+ new AadUserConversationMember
+ {
+ Roles = new List<String>()
+ {
+ "owner"
+ },
+ AdditionalData = new Dictionary<string, object>()
+ {
+ {"user@odata.bind", "https://graph.microsoft.com/beta/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')"}
+ }
+ },
+ new AadUserConversationMember
+ {
+ Roles = new List<String>()
+ {
+ "owner"
+ },
+ AdditionalData = new Dictionary<string, object>()
+ {
+ {"user@odata.bind", "https://graph.microsoft.com/beta/users('82af01c5-f7cc-4a2e-a728-3a5df21afd9d')"}
+ }
+ }
+ }
+};
+
+await graphClient.Chats
+ .Request()
+ .AddAsync(chat);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-chatmessage-from-chat-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-chatmessage-from-chat-csharp-snippets.md
@@ -14,7 +14,7 @@ var chatMessage = new ChatMessage
} };
-await graphClient.Teams["{id}"].Channels["{id}"].Messages
+await graphClient.Chats["{id}"].Messages
.Request() .AddAsync(chatMessage);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-connectorgroup-from-connector-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-connectorgroup-from-connector-csharp-snippets.md new file mode 100644
@@ -0,0 +1,21 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var connectorGroup = new ConnectorGroup
+{
+ AdditionalData = new Dictionary<string, object>()
+ {
+ {"@odata.id", "https://graph.microsoft.com/beta/onPremisesPublishingProfiles/applicationProxy/connectorGroups/{id}"}
+ }
+};
+
+await graphClient.OnPremisesPublishingProfiles["applicationProxy"].Connectors["{id}"].MemberOf.References
+ .Request()
+ .AddAsync(connectorGroup);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-conversation-from-group-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-conversation-from-group-csharp-snippets.md deleted file mode 100644
@@ -1,46 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var conversation = new Conversation
-{
- Topic = "New head count",
- Threads = (IConversationThreadsCollectionPage)new List<ConversationThread>()
- {
- new ConversationThread
- {
- Posts = (IConversationThreadPostsCollectionPage)new List<Post>()
- {
- new Post
- {
- Body = new ItemBody
- {
- ContentType = BodyType.Html,
- Content = "The confirmation will come by the end of the week."
- },
- NewParticipants = new List<Recipient>()
- {
- new Recipient
- {
- EmailAddress = new EmailAddress
- {
- Name = "Adele Vance",
- Address = "AdeleV@contoso.onmicrosoft.com"
- }
- }
- }
- }
- }
- }
- }
-};
-
-await graphClient.Groups["29981b6a-0e57-42dc-94c9-cd24f5306196"].Conversations
- .Request()
- .AddAsync(conversation);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-conversation-member-with-no-visiblehistorystartdatetime-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-conversation-member-with-no-visiblehistorystartdatetime-csharp-snippets.md new file mode 100644
@@ -0,0 +1,21 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var conversationMember = new AadUserConversationMember
+{
+ AdditionalData = new Dictionary<string, object>()
+ {
+ {"user@odata.bind", "https://graph.microsoft.com/beta/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5"}
+ }
+};
+
+await graphClient.Chats["19:cf66807577b149cca1b7af0c32eec122@thread.v2"].Members
+ .Request()
+ .AddAsync(conversationMember);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-event-recurring-daily-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-event-recurring-daily-csharp-snippets.md deleted file mode 100644
@@ -1,64 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var @event = new Event
-{
- Subject = "Let's go for lunch",
- Body = new ItemBody
- {
- ContentType = BodyType.Html,
- Content = "Does noon work for you?"
- },
- Start = new DateTimeTimeZone
- {
- DateTime = "2020-02-25T12:00:00",
- TimeZone = "Pacific Standard Time"
- },
- End = new DateTimeTimeZone
- {
- DateTime = "2020-02-25T14:00:00",
- TimeZone = "Pacific Standard Time"
- },
- Location = new Location
- {
- DisplayName = "Harry's Bar"
- },
- Attendees = new List<Attendee>()
- {
- new Attendee
- {
- EmailAddress = new EmailAddress
- {
- Address = "AlexW@contoso.OnMicrosoft.com",
- Name = "Alex Wilbur"
- },
- Type = AttendeeType.Required
- }
- },
- Recurrence = new PatternedRecurrence
- {
- Pattern = new RecurrencePattern
- {
- Type = RecurrencePatternType.Daily,
- Interval = 1
- },
- Range = new RecurrenceRange
- {
- Type = RecurrenceRangeType.Numbered,
- StartDate = new Date(2020,2,25),
- NumberOfOccurrences = 2
- }
- }
-};
-
-await graphClient.Me.Events
- .Request()
- .Header("Prefer","outlook.timezone=\"Pacific Standard Time\"")
- .AddAsync(@event);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-item-attachment-from-event-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-item-attachment-from-event-csharp-snippets.md deleted file mode 100644
@@ -1,37 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var attachment = new ItemAttachment
-{
- Name = "Holiday event",
- Item = new Event
- {
- Subject = "Discuss gifts for children",
- Body = new ItemBody
- {
- ContentType = BodyType.Html,
- Content = "Let's look for funding!"
- },
- Start = new DateTimeTimeZone
- {
- DateTime = "2016-12-02T18:00:00",
- TimeZone = "Pacific Standard Time"
- },
- End = new DateTimeTimeZone
- {
- DateTime = "2016-12-02T19:00:00",
- TimeZone = "Pacific Standard Time"
- }
- }
-};
-
-await graphClient.Me.Events["{AAMkAGI1AAAt9AHjAAA=}"].Attachments
- .Request()
- .AddAsync(attachment);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-item-attachment-from-message-beta-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-item-attachment-from-message-beta-csharp-snippets.md deleted file mode 100644
@@ -1,37 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var attachment = new ItemAttachment
-{
- Name = "Holiday event",
- Item = new Event
- {
- Subject = "Discuss gifts for children",
- Body = new ItemBody
- {
- ContentType = BodyType.Html,
- Content = "Let's look for funding!"
- },
- Start = new DateTimeTimeZone
- {
- DateTime = "2016-12-02T18:00:00",
- TimeZone = "Pacific Standard Time"
- },
- End = new DateTimeTimeZone
- {
- DateTime = "2016-12-02T19:00:00",
- TimeZone = "Pacific Standard Time"
- }
- }
-};
-
-await graphClient.Me.Messages["AAMkpsDRVK"].Attachments
- .Request()
- .AddAsync(attachment);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-item-attachment-with-post-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-item-attachment-with-post-csharp-snippets.md deleted file mode 100644
@@ -1,49 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var post = new Post
-{
- Body = new ItemBody
- {
- ContentType = BodyType.Text,
- Content = "I attached an event."
- },
- Attachments = (IPostAttachmentsCollectionPage)new List<Attachment>()
- {
- new ItemAttachment
- {
- Name = "Holiday event",
- Item = new Event
- {
- Subject = "Discuss gifts for children",
- Body = new ItemBody
- {
- ContentType = BodyType.Html,
- Content = "Let's look for funding!"
- },
- Start = new DateTimeTimeZone
- {
- DateTime = "2019-12-02T18:00:00",
- TimeZone = "Pacific Standard Time"
- },
- End = new DateTimeTimeZone
- {
- DateTime = "2019-12-02T19:00:00",
- TimeZone = "Pacific Standard Time"
- }
- }
- }
- }
-};
-
-await graphClient.Groups["1848753d-185d-4c08-a4e4-6ee40521d115"].Threads["AAQkADJUdfolA=="]
- .Reply(post)
- .Request()
- .PostAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-prepopulated-group-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-prepopulated-group-csharp-snippets.md deleted file mode 100644
@@ -1,31 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var group = new Group
-{
- Description = "Group with designated owner and members",
- DisplayName = "Operations group",
- GroupTypes = new List<String>()
- {
- "Unified"
- },
- MailEnabled = true,
- MailNickname = "operations2019",
- SecurityEnabled = false,
- AdditionalData = new Dictionary<string, object>()
- {
- {"owners@odata.bind", "[\"https://graph.microsoft.com/beta/users/26be1845-4119-4801-a799-aea79d09f1a2\"]"},
- {"members@odata.bind", "[\"https://graph.microsoft.com/beta/users/ff7cb387-6688-423c-8188-3da9532a73cc\",\"https://graph.microsoft.com/beta/users/69456242-0067-49d3-ba96-9de6f2728e14\"]"}
- }
-};
-
-await graphClient.Groups
- .Request()
- .AddAsync(group);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-private-channel-with-member-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-private-channel-with-member-csharp-snippets.md new file mode 100644
@@ -0,0 +1,34 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var channel = new Channel
+{
+ MembershipType = ChannelMembershipType.Private,
+ DisplayName = "My First Private Channel",
+ Description = "This is my first private channels",
+ Members = (IChannelMembersCollectionPage)new List<ConversationMember>()
+ {
+ new AadUserConversationMember
+ {
+ Roles = new List<String>()
+ {
+ "owner"
+ },
+ AdditionalData = new Dictionary<string, object>()
+ {
+ {"user@odata.bind", "https://graph.microsoft.com/beta/users('62855810-484b-4823-9e01-60667f8b12ae')"}
+ }
+ }
+ }
+};
+
+await graphClient.Teams["57fb72d0-d811-46f4-8947-305e6072eaa5"].Channels
+ .Request()
+ .AddAsync(channel);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/delete-alloweduser-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/delete-alloweduser-csharp-snippets.md deleted file mode 100644
@@ -1,13 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-await graphClient.Print.Printers["{id}"].AllowedUsers["{id}"].Reference
- .Request()
- .DeleteAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/delete-conversation-member-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/delete-conversation-member-csharp-snippets.md deleted file mode 100644
@@ -1,13 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-await graphClient.Teams["{id}"].Channels["{id}"].Members["{id}"]
- .Request()
- .DeleteAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/delete-members-from-chat-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/delete-members-from-chat-csharp-snippets.md new file mode 100644
@@ -0,0 +1,13 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+await graphClient.Chats["19:cf66807577b149cca1b7af0c32eec122@thread.v2"].Members["MCMjMjQzMmI1N2ItMGFiZC00M2RiLWFhN2ItMTZlYWRkMTE1ZDM0IyMxOTpiZDlkYTQ2MzIzYWY0MjUzOTZkMGZhNjcyMDAyODk4NEB0aHJlYWQudjIjIzQ4YmY5ZDUyLWRjYTctNGE1Zi04Mzk4LTM3Yjk1Y2M3YmQ4Mw=="]
+ .Request()
+ .DeleteAsync();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/event-delta-events-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/event-delta-events-csharp-snippets.md deleted file mode 100644
@@ -1,19 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var queryOptions = new List<QueryOption>()
-{
- new QueryOption("startDateTime", "2020-06-12T00:00:00Z")
-};
-
-var delta = await graphClient.Me.Calendar.Events
- .Delta()
- .Request( queryOptions )
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-chat-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-chat-csharp-snippets.md new file mode 100644
@@ -0,0 +1,13 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var chat = await graphClient.Users["8b081ef6-4792-4def-b2c9-c363a1bf41d5"].Chats["19:8b081ef6-4792-4def-b2c9-c363a1bf41d5_877192bd-9183-47d3-a74c-8aa0426716cf@unq.gbl.spaces"]
+ .Request()
+ .GetAsync();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-chat-message-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-chat-message-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var chat = await graphClient.Users["{id}"].Chats["{id}"]
+var chatMessage = await graphClient.Me.Chats["{id}"].Messages["{id}"]
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-conversation-member-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-conversation-member-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var conversationMember = await graphClient.Chats["{id}"].Members["{id}"]
+var conversationMember = await graphClient.Chats["19:cf66807577b149cca1b7af0c32eec122@thread.v2"].Members["141c574c-dd90-4131-b173-baf4bb0e894e"]
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-count-only-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-count-only-csharp-snippets.md deleted file mode 100644
@@ -1,14 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var int32 = await graphClient.Users.$count
- .Request()
- .Header("ConsistencyLevel","eventual")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-count-user-only-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-count-user-only-csharp-snippets.md deleted file mode 100644
@@ -1,14 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var int32 = await graphClient.Groups["{id}"].Members.$count
- .Request()
- .Header("ConsistencyLevel","eventual")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-event-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-event-csharp-snippets.md
@@ -9,7 +9,7 @@ GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var @event = await graphClient.Me.Events["AAMkAGIAAAoZDOFAAA="] .Request() .Header("Prefer","outlook.timezone=\"Pacific Standard Time\"")
- .Select("subject,body,bodyPreview,organizer,attendees,start,end,location")
+ .Select("subject,body,bodyPreview,organizer,attendees,start,end,location,hideAttendees")
.GetAsync(); ```\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-group-transitivemembers-count-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-group-transitivemembers-count-csharp-snippets.md deleted file mode 100644
@@ -1,14 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var int32 = await graphClient.Groups["{id}"].TransitiveMembers.$count
- .Request()
- .Header("ConsistencyLevel","eventual")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-groups-withlicenseerrors-count-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-groups-withlicenseerrors-count-csharp-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var groups = await graphClient.Groups
- .Request()
- .Header("ConsistencyLevel","eventual")
- .Filter("hasMembersWithLicenseErrors+eq+true,")
- .Select("id,displayName")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-phone-count-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-phone-count-csharp-snippets.md deleted file mode 100644
@@ -1,15 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var contacts = await graphClient.Contacts
- .Request()
- .Header("ConsistencyLevel","eventual")
- .Search("displayName:wa")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-pr-count-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-pr-count-csharp-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var user = await graphClient.Groups["{id}"].Members
- .Request()
- .Header("ConsistencyLevel","eventual")
- .Search("displayName:Pr")
- .Select("displayName,id")
- .OrderBy("displayName ")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-printjob-withtasks-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-printjob-withtasks-csharp-snippets.md deleted file mode 100644
@@ -1,14 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var printJob = await graphClient.Print.Printers["c05f3726-0d4b-4aa1-8fe9-2eb981bb26fb"].Jobs["5182"]
- .Request()
- .Expand("tasks")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-signin-last-time-range-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-signin-last-time-range-csharp-snippets.md deleted file mode 100644
@@ -1,19 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var queryOptions = new List<QueryOption>()
-{
- new QueryOption("filter", "signInActivity/lastSignInDateTime le 2019-06-01T00:00:00Z")
-};
-
-var users = await graphClient.Users
- .Request( queryOptions )
- .Filter("signInActivity/lastSignInDateTime le 2019-06-01T00:00:00Z")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-team-count-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-team-count-csharp-snippets.md deleted file mode 100644
@@ -1,15 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var servicePrincipals = await graphClient.ServicePrincipals
- .Request()
- .Header("ConsistencyLevel","eventual")
- .Search("displayName:Team")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-tier-count-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-tier-count-csharp-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var group = await graphClient.Users["{id}"].TransitiveMemberOf
- .Request()
- .Header("ConsistencyLevel","eventual")
- .Search("displayName:tier")
- .Select("displayName,id")
- .OrderBy("displayName ")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-unifiedroledefinition-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-unifiedroledefinition-csharp-snippets.md deleted file mode 100644
@@ -1,13 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var unifiedRoleDefinition = await graphClient.RoleManagement.Directory.RoleDefinitions["f189965f-f560-4c59-9101-933d4c87a91a"]
- .Request()
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-user-memberof-count-only-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-user-memberof-count-only-csharp-snippets.md deleted file mode 100644
@@ -1,14 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var int32 = await graphClient.Users["{id}"].MemberOf.$count
- .Request()
- .Header("ConsistencyLevel","eventual")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-video-count-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-video-count-csharp-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var group = await graphClient.Groups["{id}"].MemberOf
- .Request()
- .Header("ConsistencyLevel","eventual")
- .Search("displayName:Video")
- .OrderBy("displayName ")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-wa-count-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-wa-count-csharp-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var users = await graphClient.Users
- .Request()
- .Header("ConsistencyLevel","eventual")
- .Search("displayName:wa")
- .OrderBy("displayName ")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-web-count-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-web-count-csharp-snippets.md deleted file mode 100644
@@ -1,15 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var applications = await graphClient.Applications
- .Request()
- .Header("ConsistencyLevel","eventual")
- .Search("displayName:Web")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/identityuserflowattributeassignment-setorder-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/identityuserflowattributeassignment-setorder-csharp-snippets.md new file mode 100644
@@ -0,0 +1,23 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var newAssignmentOrder = new AssignmentOrder
+{
+ Order = new List<String>()
+ {
+ "City",
+ "extension_GUID_ShoeSize"
+ }
+};
+
+await graphClient.Identity.B2cUserFlows["{id}"].UserAttributeAssignments
+ .SetOrder(newAssignmentOrder)
+ .Request()
+ .PostAsync();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/list-chats-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/list-chats-csharp-snippets.md new file mode 100644
@@ -0,0 +1,13 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var chats = await graphClient.Users["8b081ef6-4792-4def-b2c9-c363a1bf41d5"].Chats
+ .Request()
+ .GetAsync();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/list-chats-expand-members-and-filter-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/list-chats-expand-members-and-filter-csharp-snippets.md new file mode 100644
@@ -0,0 +1,15 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var chats = await graphClient.Users["8b081ef6-4792-4def-b2c9-c363a1bf41d5"].Chats
+ .Request()
+ .Filter("members/any(o: o/displayname eq 'Peter Parker')")
+ .Expand("members")
+ .GetAsync();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/list-chats-expand-members-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/list-chats-expand-members-csharp-snippets.md new file mode 100644
@@ -0,0 +1,14 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var chats = await graphClient.Users["8b081ef6-4792-4def-b2c9-c363a1bf41d5"].Chats
+ .Request()
+ .Expand("members")
+ .GetAsync();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/list-conversation-members-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/list-conversation-members-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var members = await graphClient.Me.Chats["{id}"].Members
+var members = await graphClient.Me.Chats["19:8b081ef6-4792-4def-b2c9-c363a1bf41d5_5031bb31-22c0-4f6f-9f73-91d34ab2b32d@unq.gbl.spaces"].Members
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/list-installed-apps-in-chat-expand-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/list-installed-apps-in-chat-expand-csharp-snippets.md deleted file mode 100644
@@ -1,13 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var installedApps = await graphClient.Chats["19:d65713bc498c4a428c71ef9353e6ce20@thread.v2"].InstalledApps
- .Request()
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/list-installed-teams-apps-expand-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/list-installed-teams-apps-expand-csharp-snippets.md deleted file mode 100644
@@ -1,14 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var installedApps = await graphClient.Teams["6903fa93-605b-43ef-920e-77c4729f8258"].InstalledApps
- .Request()
- .Expand("teamsAppDefinition")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/list-teamsapp-with-filter-expand-appdefinitions-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/list-teamsapp-with-filter-expand-appdefinitions-csharp-snippets.md new file mode 100644
@@ -0,0 +1,15 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var teamsApps = await graphClient.AppCatalogs.TeamsApps
+ .Request()
+ .Filter("id eq '876df28f-2e78-423b-94a5-44181bd0e225',")
+ .Expand("appDefinitions")
+ .GetAsync();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/participant-invite-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/participant-invite-csharp-snippets.md
@@ -10,16 +10,11 @@ var participants = new List<InvitationParticipantInfo>()
{ new InvitationParticipantInfo {
- ReplacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db",
Identity = new IdentitySet {
- User = new Identity
+ AdditionalData = new Dictionary<string, object>()
{
- Id = "278405a3-f568-4b3e-b684-009193463064",
- AdditionalData = new Dictionary<string, object>()
- {
- {"identityProvider", "AAD"}
- }
+ {"phone", "{\"@odata.type\":\"#microsoft.graph.identity\",\"id\":\"+12345678901\"}"}
} } }
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/patch-channel-with-moderationsettings-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/patch-channel-with-moderationsettings-csharp-snippets.md new file mode 100644
@@ -0,0 +1,26 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var channel = new Channel
+{
+ DisplayName = "UpdateChannelModeration",
+ Description = "Update channel moderation.",
+ ModerationSettings = new ChannelModerationSettings
+ {
+ UserNewMessageRestriction = UserNewMessageRestriction.Moderators,
+ ReplyRestriction = ReplyRestriction.Everyone,
+ AllowNewMessageFromBots = true,
+ AllowNewMessageFromConnectors = true
+ }
+};
+
+await graphClient.Teams["{team-id}"].Channels["{channel-id}"]
+ .Request()
+ .UpdateAsync(channel);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/permission-revokegrants-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/permission-revokegrants-csharp-snippets.md new file mode 100644
@@ -0,0 +1,22 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var grantees = new List<DriveRecipient>()
+{
+ new DriveRecipient
+ {
+ Email = "ryan@contoso.com"
+ }
+};
+
+await graphClient.Me.Drive.Items["{item-id}"].Permissions["{perm-id}"]
+ .RevokeGrants(grantees)
+ .Request()
+ .PostAsync();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/synchronizationjob-provisionondemand-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/synchronizationjob-provisionondemand-csharp-snippets.md new file mode 100644
@@ -0,0 +1,30 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var parameters = new List<SynchronizationJobApplicationParameters>()
+{
+ new SynchronizationJobApplicationParameters
+ {
+ Subjects = new List<SynchronizationJobSubject>()
+ {
+ new SynchronizationJobSubject
+ {
+ ObjectId = "9bb0f679-a883-4a6f-8260-35b491b8b8c8",
+ ObjectTypeName = "User"
+ }
+ },
+ RuleId = "ea807875-5618-4f0a-9125-0b46a05298ca"
+ }
+};
+
+await graphClient.ServicePrincipals["{servicePrincipalsId}"].Synchronization.Jobs["{synchronizationJobId}"]
+ .ProvisionOnDemand(parameters)
+ .Request()
+ .PostAsync();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/team-sendactivitynotification-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/team-sendactivitynotification-csharp-snippets.md new file mode 100644
@@ -0,0 +1,37 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var topic = new TeamworkActivityTopic
+{
+ Source = TeamworkActivityTopicSource.Text,
+ Value = "Deployment Approvals Channel",
+ WebUrl = "https://teams.microsoft.com/l/message/19:448cfd2ac2a7490a9084a9ed14cttr78c@thread.skype/1605223780000?tenantId=c8b1bf45-3834-4ecf-971a-b4c755ee677d&groupId=d4c2a937-f097-435a-bc91-5c1683ca7245&parentMessageId=1605223771864&teamName=Approvals&channelName=Azure%20DevOps&createdTime=1605223780000"
+};
+
+var activityType = "deploymentApprovalRequired";
+
+var previewText = new ItemBody
+{
+ Content = "New deployment requires your approval"
+};
+
+var templateParameters = new List<KeyValuePair>()
+{
+ new KeyValuePair
+ {
+ Name = "deploymentId",
+ Value = "6788662"
+ }
+};
+
+await graphClient.Users["{userId}"].Teamwork
+ .SendActivityNotification(topic,activityType,null,previewText,templateParameters)
+ .Request()
+ .PostAsync();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/uninstall-teamsapp-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/uninstall-teamsapp-csharp-snippets.md deleted file mode 100644
@@ -1,13 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-await graphClient.Teams["{id}"].InstalledApps["{id}"]
- .Request()
- .DeleteAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-accesspackageassignmentpolicy-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/update-accesspackageassignmentpolicy-csharp-snippets.md new file mode 100644
@@ -0,0 +1,136 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var accessPackageAssignmentPolicy = new AccessPackageAssignmentPolicy
+{
+ Id = "b2eba9a1-b357-42ee-83a8-336522ed6cbf",
+ AccessPackageId = "4c02f928-7752-49aa-8fc8-e286d973a965",
+ DisplayName = "All Users",
+ Description = "All users can request for access to the directory.",
+ CanExtend = false,
+ DurationInDays = 365,
+ ExpirationDateTime = null,
+ RequestorSettings = new RequestorSettings
+ {
+ ScopeType = "AllExistingConnectedOrganizationSubjects",
+ AcceptRequests = true,
+ AllowedRequestors = new List<UserSet>()
+ {
+ }
+ },
+ RequestApprovalSettings = new ApprovalSettings
+ {
+ IsApprovalRequired = true,
+ IsApprovalRequiredForExtension = false,
+ IsRequestorJustificationRequired = true,
+ ApprovalMode = "SingleStage",
+ ApprovalStages = new List<ApprovalStage>()
+ {
+ new ApprovalStage
+ {
+ ApprovalStageTimeOutInDays = 14,
+ IsApproverJustificationRequired = true,
+ IsEscalationEnabled = true,
+ EscalationTimeInMinutes = 11520,
+ PrimaryApprovers = new List<UserSet>()
+ {
+ new GroupMembers
+ {
+ IsBackup = true,
+ Id = "d2dcb9a1-a445-42ee-83a8-476522ed6cbf",
+ Description = "group for users from connected organizations which have no external sponsor"
+ },
+ new ExternalSponsors
+ {
+ IsBackup = false
+ }
+ }
+ }
+ }
+ },
+ AccessReviewSettings = new AssignmentReviewSettings
+ {
+ IsEnabled = false
+ },
+ Questions = new List<AccessPackageQuestion>()
+ {
+ new AccessPackageMultipleChoiceQuestion
+ {
+ IsRequired = false,
+ Text = new AccessPackageLocalizedContent
+ {
+ DefaultText = "what state are you from?",
+ LocalizedTexts = new List<AccessPackageLocalizedText>()
+ {
+ new AccessPackageLocalizedText
+ {
+ Text = "¿De qué estado eres?",
+ LanguageCode = "es"
+ }
+ }
+ },
+ Choices = new List<AccessPackageAnswerChoice>()
+ {
+ new AccessPackageAnswerChoice
+ {
+ ActualValue = "AZ",
+ DisplayValue = new AccessPackageLocalizedContent
+ {
+ LocalizedTexts = new List<AccessPackageLocalizedText>()
+ {
+ new AccessPackageLocalizedText
+ {
+ Text = "Arizona",
+ LanguageCode = "es"
+ }
+ }
+ }
+ },
+ new AccessPackageAnswerChoice
+ {
+ ActualValue = "CA",
+ DisplayValue = new AccessPackageLocalizedContent
+ {
+ LocalizedTexts = new List<AccessPackageLocalizedText>()
+ {
+ new AccessPackageLocalizedText
+ {
+ Text = "California",
+ LanguageCode = "es"
+ }
+ }
+ }
+ }
+ },
+ AllowsMultipleSelection = false
+ },
+ new AccessPackageTextInputQuestion
+ {
+ IsRequired = false,
+ Text = new AccessPackageLocalizedContent
+ {
+ DefaultText = "Who is your manager?",
+ LocalizedTexts = new List<AccessPackageLocalizedText>()
+ {
+ new AccessPackageLocalizedText
+ {
+ Text = "por qué necesita acceso a este paquete",
+ LanguageCode = "es"
+ }
+ }
+ },
+ IsSingleLineQuestion = false
+ }
+ }
+};
+
+await graphClient.IdentityGovernance.EntitlementManagement.AccessPackageAssignmentPolicies["b2eba9a1-b357-42ee-83a8-336522ed6cbf"]
+ .Request()
+ .PutAsync(accessPackageAssignmentPolicy);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-chat-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/update-chat-csharp-snippets.md new file mode 100644
@@ -0,0 +1,18 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var chat = new Chat
+{
+ Topic = "Group chat title update"
+};
+
+await graphClient.Chats["19:1c5b01696d2e4a179c292bc9cf04e63b@thread.v2"]
+ .Request()
+ .UpdateAsync(chat);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-event-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/update-event-csharp-snippets.md
@@ -21,6 +21,7 @@ var @event = new Event
IsOnlineMeeting = true, OnlineMeetingProvider = OnlineMeetingProviderType.TeamsForBusiness, IsReminderOn = true,
+ HideAttendees = false,
Categories = new List<String>() { "Red category"
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/upgrade-teamsapp-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/upgrade-teamsapp-csharp-snippets.md deleted file mode 100644
@@ -1,14 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-await graphClient.Teams["{id}"].InstalledApps["{id}"]
- .Upgrade()
- .Request()
- .PostAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/user-list-teamsapps-details-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/user-list-teamsapps-details-csharp-snippets.md deleted file mode 100644
@@ -1,14 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var installedApps = await graphClient.Users["{id}"].Teamwork.InstalledApps
- .Request()
- .Expand("teamsAppDefinition")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/add-teamsapp-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/add-teamsapp-java-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-TeamsAppInstallation teamsAppInstallation = new TeamsAppInstallation();
-teamsAppInstallation.additionalDataManager().put("teamsApp@odata.bind", new JsonPrimitive("https://graph.microsoft.com/beta/appCatalogs/teamsApps/12345678-9abc-def0-123456789a"));
-
-graphClient.teams("87654321-0abc-zqf0-321456789q").installedApps()
- .buildRequest()
- .post(teamsAppInstallation);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-accesspackageassignmentpolicy-from-accesspackageassignmentpolicies-questions-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-accesspackageassignmentpolicy-from-accesspackageassignmentpolicies-questions-java-snippets.md new file mode 100644
@@ -0,0 +1,115 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+AccessPackageAssignmentPolicy accessPackageAssignmentPolicy = new AccessPackageAssignmentPolicy();
+accessPackageAssignmentPolicy.accessPackageId = "b2eba9a1-b357-42ee-83a8-336522ed6cbf";
+accessPackageAssignmentPolicy.displayName = "Users from connected organizations can request";
+accessPackageAssignmentPolicy.description = "Allow users from configured connected organizations to request and be approved by their sponsors";
+accessPackageAssignmentPolicy.canExtend = false;
+accessPackageAssignmentPolicy.durationInDays = 365;
+accessPackageAssignmentPolicy.expirationDateTime = CalendarSerializer.deserialize("null");
+RequestorSettings requestorSettings = new RequestorSettings();
+requestorSettings.scopeType = "AllExistingConnectedOrganizationSubjects";
+requestorSettings.acceptRequests = true;
+accessPackageAssignmentPolicy.requestorSettings = requestorSettings;
+ApprovalSettings requestApprovalSettings = new ApprovalSettings();
+requestApprovalSettings.isApprovalRequired = true;
+requestApprovalSettings.isApprovalRequiredForExtension = false;
+requestApprovalSettings.isRequestorJustificationRequired = true;
+requestApprovalSettings.approvalMode = "SingleStage";
+LinkedList<ApprovalStage> approvalStagesList = new LinkedList<ApprovalStage>();
+ApprovalStage approvalStages = new ApprovalStage();
+approvalStages.approvalStageTimeOutInDays = 14;
+approvalStages.isApproverJustificationRequired = true;
+approvalStages.isEscalationEnabled = true;
+approvalStages.escalationTimeInMinutes = 11520;
+LinkedList<UserSet> primaryApproversList = new LinkedList<UserSet>();
+GroupMembers primaryApprovers = new GroupMembers();
+primaryApprovers.isBackup = true;
+primaryApprovers.id = "d2dcb9a1-a445-42ee-83a8-476522ed6cbf";
+primaryApprovers.description = "group for users from connected organizations which have no external sponsor";
+primaryApproversList.add(primaryApprovers);
+ExternalSponsors primaryApprovers1 = new ExternalSponsors();
+primaryApprovers1.isBackup = false;
+primaryApproversList.add(primaryApprovers1);
+approvalStages.primaryApprovers = primaryApproversList;
+approvalStagesList.add(approvalStages);
+requestApprovalSettings.approvalStages = approvalStagesList;
+accessPackageAssignmentPolicy.requestApprovalSettings = requestApprovalSettings;
+AssignmentReviewSettings accessReviewSettings = new AssignmentReviewSettings();
+accessReviewSettings.isEnabled = false;
+accessPackageAssignmentPolicy.accessReviewSettings = accessReviewSettings;
+LinkedList<AccessPackageQuestion> questionsList = new LinkedList<AccessPackageQuestion>();
+AccessPackageMultipleChoiceQuestion questions = new AccessPackageMultipleChoiceQuestion();
+questions.isRequired = false;
+AccessPackageLocalizedContent text = new AccessPackageLocalizedContent();
+text.defaultText = "what state are you from?";
+LinkedList<AccessPackageLocalizedText> localizedTextsList = new LinkedList<AccessPackageLocalizedText>();
+AccessPackageLocalizedText localizedTexts = new AccessPackageLocalizedText();
+localizedTexts.text = "¿De qué estado eres?";
+localizedTexts.languageCode = "es";
+localizedTextsList.add(localizedTexts);
+text.localizedTexts = localizedTextsList;
+questions.text = text1;
+LinkedList<AccessPackageAnswerChoice> choicesList = new LinkedList<AccessPackageAnswerChoice>();
+AccessPackageAnswerChoice choices = new AccessPackageAnswerChoice();
+choices.actualValue = "AZ";
+AccessPackageLocalizedContent displayValue = new AccessPackageLocalizedContent();
+LinkedList<AccessPackageLocalizedText> localizedTextsList1 = new LinkedList<AccessPackageLocalizedText>();
+AccessPackageLocalizedText localizedTexts1 = new AccessPackageLocalizedText();
+localizedTexts1.text = "Arizona";
+localizedTexts1.languageCode = "es";
+localizedTextsList1.add(localizedTexts1);
+displayValue.localizedTexts = localizedTextsList1;
+choices.displayValue = displayValue;
+choicesList.add(choices);
+AccessPackageAnswerChoice choices1 = new AccessPackageAnswerChoice();
+choices1.actualValue = "CA";
+AccessPackageLocalizedContent displayValue1 = new AccessPackageLocalizedContent();
+LinkedList<AccessPackageLocalizedText> localizedTextsList2 = new LinkedList<AccessPackageLocalizedText>();
+AccessPackageLocalizedText localizedTexts2 = new AccessPackageLocalizedText();
+localizedTexts2.text = "California";
+localizedTexts2.languageCode = "es";
+localizedTextsList2.add(localizedTexts2);
+displayValue1.localizedTexts = localizedTextsList2;
+choices1.displayValue = displayValue1;
+choicesList.add(choices1);
+AccessPackageAnswerChoice choices2 = new AccessPackageAnswerChoice();
+choices2.actualValue = "OH";
+AccessPackageLocalizedContent displayValue2 = new AccessPackageLocalizedContent();
+LinkedList<AccessPackageLocalizedText> localizedTextsList3 = new LinkedList<AccessPackageLocalizedText>();
+AccessPackageLocalizedText localizedTexts3 = new AccessPackageLocalizedText();
+localizedTexts3.text = "Ohio";
+localizedTexts3.languageCode = "es";
+localizedTextsList3.add(localizedTexts3);
+displayValue2.localizedTexts = localizedTextsList3;
+choices2.displayValue = displayValue2;
+choicesList.add(choices2);
+questions.choices = choicesList;
+questions.allowsMultipleSelection = false;
+questionsList.add(questions);
+AccessPackageTextInputQuestion questions1 = new AccessPackageTextInputQuestion();
+questions1.isRequired = false;
+AccessPackageLocalizedContent text5 = new AccessPackageLocalizedContent();
+text5.defaultText = "Who is your manager?";
+LinkedList<AccessPackageLocalizedText> localizedTextsList4 = new LinkedList<AccessPackageLocalizedText>();
+AccessPackageLocalizedText localizedTexts4 = new AccessPackageLocalizedText();
+localizedTexts4.text = "por qué necesita acceso a este paquete";
+localizedTexts4.languageCode = "es";
+localizedTextsList4.add(localizedTexts4);
+text5.localizedTexts = localizedTextsList4;
+questions1.text = text6;
+questions1.isSingleLineQuestion = false;
+questionsList.add(questions1);
+accessPackageAssignmentPolicy.questions = questionsList;
+
+graphClient.identityGovernance().entitlementManagement().accessPackageAssignmentPolicies()
+ .buildRequest()
+ .post(accessPackageAssignmentPolicy);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-accesspackageassignmentrequest-from-accesspackageassignmentrequests-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-accesspackageassignmentrequest-from-accesspackageassignmentrequests-java-snippets.md
@@ -7,12 +7,26 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient(); AccessPackageAssignmentRequest accessPackageAssignmentRequest = new AccessPackageAssignmentRequest();
-accessPackageAssignmentRequest.requestType = "AdminAdd";
+accessPackageAssignmentRequest.requestType = "UserAdd";
AccessPackageAssignment accessPackageAssignment = new AccessPackageAssignment(); accessPackageAssignment.targetId = "46184453-e63b-4f20-86c2-c557ed5d5df9"; accessPackageAssignment.assignmentPolicyId = "2264bf65-76ba-417b-a27d-54d291f0cbc8"; accessPackageAssignment.accessPackageId = "a914b616-e04e-476b-aa37-91038f0b165b"; accessPackageAssignmentRequest.accessPackageAssignment = accessPackageAssignment;
+LinkedList<AccessPackageAnswer> answersList = new LinkedList<AccessPackageAnswer>();
+AccessPackageAnswerString answers = new AccessPackageAnswerString();
+answers.value = "Arizona";
+AccessPackageQuestion answeredQuestion = new AccessPackageQuestion();
+answeredQuestion.id = "A714EC6F-4EE0-4614-BD81-37E0C5ECBBFF";
+answers.answeredQuestion = answeredQuestion;
+answersList.add(answers);
+AccessPackageAnswerString answers1 = new AccessPackageAnswerString();
+answers1.value = "Need access to marketing campaign material";
+AccessPackageQuestion answeredQuestion1 = new AccessPackageQuestion();
+answeredQuestion1.id = "AA615EE9-D9D8-4C03-BE91-BEE37106DEDA";
+answers1.answeredQuestion = answeredQuestion1;
+answersList.add(answers1);
+accessPackageAssignmentRequest.answers = answersList;
graphClient.identityGovernance().entitlementManagement().accessPackageAssignmentRequests() .buildRequest()
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-accessreviewscheduledefinition-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-accessreviewscheduledefinition-java-snippets.md new file mode 100644
@@ -0,0 +1,49 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+AccessReviewScheduleDefinition accessReviewScheduleDefinition = new AccessReviewScheduleDefinition();
+accessReviewScheduleDefinition.displayName = "Test create";
+accessReviewScheduleDefinition.descriptionForAdmins = "New scheduled access review";
+accessReviewScheduleDefinition.descriptionForReviewers = "If you have any questions, contact jerry@contoso.com";
+AccessReviewScope scope = new AccessReviewScope();
+scope.query = "/groups/b7a059cb-038a-4802-8fc9-b9d1ed0c4444/transitiveMembers";
+scope.queryType = "MicrosoftGraph";
+accessReviewScheduleDefinition.scope = scope;
+LinkedList<AccessReviewReviewerScope> reviewersList = new LinkedList<AccessReviewReviewerScope>();
+AccessReviewReviewerScope reviewers = new AccessReviewReviewerScope();
+reviewers.query = "/users/7eae4444-d425-48b2-adf2-3c777f6256f3";
+reviewers.queryType = "MicrosoftGraph";
+reviewers.queryRoot = "decisions";
+reviewersList.add(reviewers);
+accessReviewScheduleDefinition.reviewers = reviewersList;
+AccessReviewScheduleSettings settings = new AccessReviewScheduleSettings();
+settings.mailNotificationsEnabled = true;
+settings.reminderNotificationsEnabled = true;
+settings.justificationRequiredOnApproval = true;
+settings.defaultDecisionEnabled = false;
+settings.defaultDecision = "None";
+settings.instanceDurationInDays = 1;
+settings.autoApplyDecisionsEnabled = false;
+settings.recommendationsEnabled = true;
+PatternedRecurrence recurrence = new PatternedRecurrence();
+RecurrencePattern pattern = new RecurrencePattern();
+pattern.type = RecurrencePatternType.WEEKLY;
+pattern.interval = 1;
+recurrence.pattern = pattern;
+RecurrenceRange range = new RecurrenceRange();
+range.type = RecurrenceRangeType.NO_END;
+range.startDate = new DateOnly(1900,1,1);
+recurrence.range = range;
+settings.recurrence = recurrence;
+accessReviewScheduleDefinition.settings = settings;
+
+graphClient.identityGovernance().accessReviews().definitions()
+ .buildRequest()
+ .post(accessReviewScheduleDefinition);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-application-from-connectorgroup-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-application-from-connectorgroup-java-snippets.md new file mode 100644
@@ -0,0 +1,16 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+ConnectorGroup connectorGroup = new ConnectorGroup();
+connectorGroup.additionalDataManager().put("@odata.id", new JsonPrimitive("https://graph.microsoft.com/onPremisesPublishingProfiles/applicationproxy/connectorGroups/{id}"));
+
+graphClient.applications("{id}").connectorGroup().reference()
+ .buildRequest()
+ .put(connectorGroup);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-calendar-from-calendargroup-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-calendar-from-calendargroup-java-snippets.md new file mode 100644
@@ -0,0 +1,16 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+Calendar calendar = new Calendar();
+calendar.name = "Marketing calendar";
+
+graphClient.me().calendarGroups("AAMkADYAAAR9NR5AAA=").calendars()
+ .buildRequest()
+ .post(calendar);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-channel-for-migration-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-channel-for-migration-java-snippets.md new file mode 100644
@@ -0,0 +1,20 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+Channel channel = new Channel();
+channel.additionalDataManager().put("@microsoft.graph.channelCreationMode", new JsonPrimitive("migration"));
+channel.displayName = "Architecture Discussion";
+channel.description = "This channel is where we debate all future architecture plans";
+channel.membershipType = ChannelMembershipType.STANDARD;
+channel.createdDateTime = CalendarSerializer.deserialize("2020-03-14T11:22:17.067Z");
+
+graphClient.teams("57fb72d0-d811-46f4-8947-305e6072eaa5").channels()
+ .buildRequest()
+ .post(channel);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-channel-from-group-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-channel-from-group-java-snippets.md
@@ -11,7 +11,7 @@ channel.displayName = "Architecture Discussion";
channel.description = "This channel is where we debate all future architecture plans"; channel.membershipType = ChannelMembershipType.STANDARD;
-graphClient.teams("{id}").channels()
+graphClient.teams("57fb72d0-d811-46f4-8947-305e6072eaa5").channels()
.buildRequest() .post(channel);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-channel-with-moderation-settings-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-channel-with-moderation-settings-java-snippets.md new file mode 100644
@@ -0,0 +1,24 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+Channel channel = new Channel();
+channel.displayName = "TestChannelModeration";
+channel.description = "Test channel moderation.";
+channel.membershipType = ChannelMembershipType.STANDARD;
+ChannelModerationSettings moderationSettings = new ChannelModerationSettings();
+moderationSettings.userNewMessageRestriction = UserNewMessageRestriction.EVERYONE_EXCEPT_GUESTS;
+moderationSettings.replyRestriction = ReplyRestriction.EVERYONE;
+moderationSettings.allowNewMessageFromBots = true;
+moderationSettings.allowNewMessageFromConnectors = true;
+channel.moderationSettings = moderationSettings;
+
+graphClient.teams("57fb72d0-d811-46f4-8947-305e6072eaa5").channels()
+ .buildRequest()
+ .post(channel);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-chat-group-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-chat-group-java-snippets.md new file mode 100644
@@ -0,0 +1,40 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+Chat chat = new Chat();
+chat.chatType = ChatType.GROUP;
+chat.topic = "Group chat title";
+LinkedList<ConversationMember> membersList = new LinkedList<ConversationMember>();
+AadUserConversationMember members = new AadUserConversationMember();
+LinkedList<String> rolesList = new LinkedList<String>();
+rolesList.add("owner");
+members.roles = rolesList;
+members.additionalDataManager().put("user@odata.bind", new JsonPrimitive("https://graph.microsoft.com/beta/users('8c0a1a67-50ce-4114-bb6c-da9c5dbcf6ca')"));
+membersList.add(members);
+AadUserConversationMember members1 = new AadUserConversationMember();
+LinkedList<String> rolesList1 = new LinkedList<String>();
+rolesList1.add("owner");
+members1.roles = rolesList1;
+members1.additionalDataManager().put("user@odata.bind", new JsonPrimitive("https://graph.microsoft.com/beta/users('82fe7758-5bb3-4f0d-a43f-e555fd399c6f')"));
+membersList.add(members1);
+AadUserConversationMember members2 = new AadUserConversationMember();
+LinkedList<String> rolesList2 = new LinkedList<String>();
+rolesList2.add("owner");
+members2.roles = rolesList2;
+members2.additionalDataManager().put("user@odata.bind", new JsonPrimitive("https://graph.microsoft.com/beta/users('3626a173-f2bc-4883-bcf7-01514c3bfb82')"));
+membersList.add(members2);
+ConversationMemberCollectionResponse conversationMemberCollectionResponse = new ConversationMemberCollectionResponse();
+conversationMemberCollectionResponse.value = membersList;
+ConversationMemberCollectionPage conversationMemberCollectionPage = new ConversationMemberCollectionPage(conversationMemberCollectionResponse, null);
+chat.members = conversationMemberCollectionPage;
+
+graphClient.chats()
+ .buildRequest()
+ .post(chat);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-chat-oneonone-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-chat-oneonone-java-snippets.md new file mode 100644
@@ -0,0 +1,33 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+Chat chat = new Chat();
+chat.chatType = ChatType.ONE_ON_ONE;
+LinkedList<ConversationMember> membersList = new LinkedList<ConversationMember>();
+AadUserConversationMember members = new AadUserConversationMember();
+LinkedList<String> rolesList = new LinkedList<String>();
+rolesList.add("owner");
+members.roles = rolesList;
+members.additionalDataManager().put("user@odata.bind", new JsonPrimitive("https://graph.microsoft.com/beta/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')"));
+membersList.add(members);
+AadUserConversationMember members1 = new AadUserConversationMember();
+LinkedList<String> rolesList1 = new LinkedList<String>();
+rolesList1.add("owner");
+members1.roles = rolesList1;
+members1.additionalDataManager().put("user@odata.bind", new JsonPrimitive("https://graph.microsoft.com/beta/users('82af01c5-f7cc-4a2e-a728-3a5df21afd9d')"));
+membersList.add(members1);
+ConversationMemberCollectionResponse conversationMemberCollectionResponse = new ConversationMemberCollectionResponse();
+conversationMemberCollectionResponse.value = membersList;
+ConversationMemberCollectionPage conversationMemberCollectionPage = new ConversationMemberCollectionPage(conversationMemberCollectionResponse, null);
+chat.members = conversationMemberCollectionPage;
+
+graphClient.chats()
+ .buildRequest()
+ .post(chat);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-chatmessage-from-chat-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-chatmessage-from-chat-java-snippets.md
@@ -11,7 +11,7 @@ ItemBody body = new ItemBody();
body.content = "Hello world"; chatMessage.body = body;
-graphClient.teams("{id}").channels("{id}").messages()
+graphClient.chats("{id}").messages()
.buildRequest() .post(chatMessage);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-connectorgroup-from-connector-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-connectorgroup-from-connector-java-snippets.md new file mode 100644
@@ -0,0 +1,16 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+ConnectorGroup connectorGroup = new ConnectorGroup();
+connectorGroup.additionalDataManager().put("@odata.id", new JsonPrimitive("https://graph.microsoft.com/beta/onPremisesPublishingProfiles/applicationProxy/connectorGroups/{id}"));
+
+graphClient.onPremisesPublishingProfiles("applicationProxy").connectors("{id}").memberOf().references()
+ .buildRequest()
+ .post(connectorGroup);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-conversation-member-with-all-visiblehistorystartdatetime-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-conversation-member-with-all-visiblehistorystartdatetime-java-snippets.md new file mode 100644
@@ -0,0 +1,17 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+AadUserConversationMember conversationMember = new AadUserConversationMember();
+conversationMember.additionalDataManager().put("user@odata.bind", new JsonPrimitive("https://graph.microsoft.com/beta/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5"));
+conversationMember.visibleHistoryStartDateTime = "0001-01-01T00:00:00Z";
+
+graphClient.chats("19:cf66807577b149cca1b7af0c32eec122@thread.v2").members()
+ .buildRequest()
+ .post(conversationMember);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-conversation-member-with-no-visiblehistorystartdatetime-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-conversation-member-with-no-visiblehistorystartdatetime-java-snippets.md new file mode 100644
@@ -0,0 +1,16 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+AadUserConversationMember conversationMember = new AadUserConversationMember();
+conversationMember.additionalDataManager().put("user@odata.bind", new JsonPrimitive("https://graph.microsoft.com/beta/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5"));
+
+graphClient.chats("19:cf66807577b149cca1b7af0c32eec122@thread.v2").members()
+ .buildRequest()
+ .post(conversationMember);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-conversation-member-with-specific-visiblehistorystartdatetime-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-conversation-member-with-specific-visiblehistorystartdatetime-java-snippets.md new file mode 100644
@@ -0,0 +1,17 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+AadUserConversationMember conversationMember = new AadUserConversationMember();
+conversationMember.additionalDataManager().put("user@odata.bind", new JsonPrimitive("https://graph.microsoft.com/beta/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5"));
+conversationMember.visibleHistoryStartDateTime = "2019-04-18T23:51:43.255Z";
+
+graphClient.chats("19:cf66807577b149cca1b7af0c32eec122@thread.v2").members()
+ .buildRequest()
+ .post(conversationMember);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-event-recurring-daily-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-event-recurring-daily-java-snippets.md deleted file mode 100644
@@ -1,54 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("Prefer", "outlook.timezone=\"Pacific Standard Time\""));
-
-Event event = new Event();
-event.subject = "Let's go for lunch";
-ItemBody body = new ItemBody();
-body.contentType = BodyType.HTML;
-body.content = "Does noon work for you?";
-event.body = body;
-DateTimeTimeZone start = new DateTimeTimeZone();
-start.dateTime = "2020-02-25T12:00:00";
-start.timeZone = "Pacific Standard Time";
-event.start = start;
-DateTimeTimeZone end = new DateTimeTimeZone();
-end.dateTime = "2020-02-25T14:00:00";
-end.timeZone = "Pacific Standard Time";
-event.end = end;
-Location location = new Location();
-location.displayName = "Harry's Bar";
-event.location = location;
-LinkedList<Attendee> attendeesList = new LinkedList<Attendee>();
-Attendee attendees = new Attendee();
-EmailAddress emailAddress = new EmailAddress();
-emailAddress.address = "AlexW@contoso.OnMicrosoft.com";
-emailAddress.name = "Alex Wilbur";
-attendees.emailAddress = emailAddress;
-attendees.type = AttendeeType.REQUIRED;
-attendeesList.add(attendees);
-event.attendees = attendeesList;
-PatternedRecurrence recurrence = new PatternedRecurrence();
-RecurrencePattern pattern = new RecurrencePattern();
-pattern.type = RecurrencePatternType.DAILY;
-pattern.interval = 1;
-recurrence.pattern = pattern;
-RecurrenceRange range = new RecurrenceRange();
-range.type = RecurrenceRangeType.NUMBERED;
-range.startDate = new DateOnly(1900,1,1);
-range.numberOfOccurrences = 2;
-recurrence.range = range;
-event.recurrence = recurrence;
-
-graphClient.me().events()
- .buildRequest( requestOptions )
- .post(event);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-item-attachment-from-event-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-item-attachment-from-event-java-snippets.md deleted file mode 100644
@@ -1,31 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-ItemAttachment attachment = new ItemAttachment();
-attachment.name = "Holiday event";
-Event item = new Event();
-item.subject = "Discuss gifts for children";
-ItemBody body = new ItemBody();
-body.contentType = BodyType.HTML;
-body.content = "Let's look for funding!";
-item.body = body;
-DateTimeTimeZone start = new DateTimeTimeZone();
-start.dateTime = "2016-12-02T18:00:00";
-start.timeZone = "Pacific Standard Time";
-item.start = start;
-DateTimeTimeZone end = new DateTimeTimeZone();
-end.dateTime = "2016-12-02T19:00:00";
-end.timeZone = "Pacific Standard Time";
-item.end = end;
-attachment.item = item;
-
-graphClient.me().events("{AAMkAGI1AAAt9AHjAAA=}").attachments()
- .buildRequest()
- .post(attachment);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-item-attachment-from-message-beta-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-item-attachment-from-message-beta-java-snippets.md deleted file mode 100644
@@ -1,31 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-ItemAttachment attachment = new ItemAttachment();
-attachment.name = "Holiday event";
-Event item = new Event();
-item.subject = "Discuss gifts for children";
-ItemBody body = new ItemBody();
-body.contentType = BodyType.HTML;
-body.content = "Let's look for funding!";
-item.body = body;
-DateTimeTimeZone start = new DateTimeTimeZone();
-start.dateTime = "2016-12-02T18:00:00";
-start.timeZone = "Pacific Standard Time";
-item.start = start;
-DateTimeTimeZone end = new DateTimeTimeZone();
-end.dateTime = "2016-12-02T19:00:00";
-end.timeZone = "Pacific Standard Time";
-item.end = end;
-attachment.item = item;
-
-graphClient.me().messages("AAMkpsDRVK").attachments()
- .buildRequest()
- .post(attachment);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-item-attachment-with-post-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-item-attachment-with-post-java-snippets.md deleted file mode 100644
@@ -1,43 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-Post post = new Post();
-ItemBody body = new ItemBody();
-body.contentType = BodyType.TEXT;
-body.content = "I attached an event.";
-post.body = body;
-LinkedList<Attachment> attachmentsList = new LinkedList<Attachment>();
-ItemAttachment attachments = new ItemAttachment();
-attachments.name = "Holiday event";
-Event item = new Event();
-item.subject = "Discuss gifts for children";
-ItemBody body1 = new ItemBody();
-body1.contentType = BodyType.HTML;
-body1.content = "Let's look for funding!";
-item.body = body1;
-DateTimeTimeZone start = new DateTimeTimeZone();
-start.dateTime = "2019-12-02T18:00:00";
-start.timeZone = "Pacific Standard Time";
-item.start = start;
-DateTimeTimeZone end = new DateTimeTimeZone();
-end.dateTime = "2019-12-02T19:00:00";
-end.timeZone = "Pacific Standard Time";
-item.end = end;
-attachments.item = item;
-attachmentsList.add(attachments);
-AttachmentCollectionResponse attachmentCollectionResponse = new AttachmentCollectionResponse();
-attachmentCollectionResponse.value = attachmentsList;
-AttachmentCollectionPage attachmentCollectionPage = new AttachmentCollectionPage(attachmentCollectionResponse, null);
-post.attachments = attachmentCollectionPage;
-
-graphClient.groups("1848753d-185d-4c08-a4e4-6ee40521d115").threads("AAQkADJUdfolA==")
- .reply(post)
- .buildRequest()
- .post();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-private-channel-with-member-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-private-channel-with-member-java-snippets.md new file mode 100644
@@ -0,0 +1,29 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+Channel channel = new Channel();
+channel.membershipType = ChannelMembershipType.PRIVATE;
+channel.displayName = "My First Private Channel";
+channel.description = "This is my first private channels";
+LinkedList<ConversationMember> membersList = new LinkedList<ConversationMember>();
+AadUserConversationMember members = new AadUserConversationMember();
+members.additionalDataManager().put("user@odata.bind", new JsonPrimitive("https://graph.microsoft.com/beta/users('62855810-484b-4823-9e01-60667f8b12ae')"));
+LinkedList<String> rolesList = new LinkedList<String>();
+rolesList.add("owner");
+members.roles = rolesList;
+membersList.add(members);
+ConversationMemberCollectionResponse conversationMemberCollectionResponse = new ConversationMemberCollectionResponse();
+conversationMemberCollectionResponse.value = membersList;
+ConversationMemberCollectionPage conversationMemberCollectionPage = new ConversationMemberCollectionPage(conversationMemberCollectionResponse, null);
+channel.members = conversationMemberCollectionPage;
+
+graphClient.teams("57fb72d0-d811-46f4-8947-305e6072eaa5").channels()
+ .buildRequest()
+ .post(channel);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-trustframeworkkeyset-from-trustframework1-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-trustframeworkkeyset-from-trustframework1-java-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-TrustFrameworkKeySet trustFrameworkKeySet = new TrustFrameworkKeySet();
-trustFrameworkKeySet.id = "keyset1";
-
-graphClient.trustFramework().keySets()
- .buildRequest()
- .post(trustFrameworkKeySet);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/delete-members-from-chat-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/delete-members-from-chat-java-snippets.md new file mode 100644
@@ -0,0 +1,13 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+graphClient.chats("19:cf66807577b149cca1b7af0c32eec122@thread.v2").members("MCMjMjQzMmI1N2ItMGFiZC00M2RiLWFhN2ItMTZlYWRkMTE1ZDM0IyMxOTpiZDlkYTQ2MzIzYWY0MjUzOTZkMGZhNjcyMDAyODk4NEB0aHJlYWQudjIjIzQ4YmY5ZDUyLWRjYTctNGE1Zi04Mzk4LTM3Yjk1Y2M3YmQ4Mw==")
+ .buildRequest()
+ .delete();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/event-delta-events-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/event-delta-events-java-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new QueryOption("startDateTime", "2020-06-12T00:00:00Z"));
-
-IEventDeltaCollectionPage delta = graphClient.me().calendar().events()
- .delta()
- .buildRequest( requestOptions )
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-a-count-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-a-count-java-snippets.md deleted file mode 100644
@@ -1,19 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-
-IUserCollectionPage users = graphClient.users()
- .buildRequest( requestOptions )
- .filter("startswith(displayName,'a'),")
- .orderBy("displayName ")
- .top(1)
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-chat-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-chat-java-snippets.md new file mode 100644
@@ -0,0 +1,13 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+Chat chat = graphClient.users("8b081ef6-4792-4def-b2c9-c363a1bf41d5").chats("19:8b081ef6-4792-4def-b2c9-c363a1bf41d5_877192bd-9183-47d3-a74c-8aa0426716cf@unq.gbl.spaces")
+ .buildRequest()
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-chat-message-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-chat-message-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-Chat chat = graphClient.users("{id}").chats("{id}")
+ChatMessage chatMessage = graphClient.me().chats("{id}").messages("{id}")
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-conversation-member-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-conversation-member-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-ConversationMember conversationMember = graphClient.chats("{id}").members("{id}")
+ConversationMember conversationMember = graphClient.chats("19:cf66807577b149cca1b7af0c32eec122@thread.v2").members("141c574c-dd90-4131-b173-baf4bb0e894e")
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-count-group-only-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-count-group-only-java-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-
-int int32 = graphClient.servicePrincipals("{id}").memberOf().microsoft.graph.group().count()
- .buildRequest( requestOptions )
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-count-only-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-count-only-java-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-
-int int32 = graphClient.users().count()
- .buildRequest( requestOptions )
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-count-user-only-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-count-user-only-java-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-
-int int32 = graphClient.groups("{id}").members().microsoft.graph.user().count()
- .buildRequest( requestOptions )
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-event-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-event-java-snippets.md
@@ -11,7 +11,7 @@ requestOptions.add(new HeaderOption("Prefer", "outlook.timezone=\"Pacific Standa
Event event = graphClient.me().events("AAMkAGIAAAoZDOFAAA=") .buildRequest( requestOptions )
- .select("subject,body,bodyPreview,organizer,attendees,start,end,location")
+ .select("subject,body,bodyPreview,organizer,attendees,start,end,location,hideAttendees")
.get(); ```\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-group-transitivemembers-count-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-group-transitivemembers-count-java-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-
-int int32 = graphClient.groups("{id}").transitiveMembers().count()
- .buildRequest( requestOptions )
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-groups-withlicenseerrors-count-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-groups-withlicenseerrors-count-java-snippets.md deleted file mode 100644
@@ -1,18 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-
-IGroupCollectionPage groups = graphClient.groups()
- .buildRequest( requestOptions )
- .filter("hasMembersWithLicenseErrors+eq+true,")
- .select("id,displayName")
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-phone-count-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-phone-count-java-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-requestOptions.add(new QueryOption("$search", "displayName:wa"));
-
-IOrgContactCollectionPage contacts = graphClient.contacts()
- .buildRequest( requestOptions )
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-pr-count-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-pr-count-java-snippets.md deleted file mode 100644
@@ -1,19 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-requestOptions.add(new QueryOption("$search", "displayName:Pr"));
-
-IUserCollectionPage user = graphClient.groups("{id}").members().microsoft.graph.user()
- .buildRequest( requestOptions )
- .select("displayName,id")
- .orderBy("displayName ")
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-signin-last-time-range-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-signin-last-time-range-java-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new QueryOption("filter", "signInActivity/lastSignInDateTime le 2019-06-01T00:00:00Z"));
-
-IUserCollectionPage users = graphClient.users()
- .buildRequest( requestOptions )
- .filter("signInActivity/lastSignInDateTime le 2019-06-01T00:00:00Z")
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-team-count-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-team-count-java-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-requestOptions.add(new QueryOption("$search", "displayName:Team"));
-
-IServicePrincipalCollectionPage servicePrincipals = graphClient.servicePrincipals()
- .buildRequest( requestOptions )
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-tier-count-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-tier-count-java-snippets.md deleted file mode 100644
@@ -1,19 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-requestOptions.add(new QueryOption("$search", "displayName:tier"));
-
-IGroupCollectionPage group = graphClient.users("{id}").transitiveMemberOf().microsoft.graph.group()
- .buildRequest( requestOptions )
- .select("displayName,id")
- .orderBy("displayName ")
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-user-memberof-count-only-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-user-memberof-count-only-java-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-
-int int32 = graphClient.users("{id}").memberOf().count()
- .buildRequest( requestOptions )
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-wa-count-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-wa-count-java-snippets.md deleted file mode 100644
@@ -1,18 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-requestOptions.add(new QueryOption("$search", "displayName:wa"));
-
-IUserCollectionPage users = graphClient.users()
- .buildRequest( requestOptions )
- .orderBy("displayName ")
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-web-count-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-web-count-java-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-requestOptions.add(new QueryOption("$search", "displayName:Web"));
-
-IApplicationCollectionPage applications = graphClient.applications()
- .buildRequest( requestOptions )
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/identityuserflowattributeassignment-setorder-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/identityuserflowattributeassignment-setorder-java-snippets.md new file mode 100644
@@ -0,0 +1,20 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+AssignmentOrder newAssignmentOrder = new AssignmentOrder();
+LinkedList<String> orderList = new LinkedList<String>();
+orderList.add("City");
+orderList.add("extension_GUID_ShoeSize");
+newAssignmentOrder.order = orderList;
+
+graphClient.identity().b2cUserFlows("{id}").userAttributeAssignments()
+ .setOrder(newAssignmentOrder)
+ .buildRequest()
+ .post();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/list-chats-expand-members-and-filter-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/list-chats-expand-members-and-filter-java-snippets.md new file mode 100644
@@ -0,0 +1,15 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+IChatCollectionPage chats = graphClient.users("8b081ef6-4792-4def-b2c9-c363a1bf41d5").chats()
+ .buildRequest()
+ .filter("members/any(o: o/displayname eq 'Peter Parker')")
+ .expand("members")
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/list-chats-expand-members-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/list-chats-expand-members-java-snippets.md new file mode 100644
@@ -0,0 +1,14 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+IChatCollectionPage chats = graphClient.users("8b081ef6-4792-4def-b2c9-c363a1bf41d5").chats()
+ .buildRequest()
+ .expand("members")
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/list-chats-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/list-chats-java-snippets.md new file mode 100644
@@ -0,0 +1,13 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+IChatCollectionPage chats = graphClient.users("8b081ef6-4792-4def-b2c9-c363a1bf41d5").chats()
+ .buildRequest()
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/list-conversation-members-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/list-conversation-members-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IConversationMemberCollectionPage members = graphClient.me().chats("{id}").members()
+IConversationMemberCollectionPage members = graphClient.me().chats("19:8b081ef6-4792-4def-b2c9-c363a1bf41d5_5031bb31-22c0-4f6f-9f73-91d34ab2b32d@unq.gbl.spaces").members()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/list-installed-teams-apps-expand-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/list-installed-teams-apps-expand-java-snippets.md deleted file mode 100644
@@ -1,14 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-ITeamsAppInstallationCollectionPage installedApps = graphClient.teams("6903fa93-605b-43ef-920e-77c4729f8258").installedApps()
- .buildRequest()
- .expand("teamsAppDefinition")
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/list-teamsapp-with-filter-expand-appdefinitions-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/list-teamsapp-with-filter-expand-appdefinitions-java-snippets.md new file mode 100644
@@ -0,0 +1,15 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+ITeamsAppCollectionPage teamsApps = graphClient.appCatalogs().teamsApps()
+ .buildRequest()
+ .filter("id eq '876df28f-2e78-423b-94a5-44181bd0e225',")
+ .expand("appDefinitions")
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/patch-channel-with-moderationsettings-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/patch-channel-with-moderationsettings-java-snippets.md new file mode 100644
@@ -0,0 +1,23 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+Channel channel = new Channel();
+channel.displayName = "UpdateChannelModeration";
+channel.description = "Update channel moderation.";
+ChannelModerationSettings moderationSettings = new ChannelModerationSettings();
+moderationSettings.userNewMessageRestriction = UserNewMessageRestriction.MODERATORS;
+moderationSettings.replyRestriction = ReplyRestriction.EVERYONE;
+moderationSettings.allowNewMessageFromBots = true;
+moderationSettings.allowNewMessageFromConnectors = true;
+channel.moderationSettings = moderationSettings;
+
+graphClient.teams("{team-id}").channels("{channel-id}")
+ .buildRequest()
+ .patch(channel);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/permission-revokegrants-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/permission-revokegrants-java-snippets.md new file mode 100644
@@ -0,0 +1,20 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+LinkedList<DriveRecipient> granteesList = new LinkedList<DriveRecipient>();
+DriveRecipient grantees = new DriveRecipient();
+grantees.email = "ryan@contoso.com";
+
+granteesList.add(grantees);
+
+graphClient.me().drive().items("{item-id}").permissions("{perm-id}")
+ .revokeGrants(granteesList)
+ .buildRequest()
+ .post();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/synchronizationjob-provisionondemand-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/synchronizationjob-provisionondemand-java-snippets.md new file mode 100644
@@ -0,0 +1,26 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+LinkedList<SynchronizationJobApplicationParameters> parametersList = new LinkedList<SynchronizationJobApplicationParameters>();
+SynchronizationJobApplicationParameters parameters = new SynchronizationJobApplicationParameters();
+LinkedList<SynchronizationJobSubject> subjectsList = new LinkedList<SynchronizationJobSubject>();
+SynchronizationJobSubject subjects = new SynchronizationJobSubject();
+subjects.objectId = "9bb0f679-a883-4a6f-8260-35b491b8b8c8";
+subjects.objectTypeName = "User";
+subjectsList.add(subjects);
+parameters.subjects = subjectsList;
+parameters.ruleId = "ea807875-5618-4f0a-9125-0b46a05298ca";
+
+parametersList.add(parameters);
+
+graphClient.servicePrincipals("{servicePrincipalsId}").synchronization().jobs("{synchronizationJobId}")
+ .provisionOnDemand(parametersList)
+ .buildRequest()
+ .post();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/team-sendactivitynotification-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/team-sendactivitynotification-java-snippets.md new file mode 100644
@@ -0,0 +1,31 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+TeamworkActivityTopic topic = new TeamworkActivityTopic();
+topic.source = TeamworkActivityTopicSource.TEXT;
+topic.value = "Deployment Approvals Channel";
+topic.webUrl = "https://teams.microsoft.com/l/message/19:448cfd2ac2a7490a9084a9ed14cttr78c@thread.skype/1605223780000?tenantId=c8b1bf45-3834-4ecf-971a-b4c755ee677d&groupId=d4c2a937-f097-435a-bc91-5c1683ca7245&parentMessageId=1605223771864&teamName=Approvals&channelName=Azure%20DevOps&createdTime=1605223780000";
+
+String activityType = "deploymentApprovalRequired";
+
+ItemBody previewText = new ItemBody();
+previewText.content = "New deployment requires your approval";
+
+LinkedList<KeyValuePair> templateParametersList = new LinkedList<KeyValuePair>();
+KeyValuePair templateParameters = new KeyValuePair();
+templateParameters.name = "deploymentId";
+templateParameters.value = "6788662";
+
+templateParametersList.add(templateParameters);
+
+graphClient.users("{userId}").teamwork()
+ .sendActivityNotification(topic,activityType,null,previewText,templateParametersList)
+ .buildRequest()
+ .post();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/uninstall-teamsapp-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/uninstall-teamsapp-java-snippets.md deleted file mode 100644
@@ -1,13 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-graphClient.teams("{id}").installedApps("{id}")
- .buildRequest()
- .delete();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-accesspackageassignmentpolicy-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/update-accesspackageassignmentpolicy-java-snippets.md
@@ -8,27 +8,97 @@ IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
AccessPackageAssignmentPolicy accessPackageAssignmentPolicy = new AccessPackageAssignmentPolicy(); accessPackageAssignmentPolicy.id = "b2eba9a1-b357-42ee-83a8-336522ed6cbf";
-accessPackageAssignmentPolicy.accessPackageId = "1b153a13-76da-4d07-9afa-c6c2b1f2e824";
+accessPackageAssignmentPolicy.accessPackageId = "4c02f928-7752-49aa-8fc8-e286d973a965";
accessPackageAssignmentPolicy.displayName = "All Users"; accessPackageAssignmentPolicy.description = "All users can request for access to the directory.";
-accessPackageAssignmentPolicy.isDenyPolicy = false;
accessPackageAssignmentPolicy.canExtend = false; accessPackageAssignmentPolicy.durationInDays = 365;
+accessPackageAssignmentPolicy.expirationDateTime = CalendarSerializer.deserialize("null");
RequestorSettings requestorSettings = new RequestorSettings();
-requestorSettings.scopeType = "AllExistingDirectorySubjects";
+requestorSettings.scopeType = "AllExistingConnectedOrganizationSubjects";
requestorSettings.acceptRequests = true; LinkedList<UserSet> allowedRequestorsList = new LinkedList<UserSet>(); requestorSettings.allowedRequestors = allowedRequestorsList; accessPackageAssignmentPolicy.requestorSettings = requestorSettings; ApprovalSettings requestApprovalSettings = new ApprovalSettings();
-requestApprovalSettings.isApprovalRequired = false;
+requestApprovalSettings.isApprovalRequired = true;
requestApprovalSettings.isApprovalRequiredForExtension = false;
-requestApprovalSettings.isRequestorJustificationRequired = false;
-requestApprovalSettings.approvalMode = "NoApproval";
+requestApprovalSettings.isRequestorJustificationRequired = true;
+requestApprovalSettings.approvalMode = "SingleStage";
LinkedList<ApprovalStage> approvalStagesList = new LinkedList<ApprovalStage>();
+ApprovalStage approvalStages = new ApprovalStage();
+approvalStages.approvalStageTimeOutInDays = 14;
+approvalStages.isApproverJustificationRequired = true;
+approvalStages.isEscalationEnabled = true;
+approvalStages.escalationTimeInMinutes = 11520;
+LinkedList<UserSet> primaryApproversList = new LinkedList<UserSet>();
+GroupMembers primaryApprovers = new GroupMembers();
+primaryApprovers.isBackup = true;
+primaryApprovers.id = "d2dcb9a1-a445-42ee-83a8-476522ed6cbf";
+primaryApprovers.description = "group for users from connected organizations which have no external sponsor";
+primaryApproversList.add(primaryApprovers);
+ExternalSponsors primaryApprovers1 = new ExternalSponsors();
+primaryApprovers1.isBackup = false;
+primaryApproversList.add(primaryApprovers1);
+approvalStages.primaryApprovers = primaryApproversList;
+approvalStagesList.add(approvalStages);
requestApprovalSettings.approvalStages = approvalStagesList; accessPackageAssignmentPolicy.requestApprovalSettings = requestApprovalSettings;
-accessPackageAssignmentPolicy.accessReviewSettings = null;
+AssignmentReviewSettings accessReviewSettings = new AssignmentReviewSettings();
+accessReviewSettings.isEnabled = false;
+accessPackageAssignmentPolicy.accessReviewSettings = accessReviewSettings;
+LinkedList<AccessPackageQuestion> questionsList = new LinkedList<AccessPackageQuestion>();
+AccessPackageMultipleChoiceQuestion questions = new AccessPackageMultipleChoiceQuestion();
+questions.isRequired = false;
+AccessPackageLocalizedContent text = new AccessPackageLocalizedContent();
+text.defaultText = "what state are you from?";
+LinkedList<AccessPackageLocalizedText> localizedTextsList = new LinkedList<AccessPackageLocalizedText>();
+AccessPackageLocalizedText localizedTexts = new AccessPackageLocalizedText();
+localizedTexts.text = "¿De qué estado eres?";
+localizedTexts.languageCode = "es";
+localizedTextsList.add(localizedTexts);
+text.localizedTexts = localizedTextsList;
+questions.text = text1;
+LinkedList<AccessPackageAnswerChoice> choicesList = new LinkedList<AccessPackageAnswerChoice>();
+AccessPackageAnswerChoice choices = new AccessPackageAnswerChoice();
+choices.actualValue = "AZ";
+AccessPackageLocalizedContent displayValue = new AccessPackageLocalizedContent();
+LinkedList<AccessPackageLocalizedText> localizedTextsList1 = new LinkedList<AccessPackageLocalizedText>();
+AccessPackageLocalizedText localizedTexts1 = new AccessPackageLocalizedText();
+localizedTexts1.text = "Arizona";
+localizedTexts1.languageCode = "es";
+localizedTextsList1.add(localizedTexts1);
+displayValue.localizedTexts = localizedTextsList1;
+choices.displayValue = displayValue;
+choicesList.add(choices);
+AccessPackageAnswerChoice choices1 = new AccessPackageAnswerChoice();
+choices1.actualValue = "CA";
+AccessPackageLocalizedContent displayValue1 = new AccessPackageLocalizedContent();
+LinkedList<AccessPackageLocalizedText> localizedTextsList2 = new LinkedList<AccessPackageLocalizedText>();
+AccessPackageLocalizedText localizedTexts2 = new AccessPackageLocalizedText();
+localizedTexts2.text = "California";
+localizedTexts2.languageCode = "es";
+localizedTextsList2.add(localizedTexts2);
+displayValue1.localizedTexts = localizedTextsList2;
+choices1.displayValue = displayValue1;
+choicesList.add(choices1);
+questions.choices = choicesList;
+questions.allowsMultipleSelection = false;
+questionsList.add(questions);
+AccessPackageTextInputQuestion questions1 = new AccessPackageTextInputQuestion();
+questions1.isRequired = false;
+AccessPackageLocalizedContent text4 = new AccessPackageLocalizedContent();
+text4.defaultText = "Who is your manager?";
+LinkedList<AccessPackageLocalizedText> localizedTextsList3 = new LinkedList<AccessPackageLocalizedText>();
+AccessPackageLocalizedText localizedTexts3 = new AccessPackageLocalizedText();
+localizedTexts3.text = "por qué necesita acceso a este paquete";
+localizedTexts3.languageCode = "es";
+localizedTextsList3.add(localizedTexts3);
+text4.localizedTexts = localizedTextsList3;
+questions1.text = text5;
+questions1.isSingleLineQuestion = false;
+questionsList.add(questions1);
+accessPackageAssignmentPolicy.questions = questionsList;
graphClient.identityGovernance().entitlementManagement().accessPackageAssignmentPolicies("b2eba9a1-b357-42ee-83a8-336522ed6cbf") .buildRequest()
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-chat-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/update-chat-java-snippets.md new file mode 100644
@@ -0,0 +1,16 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+Chat chat = new Chat();
+chat.topic = "Group chat title update";
+
+graphClient.chats("19:1c5b01696d2e4a179c292bc9cf04e63b@thread.v2")
+ .buildRequest()
+ .patch(chat);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-event-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/update-event-java-snippets.md
@@ -19,6 +19,7 @@ event.reminderMinutesBeforeStart = 99;
event.isOnlineMeeting = true; event.onlineMeetingProvider = OnlineMeetingProviderType.TEAMS_FOR_BUSINESS; event.isReminderOn = true;
+event.hideAttendees = false;
LinkedList<String> categoriesList = new LinkedList<String>(); categoriesList.add("Red category"); event.categories = categoriesList;
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/user-list-teamsapps-details-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/user-list-teamsapps-details-java-snippets.md deleted file mode 100644
@@ -1,14 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-IUserScopeTeamsAppInstallationCollectionPage installedApps = graphClient.users("{id}").teamwork().installedApps()
- .buildRequest()
- .expand("teamsAppDefinition")
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/add-teamsapp-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/add-teamsapp-javascript-snippets.md deleted file mode 100644
@@ -1,21 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-const teamsAppInstallation = {
- teamsApp@odata.bind:"https://graph.microsoft.com/beta/appCatalogs/teamsApps/12345678-9abc-def0-123456789a"
-};
-
-let res = await client.api('/teams/87654321-0abc-zqf0-321456789q/installedApps')
- .version('beta')
- .post(teamsAppInstallation);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/call-redirect-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/call-redirect-javascript-snippets.md
@@ -16,10 +16,9 @@ const redirect = {
@odata.type: "#microsoft.graph.invitationParticipantInfo", identity: { @odata.type: "#microsoft.graph.identitySet",
- application: {
+ phone: {
@odata.type: "#microsoft.graph.identity",
- displayName: "test bot 2",
- id: "22bfd41f-550e-477d-8789-f6f7bd2a5e8b"
+ id: "+12345678901"
} } }
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/call-transfer-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/call-transfer-javascript-snippets.md
@@ -14,15 +14,13 @@ const transfer = {
transferTarget: { endpointType: "default", identity: {
- user: {
- id: "550fae72-d251-43ec-868c-373732c2704f",
- tenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47",
- displayName: "Heidi Steen"
- }
+ phone: {
+ @odata.type: "#microsoft.graph.identity",
+ id: "+12345678901"
+ }
}, languageId: "languageId-value",
- region: "region-value",
- replacesCallId: "replacesCallId-value"
+ region: "region-value"
}, clientContext: "9e90d1c1-f61e-43e7-9f75-d420159aae08" };
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-accesspackageassignmentpolicy-from-accesspackageassignmentpolicies-questions-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-accesspackageassignmentpolicy-from-accesspackageassignmentpolicies-questions-javascript-snippets.md new file mode 100644
@@ -0,0 +1,105 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const accessPackageAssignmentPolicy = {
+ accessPackageId: "b2eba9a1-b357-42ee-83a8-336522ed6cbf",
+ displayName: "Users from connected organizations can request",
+ description: "Allow users from configured connected organizations to request and be approved by their sponsors",
+ canExtend: false,
+ durationInDays: 365,
+ expirationDateTime: null,
+ requestorSettings: {
+ scopeType: "AllExistingConnectedOrganizationSubjects",
+ acceptRequests: true
+ },
+ requestApprovalSettings: {
+ isApprovalRequired: true,
+ isApprovalRequiredForExtension: false,
+ isRequestorJustificationRequired: true,
+ approvalMode: "SingleStage",
+ approvalStages: [{
+ approvalStageTimeOutInDays: 14,
+ isApproverJustificationRequired: true,
+ isEscalationEnabled: true,
+ escalationTimeInMinutes: 11520,
+ primaryApprovers: [{
+ @odata.type: "#microsoft.graph.groupMembers",
+ isBackup: true,
+ id: "d2dcb9a1-a445-42ee-83a8-476522ed6cbf",
+ description: "group for users from connected organizations which have no external sponsor"
+ },
+ {
+ @odata.type: "#microsoft.graph.externalSponsors",
+ isBackup: false
+ }
+ ]
+ }
+ ]
+ },
+ accessReviewSettings: {
+ isEnabled: false
+ },
+ questions: [{
+ isRequired: false,
+ text: {
+ defaultText: "what state are you from?",
+ localizedTexts: [{
+ text: "¿De qué estado eres?",
+ languageCode: "es"
+ }]
+ },
+ @odata.type: "#microsoft.graph.accessPackageMultipleChoiceQuestion",
+ choices: [{
+ actualValue: "AZ",
+ displayValue: {
+ localizedTexts: [{
+ text: "Arizona",
+ languageCode: "es"
+ }]
+ }
+ }, {
+ actualValue: "CA",
+ displayValue: {
+ localizedTexts: [{
+ text: "California",
+ languageCode: "es"
+ }]
+ }
+ }, {
+ actualValue: "OH",
+ displayValue: {
+ localizedTexts: [{
+ text: "Ohio",
+ languageCode: "es"
+ }]
+ }
+ }],
+ allowsMultipleSelection: false
+ }, {
+ isRequired: false,
+ text: {
+ defaultText: "Who is your manager?",
+ localizedTexts: [{
+ text: "por qué necesita acceso a este paquete",
+ languageCode: "es"
+ }]
+ },
+ @odata.type: "#microsoft.graph.accessPackageTextInputQuestion",
+ isSingleLineQuestion: false
+ }]
+};
+
+let res = await client.api('/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies')
+ .version('beta')
+ .post(accessPackageAssignmentPolicy);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-accesspackageassignmentrequest-from-accesspackageassignmentrequests-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-accesspackageassignmentrequest-from-accesspackageassignmentrequests-javascript-snippets.md
@@ -11,12 +11,25 @@ const options = {
const client = Client.init(options); const accessPackageAssignmentRequest = {
- requestType: "AdminAdd",
- accessPackageAssignment:{
- targetId:"46184453-e63b-4f20-86c2-c557ed5d5df9",
- assignmentPolicyId:"2264bf65-76ba-417b-a27d-54d291f0cbc8",
- accessPackageId:"a914b616-e04e-476b-aa37-91038f0b165b"
- }
+ requestType: "UserAdd",
+ accessPackageAssignment: {
+ targetId: "46184453-e63b-4f20-86c2-c557ed5d5df9",
+ assignmentPolicyId: "2264bf65-76ba-417b-a27d-54d291f0cbc8",
+ accessPackageId: "a914b616-e04e-476b-aa37-91038f0b165b"
+ },
+ answers: [{
+ @odata.type: "#microsoft.graph.accessPackageAnswerString",
+ value: "Arizona",
+ answeredQuestion: {
+ "id" : "A714EC6F-4EE0-4614-BD81-37E0C5ECBBFF"
+ }
+ }, {
+ @odata.type: "#microsoft.graph.accessPackageAnswerString",
+ value: "Need access to marketing campaign material",
+ answeredQuestion: {
+ "id" : "AA615EE9-D9D8-4C03-BE91-BEE37106DEDA"
+ }
+ }]
}; let res = await client.api('/identityGovernance/entitlementManagement/accessPackageAssignmentRequests')
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-accessreviewscheduledefinition-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-accessreviewscheduledefinition-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-const accessReview = {
+const accessReviewScheduleDefinition = {
displayName: "Test create", descriptionForAdmins: "New scheduled access review", descriptionForReviewers: "If you have any questions, contact jerry@contoso.com",
@@ -47,8 +47,8 @@ const accessReview = {
} };
-let res = await client.api('/accessReviews')
+let res = await client.api('/identityGovernance/accessReviews/definitions')
.version('beta')
- .post(accessReview);
+ .post(accessReviewScheduleDefinition);
```\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-application-from-connectorgroup-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-application-from-connectorgroup-javascript-snippets.md
@@ -10,10 +10,7 @@ const options = {
const client = Client.init(options);
-const connectorGroup = Content-type: application/json
-Content-length: 30
-
-{
+const connectorGroup = {
@odata.id: "https://graph.microsoft.com/onPremisesPublishingProfiles/applicationproxy/connectorGroups/{id}" };
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-b2cuserflow-from-b2cuserflows-apiconnectors-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-b2cuserflow-from-b2cuserflows-apiconnectors-javascript-snippets.md new file mode 100644
@@ -0,0 +1,31 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const b2cIdentityUserFlow = {
+ id: "UserFlowWithAPIConnector",
+ userFlowType: "signUpOrSignIn",
+ userFlowTypeVersion: 1,
+ apiConnectorConfiguration:{
+ postFederationSignup:{
+ @odata.id: "https://graph.microsoft.com/beta/identity/apiConnectors/{id}"
+ },
+ postAttributeCollection:{
+ @odata.id: "https://graph.microsoft.com/beta/identity/apiConnectors/{id}"
+ }
+ }
+};
+
+let res = await client.api('/identity/b2cUserFlows')
+ .version('beta')
+ .post(b2cIdentityUserFlow);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-b2xuserflow-from-b2xuserflows-apiconnectors-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-b2xuserflow-from-b2xuserflows-apiconnectors-javascript-snippets.md new file mode 100644
@@ -0,0 +1,31 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const b2xIdentityUserFlow = {
+ id: "UserFlowWithAPIConnector",
+ userFlowType: "signUpOrSignIn",
+ userFlowTypeVersion: 1,
+ apiConnectorConfiguration:{
+ postFederationSignup:{
+ @odata.id: "https://graph.microsoft.com/beta/identity/apiConnectors/{id}"
+ },
+ postAttributeCollection:{
+ @odata.id: "https://graph.microsoft.com/beta/identity/apiConnectors/{id}"
+ }
+ }
+};
+
+let res = await client.api('/identity/b2xUserFlows')
+ .version('beta')
+ .post(b2xIdentityUserFlow);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-calendar-from-calendargroup-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-calendar-from-calendargroup-javascript-snippets.md
@@ -10,9 +10,7 @@ const options = {
const client = Client.init(options);
-const calendar = Content-type: application/json
-
-{
+const calendar = {
name: "Marketing calendar" };
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-channel-for-migration-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-channel-for-migration-javascript-snippets.md new file mode 100644
@@ -0,0 +1,25 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const channel = {
+ @microsoft.graph.channelCreationMode: "migration",
+ displayName: "Architecture Discussion",
+ description: "This channel is where we debate all future architecture plans",
+ membershipType: "standard",
+ createdDateTime: "2020-03-14T11:22:17.067Z"
+};
+
+let res = await client.api('/teams/57fb72d0-d811-46f4-8947-305e6072eaa5/channels')
+ .version('beta')
+ .post(channel);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-channel-from-group-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-channel-from-group-javascript-snippets.md
@@ -16,7 +16,7 @@ const channel = {
membershipType: "standard" };
-let res = await client.api('/teams/{id}/channels')
+let res = await client.api('/teams/57fb72d0-d811-46f4-8947-305e6072eaa5/channels')
.version('beta') .post(channel);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-channel-with-moderation-settings-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-channel-with-moderation-settings-javascript-snippets.md new file mode 100644
@@ -0,0 +1,29 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const channel = {
+ displayName: "TestChannelModeration",
+ description: "Test channel moderation.",
+ membershipType: "standard",
+ moderationSettings: {
+ userNewMessageRestriction: "everyoneExceptGuests",
+ replyRestriction: "everyone",
+ allowNewMessageFromBots: true,
+ allowNewMessageFromConnectors: true
+ }
+};
+
+let res = await client.api('/teams/57fb72d0-d811-46f4-8947-305e6072eaa5/channels')
+ .version('beta')
+ .post(channel);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-chat-group-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-chat-group-javascript-snippets.md new file mode 100644
@@ -0,0 +1,39 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const chat = {
+ chatType: "group",
+ topic: "Group chat title",
+ members: [
+ {
+ @odata.type: "#microsoft.graph.aadUserConversationMember",
+ roles: ["owner"],
+ user@odata.bind: "https://graph.microsoft.com/beta/users('8c0a1a67-50ce-4114-bb6c-da9c5dbcf6ca')"
+ },
+ {
+ @odata.type: "#microsoft.graph.aadUserConversationMember",
+ roles: ["owner"],
+ user@odata.bind: "https://graph.microsoft.com/beta/users('82fe7758-5bb3-4f0d-a43f-e555fd399c6f')"
+ },
+ {
+ @odata.type: "#microsoft.graph.aadUserConversationMember",
+ roles: ["owner"],
+ user@odata.bind: "https://graph.microsoft.com/beta/users('3626a173-f2bc-4883-bcf7-01514c3bfb82')"
+ }
+ ]
+};
+
+let res = await client.api('/chats')
+ .version('beta')
+ .post(chat);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-chat-oneonone-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-chat-oneonone-javascript-snippets.md new file mode 100644
@@ -0,0 +1,33 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const chat = {
+ chatType: "oneOnOne",
+ members: [
+ {
+ @odata.type: "#microsoft.graph.aadUserConversationMember",
+ roles: ["owner"],
+ user@odata.bind: "https://graph.microsoft.com/beta/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')"
+ },
+ {
+ @odata.type: "#microsoft.graph.aadUserConversationMember",
+ roles: ["owner"],
+ user@odata.bind: "https://graph.microsoft.com/beta/users('82af01c5-f7cc-4a2e-a728-3a5df21afd9d')"
+ }
+ ]
+};
+
+let res = await client.api('/chats')
+ .version('beta')
+ .post(chat);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-chatmessage-from-chat-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-chatmessage-from-chat-javascript-snippets.md
@@ -16,7 +16,7 @@ const chatMessage = {
} };
-let res = await client.api('/teams/{id}/channels/{id}/messages')
+let res = await client.api('/chats/{id}/messages')
.version('beta') .post(chatMessage);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-connectorgroup-from-connector-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-connectorgroup-from-connector-javascript-snippets.md
@@ -10,10 +10,7 @@ const options = {
const client = Client.init(options);
-const connectorGroup = Content-type: application/json
-Content-length: 99
-
-{
+const connectorGroup = {
@odata.id: "https://graph.microsoft.com/beta/onPremisesPublishingProfiles/applicationProxy/connectorGroups/{id}" };
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-conversation-from-group-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-conversation-from-group-javascript-snippets.md deleted file mode 100644
@@ -1,41 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-const conversation = {
- topic:"New head count",
- threads:[
- {
- posts:[
- {
- body:{
- contentType:"html",
- content:"The confirmation will come by the end of the week."
- },
- newParticipants:[
- {
- emailAddress:{
- name:"Adele Vance",
- address:"AdeleV@contoso.onmicrosoft.com"
- }
- }
- ]
- }
- ]
- }
- ]
-};
-
-let res = await client.api('/groups/29981b6a-0e57-42dc-94c9-cd24f5306196/conversations')
- .version('beta')
- .post(conversation);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-conversation-member-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-conversation-member-javascript-snippets.md deleted file mode 100644
@@ -1,23 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-const conversationMember = {
- @odata.type: "#microsoft.graph.aadUserConversationMember",
- roles: [],
- user@odata.bind: "https://graph.microsoft.com/beta/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5"
-};
-
-let res = await client.api('/teams/{id}/channels/{id}/members/')
- .version('beta')
- .post(conversationMember);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-conversation-member-with-all-visiblehistorystartdatetime-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-conversation-member-with-all-visiblehistorystartdatetime-javascript-snippets.md new file mode 100644
@@ -0,0 +1,23 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const conversationMember = {
+ @odata.type: "#microsoft.graph.aadUserConversationMember",
+ user@odata.bind: "https://graph.microsoft.com/beta/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5",
+ visibleHistoryStartDateTime: "0001-01-01T00:00:00Z"
+};
+
+let res = await client.api('/chats/19:cf66807577b149cca1b7af0c32eec122@thread.v2/members')
+ .version('beta')
+ .post(conversationMember);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-conversation-member-with-no-visiblehistorystartdatetime-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-conversation-member-with-no-visiblehistorystartdatetime-javascript-snippets.md new file mode 100644
@@ -0,0 +1,22 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const conversationMember = {
+ @odata.type: "#microsoft.graph.aadUserConversationMember",
+ user@odata.bind: "https://graph.microsoft.com/beta/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5"
+};
+
+let res = await client.api('/chats/19:cf66807577b149cca1b7af0c32eec122@thread.v2/members')
+ .version('beta')
+ .post(conversationMember);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-conversation-member-with-specific-visiblehistorystartdatetime-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-conversation-member-with-specific-visiblehistorystartdatetime-javascript-snippets.md new file mode 100644
@@ -0,0 +1,23 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const conversationMember = {
+ @odata.type: "#microsoft.graph.aadUserConversationMember",
+ user@odata.bind: "https://graph.microsoft.com/beta/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5",
+ visibleHistoryStartDateTime: "2019-04-18T23:51:43.255Z"
+};
+
+let res = await client.api('/chats/19:cf66807577b149cca1b7af0c32eec122@thread.v2/members')
+ .version('beta')
+ .post(conversationMember);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-event-recurring-daily-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-event-recurring-daily-javascript-snippets.md deleted file mode 100644
@@ -1,56 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-const event = {
- subject: "Let's go for lunch",
- body: {
- contentType: "HTML",
- content: "Does noon work for you?"
- },
- start: {
- dateTime: "2020-02-25T12:00:00",
- timeZone: "Pacific Standard Time"
- },
- end: {
- dateTime: "2020-02-25T14:00:00",
- timeZone: "Pacific Standard Time"
- },
- location:{
- displayName:"Harry's Bar"
- },
- attendees: [
- {
- emailAddress: {
- address:"AlexW@contoso.OnMicrosoft.com",
- name: "Alex Wilbur"
- },
- type: "required"
- }
- ],
- recurrence: {
- pattern: {
- type: "daily",
- interval: 1
- },
- range: {
- type: "numbered",
- startDate: "2020-02-25",
- numberOfOccurrences: 2
- }
- }
-};
-
-let res = await client.api('/me/events')
- .version('beta')
- .post(event);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-item-attachment-from-event-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-item-attachment-from-event-javascript-snippets.md deleted file mode 100644
@@ -1,38 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-const attachment = {
- @odata.type: "#microsoft.graph.itemAttachment",
- name: "Holiday event",
- item: {
- @odata.type: "microsoft.graph.event",
- subject: "Discuss gifts for children",
- body: {
- contentType: "HTML",
- content: "Let's look for funding!"
- },
- start: {
- dateTime: "2016-12-02T18:00:00",
- timeZone: "Pacific Standard Time"
- },
- end: {
- dateTime: "2016-12-02T19:00:00",
- timeZone: "Pacific Standard Time"
- }
- }
-};
-
-let res = await client.api('/me/events/{AAMkAGI1AAAt9AHjAAA=}/attachments')
- .version('beta')
- .post(attachment);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-item-attachment-from-message-beta-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-item-attachment-from-message-beta-javascript-snippets.md deleted file mode 100644
@@ -1,38 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-const attachment = {
- @odata.type: "#microsoft.graph.itemAttachment",
- name: "Holiday event",
- item: {
- @odata.type: "microsoft.graph.event",
- subject: "Discuss gifts for children",
- body: {
- contentType: "HTML",
- content: "Let's look for funding!"
- },
- start: {
- dateTime: "2016-12-02T18:00:00",
- timeZone: "Pacific Standard Time"
- },
- end: {
- dateTime: "2016-12-02T19:00:00",
- timeZone: "Pacific Standard Time"
- }
- }
-};
-
-let res = await client.api('/me/messages/AAMkpsDRVK/attachments')
- .version('beta')
- .post(attachment);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-item-attachment-with-post-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-item-attachment-with-post-javascript-snippets.md deleted file mode 100644
@@ -1,46 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-const reply = {
- post: {
- body: {
- contentType: "text",
- content: "I attached an event."
- },
- attachments: [{
- @odata.type: "#microsoft.graph.itemAttachment",
- name: "Holiday event",
- item: {
- @odata.type: "microsoft.graph.event",
- subject: "Discuss gifts for children",
- body: {
- contentType: "HTML",
- content: "Let's look for funding!"
- },
- start: {
- dateTime: "2019-12-02T18:00:00",
- timeZone: "Pacific Standard Time"
- },
- end: {
- dateTime: "2019-12-02T19:00:00",
- timeZone: "Pacific Standard Time"
- }
- }
- } ]
- }
-};
-
-let res = await client.api('/groups/1848753d-185d-4c08-a4e4-6ee40521d115/threads/AAQkADJUdfolA==/reply')
- .version('beta')
- .post(reply);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-prepopulated-group-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-prepopulated-group-javascript-snippets.md deleted file mode 100644
@@ -1,35 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-const group = {
- description: "Group with designated owner and members",
- displayName: "Operations group",
- groupTypes: [
- "Unified"
- ],
- mailEnabled: true,
- mailNickname: "operations2019",
- securityEnabled: false,
- owners@odata.bind: [
- "https://graph.microsoft.com/beta/users/26be1845-4119-4801-a799-aea79d09f1a2"
- ],
- members@odata.bind: [
- "https://graph.microsoft.com/beta/users/ff7cb387-6688-423c-8188-3da9532a73cc",
- "https://graph.microsoft.com/beta/users/69456242-0067-49d3-ba96-9de6f2728e14"
- ]
-};
-
-let res = await client.api('/groups')
- .version('beta')
- .post(group);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-private-channel-with-member-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-private-channel-with-member-javascript-snippets.md new file mode 100644
@@ -0,0 +1,32 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const channel = {
+ @odata.type: "#Microsoft.Graph.channel",
+ membershipType: "private",
+ displayName: "My First Private Channel",
+ description: "This is my first private channels",
+ members:
+ [
+ {
+ @odata.type:"#microsoft.graph.aadUserConversationMember",
+ user@odata.bind:"https://graph.microsoft.com/beta/users('62855810-484b-4823-9e01-60667f8b12ae')",
+ roles:["owner"]
+ }
+ ]
+};
+
+let res = await client.api('/teams/57fb72d0-d811-46f4-8947-305e6072eaa5/channels')
+ .version('beta')
+ .post(channel);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/delete-alloweduser-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/delete-alloweduser-javascript-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/print/printers/{id}/allowedUsers/{id}/$ref')
- .version('beta')
- .delete();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/delete-conversation-member-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/delete-conversation-member-javascript-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/teams/{id}/channels/{id}/members/{id}')
- .version('beta')
- .delete();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/delete-members-from-chat-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/delete-members-from-chat-javascript-snippets.md new file mode 100644
@@ -0,0 +1,17 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/chats/19:cf66807577b149cca1b7af0c32eec122@thread.v2/members/MCMjMjQzMmI1N2ItMGFiZC00M2RiLWFhN2ItMTZlYWRkMTE1ZDM0IyMxOTpiZDlkYTQ2MzIzYWY0MjUzOTZkMGZhNjcyMDAyODk4NEB0aHJlYWQudjIjIzQ4YmY5ZDUyLWRjYTctNGE1Zi04Mzk4LTM3Yjk1Y2M3YmQ4Mw==')
+ .version('beta')
+ .delete();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-chat-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-chat-javascript-snippets.md new file mode 100644
@@ -0,0 +1,17 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5/chats/19:8b081ef6-4792-4def-b2c9-c363a1bf41d5_877192bd-9183-47d3-a74c-8aa0426716cf@unq.gbl.spaces')
+ .version('beta')
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-chat-message-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-chat-message-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/users/{id}/chats/{id}')
+let res = await client.api('/me/chats/{id}/messages/{id}')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-conversation-member-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-conversation-member-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/chats/{id}/members/{id}')
+let res = await client.api('/chats/19:cf66807577b149cca1b7af0c32eec122@thread.v2/members/141c574c-dd90-4131-b173-baf4bb0e894e')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-count-group-only-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-count-group-only-javascript-snippets.md deleted file mode 100644
@@ -1,18 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/servicePrincipals/{id}/memberOf/microsoft.graph.group/$count')
- .version('beta')
- .header('ConsistencyLevel','eventual')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-count-only-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-count-only-javascript-snippets.md deleted file mode 100644
@@ -1,18 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/users/$count')
- .version('beta')
- .header('ConsistencyLevel','eventual')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-count-user-only-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-count-user-only-javascript-snippets.md deleted file mode 100644
@@ -1,18 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/groups/{id}/members/microsoft.graph.user/$count')
- .version('beta')
- .header('ConsistencyLevel','eventual')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-event-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-event-javascript-snippets.md
@@ -13,7 +13,7 @@ const client = Client.init(options);
let res = await client.api('/me/events/AAMkAGIAAAoZDOFAAA=/') .version('beta') .header('Prefer','outlook.timezone="Pacific Standard Time"')
- .select('subject,body,bodyPreview,organizer,attendees,start,end,location')
+ .select('subject,body,bodyPreview,organizer,attendees,start,end,location,hideAttendees')
.get(); ```\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-group-transitivemembers-count-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-group-transitivemembers-count-javascript-snippets.md deleted file mode 100644
@@ -1,18 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/groups/{id}/transitiveMembers/$count')
- .version('beta')
- .header('ConsistencyLevel','eventual')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-groups-withlicenseerrors-count-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-groups-withlicenseerrors-count-javascript-snippets.md deleted file mode 100644
@@ -1,20 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/groups')
- .version('beta')
- .header('ConsistencyLevel','eventual')
- .filter('hasMembersWithLicenseErrors+eq+true,')
- .select('id,displayName')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-phone-count-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-phone-count-javascript-snippets.md deleted file mode 100644
@@ -1,19 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/contacts')
- .version('beta')
- .header('ConsistencyLevel','eventual')
- .search('displayName:wa')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-pr-count-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-pr-count-javascript-snippets.md deleted file mode 100644
@@ -1,21 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/groups/{id}/members/microsoft.graph.user')
- .version('beta')
- .header('ConsistencyLevel','eventual')
- .search('displayName:Pr')
- .select('displayName,id')
- .orderby('displayName ')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-printjob-withtasks-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-printjob-withtasks-javascript-snippets.md deleted file mode 100644
@@ -1,18 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/print/printers/c05f3726-0d4b-4aa1-8fe9-2eb981bb26fb/jobs/5182')
- .version('beta')
- .expand('tasks')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-signin-last-time-range-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-signin-last-time-range-javascript-snippets.md deleted file mode 100644
@@ -1,18 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/users?filter=signInActivity/lastSignInDateTime%20le%202019-06-01T00:00:00Z')
- .version('beta')
- .filter('signInActivity/lastSignInDateTime le 2019-06-01T00:00:00Z')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-team-count-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-team-count-javascript-snippets.md deleted file mode 100644
@@ -1,19 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/servicePrincipals')
- .version('beta')
- .header('ConsistencyLevel','eventual')
- .search('displayName:Team')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-tier-count-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-tier-count-javascript-snippets.md deleted file mode 100644
@@ -1,21 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/users/{id}/transitiveMemberOf/microsoft.graph.group')
- .version('beta')
- .header('ConsistencyLevel','eventual')
- .search('displayName:tier')
- .select('displayName,id')
- .orderby('displayName ')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-unifiedroledefinition-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-unifiedroledefinition-javascript-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/roleManagement/directory/roleDefinitions/f189965f-f560-4c59-9101-933d4c87a91a')
- .version('beta')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-user-memberof-count-only-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-user-memberof-count-only-javascript-snippets.md deleted file mode 100644
@@ -1,18 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/users/{id}/memberOf/$count')
- .version('beta')
- .header('ConsistencyLevel','eventual')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-video-count-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-video-count-javascript-snippets.md deleted file mode 100644
@@ -1,20 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/groups/{id}/memberOf/microsoft.graph.group')
- .version('beta')
- .header('ConsistencyLevel','eventual')
- .search('displayName:Video')
- .orderby('displayName ')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-wa-count-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-wa-count-javascript-snippets.md deleted file mode 100644
@@ -1,20 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/users')
- .version('beta')
- .header('ConsistencyLevel','eventual')
- .search('displayName:wa')
- .orderby('displayName ')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-web-count-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-web-count-javascript-snippets.md deleted file mode 100644
@@ -1,19 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/applications')
- .version('beta')
- .header('ConsistencyLevel','eventual')
- .search('displayName:Web')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/identityuserflowattributeassignment-setorder-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/identityuserflowattributeassignment-setorder-javascript-snippets.md
@@ -10,10 +10,7 @@ const options = {
const client = Client.init(options);
-const setOrder = Content-Type: application/json
-Content-length: 90
-
-{
+const setOrder = {
newAssignmentOrder: { order: [ "City",
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/list-chats-expand-members-and-filter-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/list-chats-expand-members-and-filter-javascript-snippets.md new file mode 100644
@@ -0,0 +1,19 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5/chats')
+ .version('beta')
+ .filter('members/any(o: o/displayname eq 'Peter Parker')')
+ .expand('members')
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/list-chats-expand-members-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/list-chats-expand-members-javascript-snippets.md new file mode 100644
@@ -0,0 +1,18 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5/chats')
+ .version('beta')
+ .expand('members')
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/list-chats-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/list-chats-javascript-snippets.md new file mode 100644
@@ -0,0 +1,17 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5/chats')
+ .version('beta')
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/list-conversation-members-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/list-conversation-members-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/me/chats/{id}/members')
+let res = await client.api('/me/chats/19:8b081ef6-4792-4def-b2c9-c363a1bf41d5_5031bb31-22c0-4f6f-9f73-91d34ab2b32d@unq.gbl.spaces/members')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/list-installed-apps-in-chat-expand-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/list-installed-apps-in-chat-expand-javascript-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/chats/19:d65713bc498c4a428c71ef9353e6ce20@thread.v2/installedApps')
- .version('beta')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/list-installed-teams-apps-expand-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/list-installed-teams-apps-expand-javascript-snippets.md deleted file mode 100644
@@ -1,18 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/teams/6903fa93-605b-43ef-920e-77c4729f8258/installedApps')
- .version('beta')
- .expand('teamsAppDefinition')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/list-teamsapp-with-filter-expand-appdefinitions-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/list-teamsapp-with-filter-expand-appdefinitions-javascript-snippets.md new file mode 100644
@@ -0,0 +1,19 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/appCatalogs/teamsApps')
+ .version('beta')
+ .filter('id eq '876df28f-2e78-423b-94a5-44181bd0e225',')
+ .expand('appDefinitions')
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/participant-invite-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/participant-invite-javascript-snippets.md
@@ -14,13 +14,11 @@ const inviteParticipantsOperation = {
participants: [ { @odata.type: "#microsoft.graph.invitationParticipantInfo",
- replacesCallId: "a7ebfb2d-871e-419c-87af-27290b22e8db",
identity: { @odata.type: "#microsoft.graph.identitySet",
- user: {
+ phone: {
@odata.type: "#microsoft.graph.identity",
- id: "278405a3-f568-4b3e-b684-009193463064",
- identityProvider: "AAD"
+ id: "+12345678901"
} } }
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/patch-channel-with-moderationsettings-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/patch-channel-with-moderationsettings-javascript-snippets.md new file mode 100644
@@ -0,0 +1,28 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const channel = {
+ displayName: "UpdateChannelModeration",
+ description: "Update channel moderation.",
+ moderationSettings: {
+ userNewMessageRestriction: "moderators",
+ replyRestriction: "everyone",
+ allowNewMessageFromBots: true,
+ allowNewMessageFromConnectors: true
+ }
+};
+
+let res = await client.api('/teams/{team-id}/channels/{channel-id}')
+ .version('beta')
+ .update(channel);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/permission-revokegrants-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/permission-revokegrants-javascript-snippets.md
@@ -10,10 +10,7 @@ const options = {
const client = Client.init(options);
-const permission = Content-Type: application/json
-Content-length: 95
-
-{
+const permission = {
grantees: [ { email: "ryan@contoso.com"
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/post-reviewsetquery-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/post-reviewsetquery-javascript-snippets.md
@@ -11,8 +11,8 @@ const options = {
const client = Client.init(options); const reviewSetQuery = {
- "displayName" : "My Query 1",
- query: "(subject:\"Quarterly Financials\")"
+ displayName:"My Query 1",
+ query:"(subject:\"Quarterly Financials\")"
}; let res = await client.api('/compliance/ediscovery/cases/2eef613a-ca2d-42f4-89fe-84d5198ddedf/reviewSets/b26888b3-e1f5-47c5-bdf2-33d1b90cb2e8/queries')
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/printjob-cancelprintjob-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/printjob-cancelprintjob-javascript-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/print/printers/{id}/jobs/{id}/cancelPrintJob')
- .version('beta')
- .post();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/printjob-update-configuration-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/printjob-update-configuration-javascript-snippets.md new file mode 100644
@@ -0,0 +1,49 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const printJobConfiguration = {
+ feedOrientation: "longEdgeFirst",
+ pageRanges: [
+ {
+ start: 1,
+ end: 1
+ }
+ ],
+ quality: "medium",
+ dpi: 600,
+ orientation: "landscape",
+ copies: 1,
+ duplexMode: "oneSided",
+ colorMode: "blackAndWhite",
+ inputBin: "by-pass-tray",
+ outputBin: "output-tray",
+ mediaSize: "A4",
+ margin: {
+ top: 0,
+ bottom: 0,
+ left: 0,
+ right: 0
+ },
+ mediaType: "stationery",
+ finishings: null,
+ pagesPerSheet: 1,
+ multipageLayout: "clockwiseFromBottomLeft",
+ collate: false,
+ scaling: "shrinkToFit",
+ fitPdfToPage: false
+};
+
+let res = await client.api('/print/printers/d5ef6ec4-07ca-4212-baf9-d45be126bfbb/jobs/44353/configuration')
+ .version('beta')
+ .post(printJobConfiguration);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/synchronizationjob-provisionondemand-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/synchronizationjob-provisionondemand-javascript-snippets.md
@@ -10,10 +10,7 @@ const options = {
const client = Client.init(options);
-const stringKeyStringValuePair = Content-Type: application/json
-Content-length: 122
-
-{
+const stringKeyStringValuePair = {
parameters: [{ subjects: [{ objectId: "9bb0f679-a883-4a6f-8260-35b491b8b8c8",
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/team-sendactivitynotification-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/team-sendactivitynotification-javascript-snippets.md
@@ -10,9 +10,7 @@ const options = {
const client = Client.init(options);
-const sendActivityNotification = Content-Type: application/json
-
-{
+const sendActivityNotification = {
topic: { source: "text", value: "Deployment Approvals Channel",
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/uninstall-teamsapp-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/uninstall-teamsapp-javascript-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/teams/{id}/installedApps/{id}')
- .version('beta')
- .delete();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-accesspackageassignmentpolicy-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/update-accesspackageassignmentpolicy-javascript-snippets.md
@@ -11,26 +11,85 @@ const options = {
const client = Client.init(options); const accessPackageAssignmentPolicy = {
- id: "b2eba9a1-b357-42ee-83a8-336522ed6cbf",
- accessPackageId: "1b153a13-76da-4d07-9afa-c6c2b1f2e824",
- displayName: "All Users",
- description: "All users can request for access to the directory.",
- isDenyPolicy: false,
- canExtend: false,
- durationInDays: 365,
- "requestorSettings" : {
- scopeType: "AllExistingDirectorySubjects",
- acceptRequests: true,
- allowedRequestors: []
- },
- "requestApprovalSettings" : {
- isApprovalRequired: false,
- isApprovalRequiredForExtension: false,
- isRequestorJustificationRequired: false,
- approvalMode: "NoApproval",
- approvalStages: []
- },
- "accessReviewSettings" : null
+ id: "b2eba9a1-b357-42ee-83a8-336522ed6cbf",
+ accessPackageId: "4c02f928-7752-49aa-8fc8-e286d973a965",
+ displayName: "All Users",
+ description: "All users can request for access to the directory.",
+ canExtend: false,
+ durationInDays: 365,
+ expirationDateTime: null,
+ requestorSettings: {
+ scopeType: "AllExistingConnectedOrganizationSubjects",
+ acceptRequests: true,
+ allowedRequestors: []
+ },
+ requestApprovalSettings: {
+ isApprovalRequired: true,
+ isApprovalRequiredForExtension: false,
+ isRequestorJustificationRequired: true,
+ approvalMode: "SingleStage",
+ approvalStages: [{
+ approvalStageTimeOutInDays: 14,
+ isApproverJustificationRequired: true,
+ isEscalationEnabled: true,
+ escalationTimeInMinutes: 11520,
+ primaryApprovers: [{
+ @odata.type: "#microsoft.graph.groupMembers",
+ isBackup: true,
+ id: "d2dcb9a1-a445-42ee-83a8-476522ed6cbf",
+ description: "group for users from connected organizations which have no external sponsor"
+ },
+ {
+ @odata.type: "#microsoft.graph.externalSponsors",
+ isBackup: false
+ }
+ ]
+ }
+ ]
+ },
+ accessReviewSettings: {
+ isEnabled: false
+ },
+ questions: [{
+ isRequired: false,
+ text: {
+ defaultText: "what state are you from?",
+ localizedTexts: [{
+ text: "¿De qué estado eres?",
+ languageCode: "es"
+ }]
+ },
+ @odata.type: "#microsoft.graph.accessPackageMultipleChoiceQuestion",
+ choices: [{
+ actualValue: "AZ",
+ displayValue: {
+ localizedTexts: [{
+ text: "Arizona",
+ languageCode: "es"
+ }]
+ }
+ }, {
+ actualValue: "CA",
+ displayValue: {
+ localizedTexts: [{
+ text: "California",
+ languageCode: "es"
+ }]
+ }
+ }],
+ allowsMultipleSelection: false
+ }, {
+ isRequired: false,
+ text: {
+ defaultText: "Who is your manager?",
+ localizedTexts: [{
+ text: "por qué necesita acceso a este paquete",
+ languageCode: "es"
+ }]
+ },
+ @odata.type: "#microsoft.graph.accessPackageTextInputQuestion",
+ isSingleLineQuestion: false
+ }]
}; let res = await client.api('/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies/b2eba9a1-b357-42ee-83a8-336522ed6cbf')
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-authzpolicy-guestuserlevel-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/update-authzpolicy-guestuserlevel-javascript-snippets.md deleted file mode 100644
@@ -1,21 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-const authorizationPolicy = {
- guestUserRole:"2af84b1e-32c8-42b7-82bc-daa82404023b"
-};
-
-let res = await client.api('/policies/authorizationPolicy/authorizationPolicy')
- .version('beta')
- .update(authorizationPolicy);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-b2cidentityuserflow-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/update-b2cidentityuserflow-javascript-snippets.md new file mode 100644
@@ -0,0 +1,22 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const b2cIdentityUserFlow = {
+ isLanguageCustomizationEnabled: true,
+ defaultLanguageTag: "en",
+};
+
+let res = await client.api('/identity/b2cUserFlows/B2C_1_CustomerSignUp')
+ .version('beta')
+ .update(b2cIdentityUserFlow);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-chat-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/update-chat-javascript-snippets.md new file mode 100644
@@ -0,0 +1,21 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const chat = {
+ topic: "Group chat title update",
+};
+
+let res = await client.api('/chats/19:1c5b01696d2e4a179c292bc9cf04e63b@thread.v2')
+ .version('beta')
+ .update(chat);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-event-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/update-event-javascript-snippets.md
@@ -23,6 +23,7 @@ const event = {
isOnlineMeeting: true, onlineMeetingProvider: "teamsForBusiness", isReminderOn: true,
+ hideAttendees: false,
categories: ["Red category"] };
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/upgrade-teamsapp-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/upgrade-teamsapp-javascript-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/teams/{id}/installedApps/{id}/upgrade')
- .version('beta')
- .post();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/user-list-teamsapps-details-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/user-list-teamsapps-details-javascript-snippets.md deleted file mode 100644
@@ -1,18 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/users/{id}/teamwork/installedApps')
- .version('beta')
- .expand('teamsAppDefinition')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-accesspackageassignmentpolicy-from-accesspackageassignmentpolicies-questions-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-accesspackageassignmentpolicy-from-accesspackageassignmentpolicies-questions-objc-snippets.md new file mode 100644
@@ -0,0 +1,129 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphAccessPackageAssignmentPolicy *accessPackageAssignmentPolicy = [[MSGraphAccessPackageAssignmentPolicy alloc] init];
+[accessPackageAssignmentPolicy setAccessPackageId:@"b2eba9a1-b357-42ee-83a8-336522ed6cbf"];
+[accessPackageAssignmentPolicy setDisplayName:@"Users from connected organizations can request"];
+[accessPackageAssignmentPolicy setDescription:@"Allow users from configured connected organizations to request and be approved by their sponsors"];
+[accessPackageAssignmentPolicy setCanExtend: false];
+[accessPackageAssignmentPolicy setDurationInDays: 365];
+[accessPackageAssignmentPolicy setExpirationDateTime: null];
+MSGraphRequestorSettings *requestorSettings = [[MSGraphRequestorSettings alloc] init];
+[requestorSettings setScopeType:@"AllExistingConnectedOrganizationSubjects"];
+[requestorSettings setAcceptRequests: true];
+[accessPackageAssignmentPolicy setRequestorSettings:requestorSettings];
+MSGraphApprovalSettings *requestApprovalSettings = [[MSGraphApprovalSettings alloc] init];
+[requestApprovalSettings setIsApprovalRequired: true];
+[requestApprovalSettings setIsApprovalRequiredForExtension: false];
+[requestApprovalSettings setIsRequestorJustificationRequired: true];
+[requestApprovalSettings setApprovalMode:@"SingleStage"];
+NSMutableArray *approvalStagesList = [[NSMutableArray alloc] init];
+MSGraphApprovalStage *approvalStages = [[MSGraphApprovalStage alloc] init];
+[approvalStages setApprovalStageTimeOutInDays: 14];
+[approvalStages setIsApproverJustificationRequired: true];
+[approvalStages setIsEscalationEnabled: true];
+[approvalStages setEscalationTimeInMinutes: 11520];
+NSMutableArray *primaryApproversList = [[NSMutableArray alloc] init];
+MSGraphUserSet *primaryApprovers = [[MSGraphUserSet alloc] init];
+[primaryApprovers setIsBackup: true];
+[primaryApprovers setId:@"d2dcb9a1-a445-42ee-83a8-476522ed6cbf"];
+[primaryApprovers setDescription:@"group for users from connected organizations which have no external sponsor"];
+[primaryApproversList addObject: primaryApprovers];
+MSGraphUserSet *primaryApprovers = [[MSGraphUserSet alloc] init];
+[primaryApprovers setIsBackup: false];
+[primaryApproversList addObject: primaryApprovers];
+[approvalStages setPrimaryApprovers:primaryApproversList];
+[approvalStagesList addObject: approvalStages];
+[requestApprovalSettings setApprovalStages:approvalStagesList];
+[accessPackageAssignmentPolicy setRequestApprovalSettings:requestApprovalSettings];
+MSGraphAssignmentReviewSettings *accessReviewSettings = [[MSGraphAssignmentReviewSettings alloc] init];
+[accessReviewSettings setIsEnabled: false];
+[accessPackageAssignmentPolicy setAccessReviewSettings:accessReviewSettings];
+NSMutableArray *questionsList = [[NSMutableArray alloc] init];
+MSGraphAccessPackageQuestion *questions = [[MSGraphAccessPackageQuestion alloc] init];
+[questions setIsRequired: false];
+MSGraphAccessPackageLocalizedContent *text = [[MSGraphAccessPackageLocalizedContent alloc] init];
+[text setDefaultText:@"what state are you from?"];
+NSMutableArray *localizedTextsList = [[NSMutableArray alloc] init];
+MSGraphAccessPackageLocalizedText *localizedTexts = [[MSGraphAccessPackageLocalizedText alloc] init];
+[localizedTexts setText:@"¿De qué estado eres?"];
+[localizedTexts setLanguageCode:@"es"];
+[localizedTextsList addObject: localizedTexts];
+[text setLocalizedTexts:localizedTextsList];
+[questions setText:text];
+NSMutableArray *choicesList = [[NSMutableArray alloc] init];
+MSGraphAccessPackageAnswerChoice *choices = [[MSGraphAccessPackageAnswerChoice alloc] init];
+[choices setActualValue:@"AZ"];
+MSGraphAccessPackageLocalizedContent *displayValue = [[MSGraphAccessPackageLocalizedContent alloc] init];
+NSMutableArray *localizedTextsList = [[NSMutableArray alloc] init];
+MSGraphAccessPackageLocalizedText *localizedTexts = [[MSGraphAccessPackageLocalizedText alloc] init];
+[localizedTexts setText:@"Arizona"];
+[localizedTexts setLanguageCode:@"es"];
+[localizedTextsList addObject: localizedTexts];
+[displayValue setLocalizedTexts:localizedTextsList];
+[choices setDisplayValue:displayValue];
+[choicesList addObject: choices];
+MSGraphAccessPackageAnswerChoice *choices = [[MSGraphAccessPackageAnswerChoice alloc] init];
+[choices setActualValue:@"CA"];
+MSGraphAccessPackageLocalizedContent *displayValue = [[MSGraphAccessPackageLocalizedContent alloc] init];
+NSMutableArray *localizedTextsList = [[NSMutableArray alloc] init];
+MSGraphAccessPackageLocalizedText *localizedTexts = [[MSGraphAccessPackageLocalizedText alloc] init];
+[localizedTexts setText:@"California"];
+[localizedTexts setLanguageCode:@"es"];
+[localizedTextsList addObject: localizedTexts];
+[displayValue setLocalizedTexts:localizedTextsList];
+[choices setDisplayValue:displayValue];
+[choicesList addObject: choices];
+MSGraphAccessPackageAnswerChoice *choices = [[MSGraphAccessPackageAnswerChoice alloc] init];
+[choices setActualValue:@"OH"];
+MSGraphAccessPackageLocalizedContent *displayValue = [[MSGraphAccessPackageLocalizedContent alloc] init];
+NSMutableArray *localizedTextsList = [[NSMutableArray alloc] init];
+MSGraphAccessPackageLocalizedText *localizedTexts = [[MSGraphAccessPackageLocalizedText alloc] init];
+[localizedTexts setText:@"Ohio"];
+[localizedTexts setLanguageCode:@"es"];
+[localizedTextsList addObject: localizedTexts];
+[displayValue setLocalizedTexts:localizedTextsList];
+[choices setDisplayValue:displayValue];
+[choicesList addObject: choices];
+[questions setChoices:choicesList];
+[questions setAllowsMultipleSelection: false];
+[questionsList addObject: questions];
+MSGraphAccessPackageQuestion *questions = [[MSGraphAccessPackageQuestion alloc] init];
+[questions setIsRequired: false];
+MSGraphAccessPackageLocalizedContent *text = [[MSGraphAccessPackageLocalizedContent alloc] init];
+[text setDefaultText:@"Who is your manager?"];
+NSMutableArray *localizedTextsList = [[NSMutableArray alloc] init];
+MSGraphAccessPackageLocalizedText *localizedTexts = [[MSGraphAccessPackageLocalizedText alloc] init];
+[localizedTexts setText:@"por qué necesita acceso a este paquete"];
+[localizedTexts setLanguageCode:@"es"];
+[localizedTextsList addObject: localizedTexts];
+[text setLocalizedTexts:localizedTextsList];
+[questions setText:text];
+[questions setIsSingleLineQuestion: false];
+[questionsList addObject: questions];
+[accessPackageAssignmentPolicy setQuestions:questionsList];
+
+NSError *error;
+NSData *accessPackageAssignmentPolicyData = [accessPackageAssignmentPolicy getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:accessPackageAssignmentPolicyData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-accesspackageassignmentrequest-from-accesspackageassignmentrequests-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-accesspackageassignmentrequest-from-accesspackageassignmentrequests-objc-snippets.md
@@ -12,12 +12,26 @@ NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URL
[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"]; MSGraphAccessPackageAssignmentRequest *accessPackageAssignmentRequest = [[MSGraphAccessPackageAssignmentRequest alloc] init];
-[accessPackageAssignmentRequest setRequestType:@"AdminAdd"];
+[accessPackageAssignmentRequest setRequestType:@"UserAdd"];
MSGraphAccessPackageAssignment *accessPackageAssignment = [[MSGraphAccessPackageAssignment alloc] init]; [accessPackageAssignment setTargetId:@"46184453-e63b-4f20-86c2-c557ed5d5df9"]; [accessPackageAssignment setAssignmentPolicyId:@"2264bf65-76ba-417b-a27d-54d291f0cbc8"]; [accessPackageAssignment setAccessPackageId:@"a914b616-e04e-476b-aa37-91038f0b165b"]; [accessPackageAssignmentRequest setAccessPackageAssignment:accessPackageAssignment];
+NSMutableArray *answersList = [[NSMutableArray alloc] init];
+MSGraphAccessPackageAnswer *answers = [[MSGraphAccessPackageAnswer alloc] init];
+[answers setValue:@"Arizona"];
+MSGraphAccessPackageQuestion *answeredQuestion = [[MSGraphAccessPackageQuestion alloc] init];
+[answeredQuestion setId:@"A714EC6F-4EE0-4614-BD81-37E0C5ECBBFF"];
+[answers setAnsweredQuestion:answeredQuestion];
+[answersList addObject: answers];
+MSGraphAccessPackageAnswer *answers = [[MSGraphAccessPackageAnswer alloc] init];
+[answers setValue:@"Need access to marketing campaign material"];
+MSGraphAccessPackageQuestion *answeredQuestion = [[MSGraphAccessPackageQuestion alloc] init];
+[answeredQuestion setId:@"AA615EE9-D9D8-4C03-BE91-BEE37106DEDA"];
+[answers setAnsweredQuestion:answeredQuestion];
+[answersList addObject: answers];
+[accessPackageAssignmentRequest setAnswers:answersList];
NSError *error; NSData *accessPackageAssignmentRequestData = [accessPackageAssignmentRequest getSerializedDataWithError:&error];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-accessreviewscheduledefinition-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-accessreviewscheduledefinition-objc-snippets.md new file mode 100644
@@ -0,0 +1,63 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identityGovernance/accessReviews/definitions"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphAccessReviewScheduleDefinition *accessReviewScheduleDefinition = [[MSGraphAccessReviewScheduleDefinition alloc] init];
+[accessReviewScheduleDefinition setDisplayName:@"Test create"];
+[accessReviewScheduleDefinition setDescriptionForAdmins:@"New scheduled access review"];
+[accessReviewScheduleDefinition setDescriptionForReviewers:@"If you have any questions, contact jerry@contoso.com"];
+MSGraphAccessReviewScope *scope = [[MSGraphAccessReviewScope alloc] init];
+[scope setQuery:@"/groups/b7a059cb-038a-4802-8fc9-b9d1ed0c4444/transitiveMembers"];
+[scope setQueryType:@"MicrosoftGraph"];
+[accessReviewScheduleDefinition setScope:scope];
+NSMutableArray *reviewersList = [[NSMutableArray alloc] init];
+MSGraphAccessReviewReviewerScope *reviewers = [[MSGraphAccessReviewReviewerScope alloc] init];
+[reviewers setQuery:@"/users/7eae4444-d425-48b2-adf2-3c777f6256f3"];
+[reviewers setQueryType:@"MicrosoftGraph"];
+[reviewers setQueryRoot:@"decisions"];
+[reviewersList addObject: reviewers];
+[accessReviewScheduleDefinition setReviewers:reviewersList];
+MSGraphAccessReviewScheduleSettings *settings = [[MSGraphAccessReviewScheduleSettings alloc] init];
+[settings setMailNotificationsEnabled: true];
+[settings setReminderNotificationsEnabled: true];
+[settings setJustificationRequiredOnApproval: true];
+[settings setDefaultDecisionEnabled: false];
+[settings setDefaultDecision:@"None"];
+[settings setInstanceDurationInDays: 1];
+[settings setAutoApplyDecisionsEnabled: false];
+[settings setRecommendationsEnabled: true];
+MSGraphPatternedRecurrence *recurrence = [[MSGraphPatternedRecurrence alloc] init];
+MSGraphRecurrencePattern *pattern = [[MSGraphRecurrencePattern alloc] init];
+[pattern setType: [MSGraphRecurrencePatternType weekly]];
+[pattern setInterval: 1];
+[recurrence setPattern:pattern];
+MSGraphRecurrenceRange *range = [[MSGraphRecurrenceRange alloc] init];
+[range setType: [MSGraphRecurrenceRangeType noEnd]];
+[range setStartDate: "2020-09-08T12:02:30.667Z"];
+[recurrence setRange:range];
+[settings setRecurrence:recurrence];
+[accessReviewScheduleDefinition setSettings:settings];
+
+NSError *error;
+NSData *accessReviewScheduleDefinitionData = [accessReviewScheduleDefinition getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:accessReviewScheduleDefinitionData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-application-from-connectorgroup-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-application-from-connectorgroup-objc-snippets.md new file mode 100644
@@ -0,0 +1,29 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/applications/{id}/connectorGroup/$ref"]]];
+[urlRequest setHTTPMethod:@"PUT"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphConnectorGroup *connectorGroup = [[MSGraphConnectorGroup alloc] init];
+
+NSError *error;
+NSData *connectorGroupData = [connectorGroup getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:connectorGroupData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-calendar-from-calendargroup-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-calendar-from-calendargroup-objc-snippets.md new file mode 100644
@@ -0,0 +1,30 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/calendargroups/AAMkADYAAAR9NR5AAA=/calendars"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphCalendar *calendar = [[MSGraphCalendar alloc] init];
+[calendar setName:@"Marketing calendar"];
+
+NSError *error;
+NSData *calendarData = [calendar getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:calendarData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-channel-for-migration-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-channel-for-migration-objc-snippets.md new file mode 100644
@@ -0,0 +1,34 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/teams/57fb72d0-d811-46f4-8947-305e6072eaa5/channels"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphChannel *channel = [[MSGraphChannel alloc] init];
+[channel set@microsoft.graph.channelCreationMode:@"migration"];
+[channel setDisplayName:@"Architecture Discussion"];
+[channel setDescription:@"This channel is where we debate all future architecture plans"];
+[channel setMembershipType: [MSGraphChannelMembershipType standard]];
+[channel setCreatedDateTime: "2020-03-14T11:22:17.067Z"];
+
+NSError *error;
+NSData *channelData = [channel getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:channelData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-channel-from-group-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-channel-from-group-objc-snippets.md
@@ -7,7 +7,7 @@ description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/teams/{id}/channels"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/teams/57fb72d0-d811-46f4-8947-305e6072eaa5/channels"]]];
[urlRequest setHTTPMethod:@"POST"]; [urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-channel-with-moderation-settings-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-channel-with-moderation-settings-objc-snippets.md new file mode 100644
@@ -0,0 +1,38 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/teams/57fb72d0-d811-46f4-8947-305e6072eaa5/channels"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphChannel *channel = [[MSGraphChannel alloc] init];
+[channel setDisplayName:@"TestChannelModeration"];
+[channel setDescription:@"Test channel moderation."];
+[channel setMembershipType: [MSGraphChannelMembershipType standard]];
+MSGraphChannelModerationSettings *moderationSettings = [[MSGraphChannelModerationSettings alloc] init];
+[moderationSettings setUserNewMessageRestriction: [MSGraphUserNewMessageRestriction everyoneExceptGuests]];
+[moderationSettings setReplyRestriction: [MSGraphReplyRestriction everyone]];
+[moderationSettings setAllowNewMessageFromBots: true];
+[moderationSettings setAllowNewMessageFromConnectors: true];
+[channel setModerationSettings:moderationSettings];
+
+NSError *error;
+NSData *channelData = [channel getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:channelData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-chat-group-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-chat-group-objc-snippets.md new file mode 100644
@@ -0,0 +1,48 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/chats"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphChat *chat = [[MSGraphChat alloc] init];
+[chat setChatType: [MSGraphChatType group]];
+[chat setTopic:@"Group chat title"];
+NSMutableArray *membersList = [[NSMutableArray alloc] init];
+MSGraphConversationMember *members = [[MSGraphConversationMember alloc] init];
+NSMutableArray *rolesList = [[NSMutableArray alloc] init];
+[rolesList addObject: @"owner"];
+[members setRoles:rolesList];
+[membersList addObject: members];
+MSGraphConversationMember *members = [[MSGraphConversationMember alloc] init];
+NSMutableArray *rolesList = [[NSMutableArray alloc] init];
+[rolesList addObject: @"owner"];
+[members setRoles:rolesList];
+[membersList addObject: members];
+MSGraphConversationMember *members = [[MSGraphConversationMember alloc] init];
+NSMutableArray *rolesList = [[NSMutableArray alloc] init];
+[rolesList addObject: @"owner"];
+[members setRoles:rolesList];
+[membersList addObject: members];
+[chat setMembers:membersList];
+
+NSError *error;
+NSData *chatData = [chat getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:chatData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-chat-oneonone-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-chat-oneonone-objc-snippets.md new file mode 100644
@@ -0,0 +1,42 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/chats"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphChat *chat = [[MSGraphChat alloc] init];
+[chat setChatType: [MSGraphChatType oneOnOne]];
+NSMutableArray *membersList = [[NSMutableArray alloc] init];
+MSGraphConversationMember *members = [[MSGraphConversationMember alloc] init];
+NSMutableArray *rolesList = [[NSMutableArray alloc] init];
+[rolesList addObject: @"owner"];
+[members setRoles:rolesList];
+[membersList addObject: members];
+MSGraphConversationMember *members = [[MSGraphConversationMember alloc] init];
+NSMutableArray *rolesList = [[NSMutableArray alloc] init];
+[rolesList addObject: @"owner"];
+[members setRoles:rolesList];
+[membersList addObject: members];
+[chat setMembers:membersList];
+
+NSError *error;
+NSData *chatData = [chat getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:chatData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-chatmessage-from-chat-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-chatmessage-from-chat-objc-snippets.md
@@ -7,7 +7,7 @@ description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/teams/{id}/channels/{id}/messages"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/chats/{id}/messages"]]];
[urlRequest setHTTPMethod:@"POST"]; [urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-connectorgroup-from-connector-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-connectorgroup-from-connector-objc-snippets.md new file mode 100644
@@ -0,0 +1,29 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/onPremisesPublishingProfiles/applicationProxy/connectors/{id}/memberOf/$ref"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphConnectorGroup *connectorGroup = [[MSGraphConnectorGroup alloc] init];
+
+NSError *error;
+NSData *connectorGroupData = [connectorGroup getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:connectorGroupData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-conversation-from-group-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-conversation-from-group-objc-snippets.md deleted file mode 100644
@@ -1,50 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groups/29981b6a-0e57-42dc-94c9-cd24f5306196/conversations"]]];
-[urlRequest setHTTPMethod:@"POST"];
-[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
-
-MSGraphConversation *conversation = [[MSGraphConversation alloc] init];
-[conversation setTopic:@"New head count"];
-NSMutableArray *threadsList = [[NSMutableArray alloc] init];
-MSGraphConversationThread *threads = [[MSGraphConversationThread alloc] init];
-NSMutableArray *postsList = [[NSMutableArray alloc] init];
-MSGraphPost *posts = [[MSGraphPost alloc] init];
-MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
-[body setContentType: [MSGraphBodyType html]];
-[body setContent:@"The confirmation will come by the end of the week."];
-[posts setBody:body];
-NSMutableArray *newParticipantsList = [[NSMutableArray alloc] init];
-MSGraphRecipient *newParticipants = [[MSGraphRecipient alloc] init];
-MSGraphEmailAddress *emailAddress = [[MSGraphEmailAddress alloc] init];
-[emailAddress setName:@"Adele Vance"];
-[emailAddress setAddress:@"AdeleV@contoso.onmicrosoft.com"];
-[newParticipants setEmailAddress:emailAddress];
-[newParticipantsList addObject: newParticipants];
-[posts setNewParticipants:newParticipantsList];
-[postsList addObject: posts];
-[threads setPosts:postsList];
-[threadsList addObject: threads];
-[conversation setThreads:threadsList];
-
-NSError *error;
-NSData *conversationData = [conversation getSerializedDataWithError:&error];
-[urlRequest setHTTPBody:conversationData];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- //Request Completed
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-conversation-member-with-all-visiblehistorystartdatetime-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-conversation-member-with-all-visiblehistorystartdatetime-objc-snippets.md new file mode 100644
@@ -0,0 +1,30 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/chats/19:cf66807577b149cca1b7af0c32eec122@thread.v2/members"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphConversationMember *conversationMember = [[MSGraphConversationMember alloc] init];
+[conversationMember setVisibleHistoryStartDateTime: "0001-01-01T00:00:00Z"];
+
+NSError *error;
+NSData *conversationMemberData = [conversationMember getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:conversationMemberData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-conversation-member-with-no-visiblehistorystartdatetime-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-conversation-member-with-no-visiblehistorystartdatetime-objc-snippets.md new file mode 100644
@@ -0,0 +1,29 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/chats/19:cf66807577b149cca1b7af0c32eec122@thread.v2/members"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphConversationMember *conversationMember = [[MSGraphConversationMember alloc] init];
+
+NSError *error;
+NSData *conversationMemberData = [conversationMember getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:conversationMemberData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-conversation-member-with-specific-visiblehistorystartdatetime-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-conversation-member-with-specific-visiblehistorystartdatetime-objc-snippets.md new file mode 100644
@@ -0,0 +1,30 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/chats/19:cf66807577b149cca1b7af0c32eec122@thread.v2/members"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphConversationMember *conversationMember = [[MSGraphConversationMember alloc] init];
+[conversationMember setVisibleHistoryStartDateTime: "2019-04-18T23:51:43.255Z"];
+
+NSError *error;
+NSData *conversationMemberData = [conversationMember getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:conversationMemberData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-event-recurring-daily-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-event-recurring-daily-objc-snippets.md deleted file mode 100644
@@ -1,66 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/events"]]];
-[urlRequest setHTTPMethod:@"POST"];
-[urlRequest setValue:@"outlook.timezone=\"Pacific Standard Time\"" forHTTPHeaderField:@"Prefer"];
-[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
-
-MSGraphEvent *event = [[MSGraphEvent alloc] init];
-[event setSubject:@"Let's go for lunch"];
-MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
-[body setContentType: [MSGraphBodyType html]];
-[body setContent:@"Does noon work for you?"];
-[event setBody:body];
-MSGraphDateTimeTimeZone *start = [[MSGraphDateTimeTimeZone alloc] init];
-[start setDateTime: "2020-02-25T12:00:00"];
-[start setTimeZone:@"Pacific Standard Time"];
-[event setStart:start];
-MSGraphDateTimeTimeZone *end = [[MSGraphDateTimeTimeZone alloc] init];
-[end setDateTime: "2020-02-25T14:00:00"];
-[end setTimeZone:@"Pacific Standard Time"];
-[event setEnd:end];
-MSGraphLocation *location = [[MSGraphLocation alloc] init];
-[location setDisplayName:@"Harry's Bar"];
-[event setLocation:location];
-NSMutableArray *attendeesList = [[NSMutableArray alloc] init];
-MSGraphAttendee *attendees = [[MSGraphAttendee alloc] init];
-MSGraphEmailAddress *emailAddress = [[MSGraphEmailAddress alloc] init];
-[emailAddress setAddress:@"AlexW@contoso.OnMicrosoft.com"];
-[emailAddress setName:@"Alex Wilbur"];
-[attendees setEmailAddress:emailAddress];
-[attendees setType: [MSGraphAttendeeType required]];
-[attendeesList addObject: attendees];
-[event setAttendees:attendeesList];
-MSGraphPatternedRecurrence *recurrence = [[MSGraphPatternedRecurrence alloc] init];
-MSGraphRecurrencePattern *pattern = [[MSGraphRecurrencePattern alloc] init];
-[pattern setType: [MSGraphRecurrencePatternType daily]];
-[pattern setInterval: 1];
-[recurrence setPattern:pattern];
-MSGraphRecurrenceRange *range = [[MSGraphRecurrenceRange alloc] init];
-[range setType: [MSGraphRecurrenceRangeType numbered]];
-[range setStartDate:@"2020-02-25"];
-[range setNumberOfOccurrences: 2];
-[recurrence setRange:range];
-[event setRecurrence:recurrence];
-
-NSError *error;
-NSData *eventData = [event getSerializedDataWithError:&error];
-[urlRequest setHTTPBody:eventData];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- //Request Completed
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-item-attachment-from-event-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-item-attachment-from-event-objc-snippets.md deleted file mode 100644
@@ -1,45 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/events/{AAMkAGI1AAAt9AHjAAA=}/attachments"]]];
-[urlRequest setHTTPMethod:@"POST"];
-[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
-
-MSGraphAttachment *attachment = [[MSGraphAttachment alloc] init];
-[attachment setName:@"Holiday event"];
-MSGraphOutlookItem *item = [[MSGraphOutlookItem alloc] init];
-[item setSubject:@"Discuss gifts for children"];
-MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
-[body setContentType: [MSGraphBodyType html]];
-[body setContent:@"Let's look for funding!"];
-[item setBody:body];
-MSGraphDateTimeTimeZone *start = [[MSGraphDateTimeTimeZone alloc] init];
-[start setDateTime: "2016-12-02T18:00:00"];
-[start setTimeZone:@"Pacific Standard Time"];
-[item setStart:start];
-MSGraphDateTimeTimeZone *end = [[MSGraphDateTimeTimeZone alloc] init];
-[end setDateTime: "2016-12-02T19:00:00"];
-[end setTimeZone:@"Pacific Standard Time"];
-[item setEnd:end];
-[attachment setItem:item];
-
-NSError *error;
-NSData *attachmentData = [attachment getSerializedDataWithError:&error];
-[urlRequest setHTTPBody:attachmentData];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- //Request Completed
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-item-attachment-from-message-beta-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-item-attachment-from-message-beta-objc-snippets.md deleted file mode 100644
@@ -1,45 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/messages/AAMkpsDRVK/attachments"]]];
-[urlRequest setHTTPMethod:@"POST"];
-[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
-
-MSGraphAttachment *attachment = [[MSGraphAttachment alloc] init];
-[attachment setName:@"Holiday event"];
-MSGraphOutlookItem *item = [[MSGraphOutlookItem alloc] init];
-[item setSubject:@"Discuss gifts for children"];
-MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
-[body setContentType: [MSGraphBodyType html]];
-[body setContent:@"Let's look for funding!"];
-[item setBody:body];
-MSGraphDateTimeTimeZone *start = [[MSGraphDateTimeTimeZone alloc] init];
-[start setDateTime: "2016-12-02T18:00:00"];
-[start setTimeZone:@"Pacific Standard Time"];
-[item setStart:start];
-MSGraphDateTimeTimeZone *end = [[MSGraphDateTimeTimeZone alloc] init];
-[end setDateTime: "2016-12-02T19:00:00"];
-[end setTimeZone:@"Pacific Standard Time"];
-[item setEnd:end];
-[attachment setItem:item];
-
-NSError *error;
-NSData *attachmentData = [attachment getSerializedDataWithError:&error];
-[urlRequest setHTTPBody:attachmentData];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- //Request Completed
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-item-attachment-with-post-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-item-attachment-with-post-objc-snippets.md deleted file mode 100644
@@ -1,55 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groups/1848753d-185d-4c08-a4e4-6ee40521d115/threads/AAQkADJUdfolA==/reply"]]];
-[urlRequest setHTTPMethod:@"POST"];
-[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
-
-NSMutableDictionary *payloadDictionary = [[NSMutableDictionary alloc] init];
-
-MSGraphPost *post = [[MSGraphPost alloc] init];
-MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
-[body setContentType: [MSGraphBodyType text]];
-[body setContent:@"I attached an event."];
-[post setBody:body];
-NSMutableArray *attachmentsList = [[NSMutableArray alloc] init];
-MSGraphAttachment *attachments = [[MSGraphAttachment alloc] init];
-[attachments setName:@"Holiday event"];
-MSGraphOutlookItem *item = [[MSGraphOutlookItem alloc] init];
-[item setSubject:@"Discuss gifts for children"];
-MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
-[body setContentType: [MSGraphBodyType html]];
-[body setContent:@"Let's look for funding!"];
-[item setBody:body];
-MSGraphDateTimeTimeZone *start = [[MSGraphDateTimeTimeZone alloc] init];
-[start setDateTime: "2019-12-02T18:00:00"];
-[start setTimeZone:@"Pacific Standard Time"];
-[item setStart:start];
-MSGraphDateTimeTimeZone *end = [[MSGraphDateTimeTimeZone alloc] init];
-[end setDateTime: "2019-12-02T19:00:00"];
-[end setTimeZone:@"Pacific Standard Time"];
-[item setEnd:end];
-[attachments setItem:item];
-[attachmentsList addObject: attachments];
-[post setAttachments:attachmentsList];
-payloadDictionary[@"post"] = post;
-
-NSData *data = [NSJSONSerialization dataWithJSONObject:payloadDictionary options:kNilOptions error:&error];
-[urlRequest setHTTPBody:data];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- //Request Completed
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-private-channel-with-member-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-private-channel-with-member-objc-snippets.md new file mode 100644
@@ -0,0 +1,39 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/teams/57fb72d0-d811-46f4-8947-305e6072eaa5/channels"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphChannel *channel = [[MSGraphChannel alloc] init];
+[channel setMembershipType: [MSGraphChannelMembershipType private]];
+[channel setDisplayName:@"My First Private Channel"];
+[channel setDescription:@"This is my first private channels"];
+NSMutableArray *membersList = [[NSMutableArray alloc] init];
+MSGraphConversationMember *members = [[MSGraphConversationMember alloc] init];
+NSMutableArray *rolesList = [[NSMutableArray alloc] init];
+[rolesList addObject: @"owner"];
+[members setRoles:rolesList];
+[membersList addObject: members];
+[channel setMembers:membersList];
+
+NSError *error;
+NSData *channelData = [channel getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:channelData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/delete-alloweduser-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/delete-alloweduser-objc-snippets.md deleted file mode 100644
@@ -1,22 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/print/printers/{id}/allowedUsers/{id}/$ref"]]];
-[urlRequest setHTTPMethod:@"DELETE"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- //Request Completed
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/delete-conversation-member-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/delete-conversation-member-objc-snippets.md deleted file mode 100644
@@ -1,22 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/teams/{id}/channels/{id}/members/{id}"]]];
-[urlRequest setHTTPMethod:@"DELETE"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- //Request Completed
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/delete-members-from-chat-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/delete-members-from-chat-objc-snippets.md new file mode 100644
@@ -0,0 +1,22 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/chats/19:cf66807577b149cca1b7af0c32eec122@thread.v2/members/MCMjMjQzMmI1N2ItMGFiZC00M2RiLWFhN2ItMTZlYWRkMTE1ZDM0IyMxOTpiZDlkYTQ2MzIzYWY0MjUzOTZkMGZhNjcyMDAyODk4NEB0aHJlYWQudjIjIzQ4YmY5ZDUyLWRjYTctNGE1Zi04Mzk4LTM3Yjk1Y2M3YmQ4Mw=="]]];
+[urlRequest setHTTPMethod:@"DELETE"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-a-count-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-a-count-objc-snippets.md deleted file mode 100644
@@ -1,25 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/users?$filter=startswith(displayName,'a')&$orderby=displayName&$count=true&$top=1"]]];
-[urlRequest setHTTPMethod:@"GET"];
-[urlRequest setValue:@"eventual" forHTTPHeaderField:@"ConsistencyLevel"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphUser *user = [[MSGraphUser alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-chat-message-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-chat-message-objc-snippets.md
@@ -7,13 +7,13 @@ description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/users/{id}/chats/{id}"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/chats/{id}/messages/{id}"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphChat *chat = [[MSGraphChat alloc] initWithData:data error:&nserror];
+ MSGraphChatMessage *chatMessage = [[MSGraphChatMessage alloc] initWithData:data error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-chat-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-chat-objc-snippets.md new file mode 100644
@@ -0,0 +1,22 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5/chats/19:8b081ef6-4792-4def-b2c9-c363a1bf41d5_877192bd-9183-47d3-a74c-8aa0426716cf@unq.gbl.spaces"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ MSGraphChat *chat = [[MSGraphChat alloc] initWithData:data error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-conversation-member-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-conversation-member-objc-snippets.md
@@ -7,7 +7,7 @@ description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/chats/{id}/members/{id}"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/chats/19:cf66807577b149cca1b7af0c32eec122@thread.v2/members/141c574c-dd90-4131-b173-baf4bb0e894e"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-conversationmember-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-conversationmember-objc-snippets.md deleted file mode 100644
@@ -1,24 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/teams/ee0f5ae2-8bc6-4ae5-8466-7daeebbfa062/members"]]];
-[urlRequest setHTTPMethod:@"GET"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphConversationMember *conversationMember = [[MSGraphConversationMember alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-count-group-only-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-count-group-only-objc-snippets.md deleted file mode 100644
@@ -1,23 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/servicePrincipals/{id}/memberOf/microsoft.graph.group/$count"]]];
-[urlRequest setHTTPMethod:@"GET"];
-[urlRequest setValue:@"eventual" forHTTPHeaderField:@"ConsistencyLevel"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- MSGraphInt32 *int32 = [[MSGraphInt32 alloc] initWithData:data error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-count-only-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-count-only-objc-snippets.md deleted file mode 100644
@@ -1,23 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/users/$count"]]];
-[urlRequest setHTTPMethod:@"GET"];
-[urlRequest setValue:@"eventual" forHTTPHeaderField:@"ConsistencyLevel"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- MSGraphInt32 *int32 = [[MSGraphInt32 alloc] initWithData:data error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-count-user-only-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-count-user-only-objc-snippets.md deleted file mode 100644
@@ -1,23 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groups/{id}/members/microsoft.graph.user/$count"]]];
-[urlRequest setHTTPMethod:@"GET"];
-[urlRequest setValue:@"eventual" forHTTPHeaderField:@"ConsistencyLevel"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- MSGraphInt32 *int32 = [[MSGraphInt32 alloc] initWithData:data error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-event-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-event-objc-snippets.md
@@ -7,7 +7,7 @@ description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/events/AAMkAGIAAAoZDOFAAA=/?$select=subject,body,bodyPreview,organizer,attendees,start,end,location"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/events/AAMkAGIAAAoZDOFAAA=/?$select=subject,body,bodyPreview,organizer,attendees,start,end,location,hideAttendees"]]];
[urlRequest setHTTPMethod:@"GET"]; [urlRequest setValue:@"outlook.timezone=\"Pacific Standard Time\"" forHTTPHeaderField:@"Prefer"];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-groups-withlicenseerrors-count-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-groups-withlicenseerrors-count-objc-snippets.md deleted file mode 100644
@@ -1,25 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groups?$count=true&$filter=hasMembersWithLicenseErrors+eq+true&$select=id,displayName"]]];
-[urlRequest setHTTPMethod:@"GET"];
-[urlRequest setValue:@"eventual" forHTTPHeaderField:@"ConsistencyLevel"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphGroup *group = [[MSGraphGroup alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-phone-count-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-phone-count-objc-snippets.md deleted file mode 100644
@@ -1,25 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/contacts?$search=%22displayName:wa%22&$count=true"]]];
-[urlRequest setHTTPMethod:@"GET"];
-[urlRequest setValue:@"eventual" forHTTPHeaderField:@"ConsistencyLevel"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphOrgContact *orgContact = [[MSGraphOrgContact alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-pr-count-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-pr-count-objc-snippets.md deleted file mode 100644
@@ -1,25 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groups/{id}/members/microsoft.graph.user?$count=true&$orderby=displayName&$search=%22displayName:Pr%22&$select=displayName,id"]]];
-[urlRequest setHTTPMethod:@"GET"];
-[urlRequest setValue:@"eventual" forHTTPHeaderField:@"ConsistencyLevel"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphUser *user = [[MSGraphUser alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-printjob-withtasks-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-printjob-withtasks-objc-snippets.md deleted file mode 100644
@@ -1,22 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/print/printers/c05f3726-0d4b-4aa1-8fe9-2eb981bb26fb/jobs/5182?$expand=tasks"]]];
-[urlRequest setHTTPMethod:@"GET"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- MSGraphPrintJob *printJob = [[MSGraphPrintJob alloc] initWithData:data error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-team-count-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-team-count-objc-snippets.md deleted file mode 100644
@@ -1,25 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/servicePrincipals?$search=%22displayName:Team%22&$count=true"]]];
-[urlRequest setHTTPMethod:@"GET"];
-[urlRequest setValue:@"eventual" forHTTPHeaderField:@"ConsistencyLevel"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphServicePrincipal *servicePrincipal = [[MSGraphServicePrincipal alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-tier-count-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-tier-count-objc-snippets.md deleted file mode 100644
@@ -1,25 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/users/{id}/transitiveMemberOf/microsoft.graph.group?$count=true&$orderby=displayName&$search=%22displayName:tier%22&$select=displayName,id"]]];
-[urlRequest setHTTPMethod:@"GET"];
-[urlRequest setValue:@"eventual" forHTTPHeaderField:@"ConsistencyLevel"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphGroup *group = [[MSGraphGroup alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-unifiedroledefinition-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-unifiedroledefinition-objc-snippets.md deleted file mode 100644
@@ -1,22 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/roleManagement/directory/roleDefinitions/f189965f-f560-4c59-9101-933d4c87a91a"]]];
-[urlRequest setHTTPMethod:@"GET"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- MSGraphUnifiedRoleDefinition *unifiedRoleDefinition = [[MSGraphUnifiedRoleDefinition alloc] initWithData:data error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-user-memberof-count-only-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-user-memberof-count-only-objc-snippets.md deleted file mode 100644
@@ -1,23 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/users/{id}/memberOf/$count"]]];
-[urlRequest setHTTPMethod:@"GET"];
-[urlRequest setValue:@"eventual" forHTTPHeaderField:@"ConsistencyLevel"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- MSGraphInt32 *int32 = [[MSGraphInt32 alloc] initWithData:data error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-video-count-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-video-count-objc-snippets.md deleted file mode 100644
@@ -1,25 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groups/{id}/memberOf/microsoft.graph.group?$count=true&$orderby=displayName&$search=%22displayName:Video%22"]]];
-[urlRequest setHTTPMethod:@"GET"];
-[urlRequest setValue:@"eventual" forHTTPHeaderField:@"ConsistencyLevel"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphGroup *group = [[MSGraphGroup alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-web-count-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-web-count-objc-snippets.md deleted file mode 100644
@@ -1,25 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/applications?$search=%22displayName:Web%22&$count=true"]]];
-[urlRequest setHTTPMethod:@"GET"];
-[urlRequest setValue:@"eventual" forHTTPHeaderField:@"ConsistencyLevel"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphApplication *application = [[MSGraphApplication alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/identityuserflowattributeassignment-setorder-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/identityuserflowattributeassignment-setorder-objc-snippets.md new file mode 100644
@@ -0,0 +1,35 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identity/b2cUserFlows/{id}/userAttributeAssignments/setOrder"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+NSMutableDictionary *payloadDictionary = [[NSMutableDictionary alloc] init];
+
+MSGraphAssignmentOrder *newAssignmentOrder = [[MSGraphAssignmentOrder alloc] init];
+NSMutableArray *orderList = [[NSMutableArray alloc] init];
+[orderList addObject: @"City"];
+[orderList addObject: @"extension_GUID_ShoeSize"];
+[newAssignmentOrder setOrder:orderList];
+payloadDictionary[@"newAssignmentOrder"] = newAssignmentOrder;
+
+NSData *data = [NSJSONSerialization dataWithJSONObject:payloadDictionary options:kNilOptions error:&error];
+[urlRequest setHTTPBody:data];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/list-chats-expand-members-and-filter-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/list-chats-expand-members-and-filter-objc-snippets.md new file mode 100644
@@ -0,0 +1,24 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5/chats?$expand=members&$filter=members/any(o:%20o/displayname%20eq%20'Peter%20Parker')"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphChat *chat = [[MSGraphChat alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/list-chats-expand-members-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/list-chats-expand-members-objc-snippets.md new file mode 100644
@@ -0,0 +1,24 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5/chats?$expand=members"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphChat *chat = [[MSGraphChat alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/list-chats-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/list-chats-objc-snippets.md new file mode 100644
@@ -0,0 +1,24 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5/chats"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphChat *chat = [[MSGraphChat alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/list-conversation-members-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/list-conversation-members-objc-snippets.md
@@ -7,7 +7,7 @@ description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/chats/{id}/members"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/chats/19:8b081ef6-4792-4def-b2c9-c363a1bf41d5_5031bb31-22c0-4f6f-9f73-91d34ab2b32d@unq.gbl.spaces/members"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/list-installed-apps-in-chat-expand-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/list-installed-apps-in-chat-expand-objc-snippets.md deleted file mode 100644
@@ -1,24 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/chats/19:d65713bc498c4a428c71ef9353e6ce20@thread.v2/installedApps"]]];
-[urlRequest setHTTPMethod:@"GET"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphTeamsAppInstallation *teamsAppInstallation = [[MSGraphTeamsAppInstallation alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/list-installed-teams-apps-expand-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/list-installed-teams-apps-expand-objc-snippets.md deleted file mode 100644
@@ -1,24 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/teams/6903fa93-605b-43ef-920e-77c4729f8258/installedApps?$expand=teamsAppDefinition"]]];
-[urlRequest setHTTPMethod:@"GET"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphTeamsAppInstallation *teamsAppInstallation = [[MSGraphTeamsAppInstallation alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/list-teamsapp-with-filter-expand-appdefinitions-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/list-teamsapp-with-filter-expand-appdefinitions-objc-snippets.md new file mode 100644
@@ -0,0 +1,24 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/appCatalogs/teamsApps?$filter=id%20eq%20'876df28f-2e78-423b-94a5-44181bd0e225'&$expand=appDefinitions"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphTeamsApp *teamsApp = [[MSGraphTeamsApp alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/patch-channel-with-moderationsettings-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/patch-channel-with-moderationsettings-objc-snippets.md new file mode 100644
@@ -0,0 +1,37 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/teams/{team-id}/channels/{channel-id}"]]];
+[urlRequest setHTTPMethod:@"PATCH"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphChannel *channel = [[MSGraphChannel alloc] init];
+[channel setDisplayName:@"UpdateChannelModeration"];
+[channel setDescription:@"Update channel moderation."];
+MSGraphChannelModerationSettings *moderationSettings = [[MSGraphChannelModerationSettings alloc] init];
+[moderationSettings setUserNewMessageRestriction: [MSGraphUserNewMessageRestriction moderators]];
+[moderationSettings setReplyRestriction: [MSGraphReplyRestriction everyone]];
+[moderationSettings setAllowNewMessageFromBots: true];
+[moderationSettings setAllowNewMessageFromConnectors: true];
+[channel setModerationSettings:moderationSettings];
+
+NSError *error;
+NSData *channelData = [channel getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:channelData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/permission-revokegrants-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/permission-revokegrants-objc-snippets.md new file mode 100644
@@ -0,0 +1,34 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/drive/items/{item-id}/permissions/{perm-id}/revokeGrants"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+NSMutableDictionary *payloadDictionary = [[NSMutableDictionary alloc] init];
+
+NSMutableArray *granteesList = [[NSMutableArray alloc] init];
+MSGraphDriveRecipient *grantees = [[MSGraphDriveRecipient alloc] init];
+[grantees setEmail:@"ryan@contoso.com"];
+[granteesList addObject: grantees];
+payloadDictionary[@"grantees"] = granteesList;
+
+NSData *data = [NSJSONSerialization dataWithJSONObject:payloadDictionary options:kNilOptions error:&error];
+[urlRequest setHTTPBody:data];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/printer-resetdefaults-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/printer-resetdefaults-objc-snippets.md deleted file mode 100644
@@ -1,22 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/print/printers/{id}/resetDefaults"]]];
-[urlRequest setHTTPMethod:@"POST"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- //Request Completed
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/printjob-cancelprintjob-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/printjob-cancelprintjob-objc-snippets.md deleted file mode 100644
@@ -1,22 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/print/printers/{id}/jobs/{id}/cancelPrintJob"]]];
-[urlRequest setHTTPMethod:@"POST"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- //Request Completed
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/printjob-update-configuration-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/printjob-update-configuration-objc-snippets.md new file mode 100644
@@ -0,0 +1,57 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/print/printers/d5ef6ec4-07ca-4212-baf9-d45be126bfbb/jobs/44353/configuration"]]];
+[urlRequest setHTTPMethod:@"POST"];
+
+MSGraphPrintJobConfiguration *printJobConfiguration = [[MSGraphPrintJobConfiguration alloc] init];
+[printJobConfiguration setFeedOrientation: [MSGraphPrinterFeedOrientation longEdgeFirst]];
+NSMutableArray *pageRangesList = [[NSMutableArray alloc] init];
+MSGraphIntegerRange *pageRanges = [[MSGraphIntegerRange alloc] init];
+[pageRanges setStart: 1];
+[pageRanges setEnd: 1];
+[pageRangesList addObject: pageRanges];
+[printJobConfiguration setPageRanges:pageRangesList];
+[printJobConfiguration setQuality: [MSGraphPrintQuality medium]];
+[printJobConfiguration setDpi: 600];
+[printJobConfiguration setOrientation: [MSGraphPrintOrientation landscape]];
+[printJobConfiguration setCopies: 1];
+[printJobConfiguration setDuplexMode: [MSGraphPrintDuplexMode oneSided]];
+[printJobConfiguration setColorMode: [MSGraphPrintColorMode blackAndWhite]];
+[printJobConfiguration setInputBin:@"by-pass-tray"];
+[printJobConfiguration setOutputBin:@"output-tray"];
+[printJobConfiguration setMediaSize:@"A4"];
+MSGraphPrintMargin *margin = [[MSGraphPrintMargin alloc] init];
+[margin setTop: 0];
+[margin setBottom: 0];
+[margin setLeft: 0];
+[margin setRight: 0];
+[printJobConfiguration setMargin:margin];
+[printJobConfiguration setMediaType:@"stationery"];
+[printJobConfiguration setFinishings: null];
+[printJobConfiguration setPagesPerSheet: 1];
+[printJobConfiguration setMultipageLayout: [MSGraphPrintMultipageLayout clockwiseFromBottomLeft]];
+[printJobConfiguration setCollate: false];
+[printJobConfiguration setScaling: [MSGraphPrintScaling shrinkToFit]];
+[printJobConfiguration setFitPdfToPage: false];
+
+NSError *error;
+NSData *printJobConfigurationData = [printJobConfiguration getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:printJobConfigurationData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/synchronizationjob-provisionondemand-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/synchronizationjob-provisionondemand-objc-snippets.md new file mode 100644
@@ -0,0 +1,40 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/servicePrincipals/{servicePrincipalsId}/synchronization/jobs/{synchronizationJobId}/provisionOnDemand"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+NSMutableDictionary *payloadDictionary = [[NSMutableDictionary alloc] init];
+
+NSMutableArray *parametersList = [[NSMutableArray alloc] init];
+MSGraphSynchronizationJobApplicationParameters *parameters = [[MSGraphSynchronizationJobApplicationParameters alloc] init];
+NSMutableArray *subjectsList = [[NSMutableArray alloc] init];
+MSGraphSynchronizationJobSubject *subjects = [[MSGraphSynchronizationJobSubject alloc] init];
+[subjects setObjectId:@"9bb0f679-a883-4a6f-8260-35b491b8b8c8"];
+[subjects setObjectTypeName:@"User"];
+[subjectsList addObject: subjects];
+[parameters setSubjects:subjectsList];
+[parameters setRuleId:@"ea807875-5618-4f0a-9125-0b46a05298ca"];
+[parametersList addObject: parameters];
+payloadDictionary[@"parameters"] = parametersList;
+
+NSData *data = [NSJSONSerialization dataWithJSONObject:payloadDictionary options:kNilOptions error:&error];
+[urlRequest setHTTPBody:data];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/team-sendactivitynotification-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/team-sendactivitynotification-objc-snippets.md new file mode 100644
@@ -0,0 +1,48 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/users/{userId}/teamwork/sendActivityNotification"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+NSMutableDictionary *payloadDictionary = [[NSMutableDictionary alloc] init];
+
+MSGraphTeamworkActivityTopic *topic = [[MSGraphTeamworkActivityTopic alloc] init];
+[topic setSource: [MSGraphTeamworkActivityTopicSource text]];
+[topic setValue:@"Deployment Approvals Channel"];
+[topic setWebUrl:@"https://teams.microsoft.com/l/message/19:448cfd2ac2a7490a9084a9ed14cttr78c@thread.skype/1605223780000?tenantId=c8b1bf45-3834-4ecf-971a-b4c755ee677d&groupId=d4c2a937-f097-435a-bc91-5c1683ca7245&parentMessageId=1605223771864&teamName=Approvals&channelName=Azure%20DevOps&createdTime=1605223780000"];
+payloadDictionary[@"topic"] = topic;
+
+NSString *activityType = @"deploymentApprovalRequired";
+payloadDictionary[@"activityType"] = activityType;
+
+MSGraphItemBody *previewText = [[MSGraphItemBody alloc] init];
+[previewText setContent:@"New deployment requires your approval"];
+payloadDictionary[@"previewText"] = previewText;
+
+NSMutableArray *templateParametersList = [[NSMutableArray alloc] init];
+MSGraphKeyValuePair *templateParameters = [[MSGraphKeyValuePair alloc] init];
+[templateParameters setName:@"deploymentId"];
+[templateParameters setValue:@"6788662"];
+[templateParametersList addObject: templateParameters];
+payloadDictionary[@"templateParameters"] = templateParametersList;
+
+NSData *data = [NSJSONSerialization dataWithJSONObject:payloadDictionary options:kNilOptions error:&error];
+[urlRequest setHTTPBody:data];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-accesspackageassignmentpolicy-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/update-accesspackageassignmentpolicy-objc-snippets.md
@@ -13,27 +13,97 @@ NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URL
MSGraphAccessPackageAssignmentPolicy *accessPackageAssignmentPolicy = [[MSGraphAccessPackageAssignmentPolicy alloc] init]; [accessPackageAssignmentPolicy setId:@"b2eba9a1-b357-42ee-83a8-336522ed6cbf"];
-[accessPackageAssignmentPolicy setAccessPackageId:@"1b153a13-76da-4d07-9afa-c6c2b1f2e824"];
+[accessPackageAssignmentPolicy setAccessPackageId:@"4c02f928-7752-49aa-8fc8-e286d973a965"];
[accessPackageAssignmentPolicy setDisplayName:@"All Users"]; [accessPackageAssignmentPolicy setDescription:@"All users can request for access to the directory."];
-[accessPackageAssignmentPolicy setIsDenyPolicy: false];
[accessPackageAssignmentPolicy setCanExtend: false]; [accessPackageAssignmentPolicy setDurationInDays: 365];
+[accessPackageAssignmentPolicy setExpirationDateTime: null];
MSGraphRequestorSettings *requestorSettings = [[MSGraphRequestorSettings alloc] init];
-[requestorSettings setScopeType:@"AllExistingDirectorySubjects"];
+[requestorSettings setScopeType:@"AllExistingConnectedOrganizationSubjects"];
[requestorSettings setAcceptRequests: true]; NSMutableArray *allowedRequestorsList = [[NSMutableArray alloc] init]; [requestorSettings setAllowedRequestors:allowedRequestorsList]; [accessPackageAssignmentPolicy setRequestorSettings:requestorSettings]; MSGraphApprovalSettings *requestApprovalSettings = [[MSGraphApprovalSettings alloc] init];
-[requestApprovalSettings setIsApprovalRequired: false];
+[requestApprovalSettings setIsApprovalRequired: true];
[requestApprovalSettings setIsApprovalRequiredForExtension: false];
-[requestApprovalSettings setIsRequestorJustificationRequired: false];
-[requestApprovalSettings setApprovalMode:@"NoApproval"];
+[requestApprovalSettings setIsRequestorJustificationRequired: true];
+[requestApprovalSettings setApprovalMode:@"SingleStage"];
NSMutableArray *approvalStagesList = [[NSMutableArray alloc] init];
+MSGraphApprovalStage *approvalStages = [[MSGraphApprovalStage alloc] init];
+[approvalStages setApprovalStageTimeOutInDays: 14];
+[approvalStages setIsApproverJustificationRequired: true];
+[approvalStages setIsEscalationEnabled: true];
+[approvalStages setEscalationTimeInMinutes: 11520];
+NSMutableArray *primaryApproversList = [[NSMutableArray alloc] init];
+MSGraphUserSet *primaryApprovers = [[MSGraphUserSet alloc] init];
+[primaryApprovers setIsBackup: true];
+[primaryApprovers setId:@"d2dcb9a1-a445-42ee-83a8-476522ed6cbf"];
+[primaryApprovers setDescription:@"group for users from connected organizations which have no external sponsor"];
+[primaryApproversList addObject: primaryApprovers];
+MSGraphUserSet *primaryApprovers = [[MSGraphUserSet alloc] init];
+[primaryApprovers setIsBackup: false];
+[primaryApproversList addObject: primaryApprovers];
+[approvalStages setPrimaryApprovers:primaryApproversList];
+[approvalStagesList addObject: approvalStages];
[requestApprovalSettings setApprovalStages:approvalStagesList]; [accessPackageAssignmentPolicy setRequestApprovalSettings:requestApprovalSettings];
-[accessPackageAssignmentPolicy setAccessReviewSettings: null];
+MSGraphAssignmentReviewSettings *accessReviewSettings = [[MSGraphAssignmentReviewSettings alloc] init];
+[accessReviewSettings setIsEnabled: false];
+[accessPackageAssignmentPolicy setAccessReviewSettings:accessReviewSettings];
+NSMutableArray *questionsList = [[NSMutableArray alloc] init];
+MSGraphAccessPackageQuestion *questions = [[MSGraphAccessPackageQuestion alloc] init];
+[questions setIsRequired: false];
+MSGraphAccessPackageLocalizedContent *text = [[MSGraphAccessPackageLocalizedContent alloc] init];
+[text setDefaultText:@"what state are you from?"];
+NSMutableArray *localizedTextsList = [[NSMutableArray alloc] init];
+MSGraphAccessPackageLocalizedText *localizedTexts = [[MSGraphAccessPackageLocalizedText alloc] init];
+[localizedTexts setText:@"¿De qué estado eres?"];
+[localizedTexts setLanguageCode:@"es"];
+[localizedTextsList addObject: localizedTexts];
+[text setLocalizedTexts:localizedTextsList];
+[questions setText:text];
+NSMutableArray *choicesList = [[NSMutableArray alloc] init];
+MSGraphAccessPackageAnswerChoice *choices = [[MSGraphAccessPackageAnswerChoice alloc] init];
+[choices setActualValue:@"AZ"];
+MSGraphAccessPackageLocalizedContent *displayValue = [[MSGraphAccessPackageLocalizedContent alloc] init];
+NSMutableArray *localizedTextsList = [[NSMutableArray alloc] init];
+MSGraphAccessPackageLocalizedText *localizedTexts = [[MSGraphAccessPackageLocalizedText alloc] init];
+[localizedTexts setText:@"Arizona"];
+[localizedTexts setLanguageCode:@"es"];
+[localizedTextsList addObject: localizedTexts];
+[displayValue setLocalizedTexts:localizedTextsList];
+[choices setDisplayValue:displayValue];
+[choicesList addObject: choices];
+MSGraphAccessPackageAnswerChoice *choices = [[MSGraphAccessPackageAnswerChoice alloc] init];
+[choices setActualValue:@"CA"];
+MSGraphAccessPackageLocalizedContent *displayValue = [[MSGraphAccessPackageLocalizedContent alloc] init];
+NSMutableArray *localizedTextsList = [[NSMutableArray alloc] init];
+MSGraphAccessPackageLocalizedText *localizedTexts = [[MSGraphAccessPackageLocalizedText alloc] init];
+[localizedTexts setText:@"California"];
+[localizedTexts setLanguageCode:@"es"];
+[localizedTextsList addObject: localizedTexts];
+[displayValue setLocalizedTexts:localizedTextsList];
+[choices setDisplayValue:displayValue];
+[choicesList addObject: choices];
+[questions setChoices:choicesList];
+[questions setAllowsMultipleSelection: false];
+[questionsList addObject: questions];
+MSGraphAccessPackageQuestion *questions = [[MSGraphAccessPackageQuestion alloc] init];
+[questions setIsRequired: false];
+MSGraphAccessPackageLocalizedContent *text = [[MSGraphAccessPackageLocalizedContent alloc] init];
+[text setDefaultText:@"Who is your manager?"];
+NSMutableArray *localizedTextsList = [[NSMutableArray alloc] init];
+MSGraphAccessPackageLocalizedText *localizedTexts = [[MSGraphAccessPackageLocalizedText alloc] init];
+[localizedTexts setText:@"por qué necesita acceso a este paquete"];
+[localizedTexts setLanguageCode:@"es"];
+[localizedTextsList addObject: localizedTexts];
+[text setLocalizedTexts:localizedTextsList];
+[questions setText:text];
+[questions setIsSingleLineQuestion: false];
+[questionsList addObject: questions];
+[accessPackageAssignmentPolicy setQuestions:questionsList];
NSError *error; NSData *accessPackageAssignmentPolicyData = [accessPackageAssignmentPolicy getSerializedDataWithError:&error];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-b2cidentityuserflow-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/update-b2cidentityuserflow-objc-snippets.md new file mode 100644
@@ -0,0 +1,31 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identity/b2cUserFlows/B2C_1_CustomerSignUp"]]];
+[urlRequest setHTTPMethod:@"PATCH"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphB2cIdentityUserFlow *b2cIdentityUserFlow = [[MSGraphB2cIdentityUserFlow alloc] init];
+[b2cIdentityUserFlow setIsLanguageCustomizationEnabled: true];
+[b2cIdentityUserFlow setDefaultLanguageTag:@"en"];
+
+NSError *error;
+NSData *b2cIdentityUserFlowData = [b2cIdentityUserFlow getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:b2cIdentityUserFlowData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-chat-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/update-chat-objc-snippets.md new file mode 100644
@@ -0,0 +1,30 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/chats/19:1c5b01696d2e4a179c292bc9cf04e63b@thread.v2"]]];
+[urlRequest setHTTPMethod:@"PATCH"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphChat *chat = [[MSGraphChat alloc] init];
+[chat setTopic:@"Group chat title update"];
+
+NSError *error;
+NSData *chatData = [chat getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:chatData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/upgrade-teamsapp-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/upgrade-teamsapp-objc-snippets.md deleted file mode 100644
@@ -1,22 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/teams/{id}/installedApps/{id}/upgrade"]]];
-[urlRequest setHTTPMethod:@"POST"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- //Request Completed
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/user-list-teamsapps-details-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/user-list-teamsapps-details-objc-snippets.md deleted file mode 100644
@@ -1,24 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/users/{id}/teamwork/installedApps?$expand=teamsAppDefinition"]]];
-[urlRequest setHTTPMethod:@"GET"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphUserScopeTeamsAppInstallation *userScopeTeamsAppInstallation = [[MSGraphUserScopeTeamsAppInstallation alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/resources/aaduserconversationmember https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/aaduserconversationmember.md
@@ -26,7 +26,7 @@ Represents an Azure Active Directory user in a [team](team.md) or a [channel](ch
|[Update team member's role](../api/team-update-members.md)|[conversationMember](../resources/conversationmember.md)|Change a member to an owner or back to a regular member.| |[Remove team member](../api/team-delete-members.md)|None|Remove an existing member from the team.| |[List channel members](../api/channel-list-members.md) | [conversationMember](conversationmember.md) collection | Get the list of all members in a channel.|
-|[Add channel member](../api/channel-post-members.md) | [conversationMember](conversationmember.md) | Add a member to a channel. Only supported for `channel`with membershipType of `private`.|
+|[Add channel member](../api/channel-post-members.md) | [conversationMember](conversationmember.md) | Add a member to a channel. Only supported for `channel` with membershipType of `private`.|
|[Get channel member](../api/channel-get-members.md) | [conversationMember](conversationmember.md) collection | Get a member in a channel.| |[Update channel member's role](../api/channel-update-members.md) | [conversationMember](conversationmember.md) | Update the properties of a member of the channel. Only supported for channel with membershipType of `private`.| |[Remove channel member](../api/channel-delete-members.md) | None | Delete a member from a channel. Only supported for `channelType` of `private`.|
v1.0 https://docs.microsoft.com/en-us/graph/resources/device https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/device.md
@@ -60,6 +60,7 @@ This resource lets you add your own data to custom properties using [extensions]
|physicalIds|String collection| For internal use only. Not nullable. | |profileType|String|The profile type of the device. Possible values:<br />**RegisteredDevice** (default)<br />**SecureVM**<br />**Printer**<br />**Shared**<br />**IoT**| |systemLabels|String collection| List of labels applied to the device by the system. |
+|hostNames|String collection| List of hostNames for the device.|
|trustType|String| Type of trust for the joined device. Read-only. Possible values: <br />**Workplace** - indicates *bring your own personal devices*<br />**AzureAd** - Cloud only joined devices<br />**ServerAd** - on-premises domain joined devices joined to Azure AD. For more details, see [Introduction to device management in Azure Active Directory](/azure/active-directory/device-management-introduction) | |Name| String | Friendly name of a device. Only returned if user signs in with a Microsoft account as part of Project Rome. | |Status | String| Device is online or offline. Only returned if user signs in with a Microsoft account as part of Project Rome. |
@@ -114,6 +115,7 @@ The following is a JSON representation of the resource.
"physicalIds": ["string"], "profileType": "string", "systemLabels": ["string"],
+ "hostNames" : ["string"],
"trustType": "string", "Name": "string", "Status": "string",
v1.0 https://docs.microsoft.com/en-us/graph/resources/event https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/event.md
@@ -101,7 +101,6 @@ Here is a JSON representation of the resource
"singleValueExtendedProperties": [ { "@odata.type": "microsoft.graph.singleValueLegacyExtendedProperty" }], "multiValueExtendedProperties": [ { "@odata.type": "microsoft.graph.multiValueLegacyExtendedProperty" }] }- ``` ## Properties | Property | Type |Description|
@@ -230,4 +229,4 @@ Here is a JSON representation of the resource
"tocPath": "", "suppressions": [] }\ No newline at end of file
+-->
v1.0 https://docs.microsoft.com/en-us/graph/resources/mailfolder https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/mailfolder.md
@@ -2,7 +2,7 @@
title: "mailFolder resource type" description: "A mail folder in a user's mailbox, such as Inbox and Drafts. Mail folders can contain messages, other Outlook items, and child mail folders." localization_priority: Normal
-author: "svpsiva"
+author: "abheek-das"
ms.prod: "outlook" doc_type: resourcePageType ---
@@ -77,6 +77,7 @@ Well-known names work regardless of the locale of the user's mailbox, so the abo
|childFolderCount|Int32|The number of immediate child mailFolders in the current mailFolder.| |displayName|String|The mailFolder's display name.| |id|String|The mailFolder's unique identifier.|
+|isHidden|Boolean|Indicates whether the mailFolder is hidden. This property can be set only when creating the folder. Find more information in [Hidden mail folders](#hidden-mail-folders).|
|parentFolderId|String|The unique identifier for the mailFolder's parent mailFolder.| |totalItemCount|Int32|The number of items in the mailFolder.| |unreadItemCount|Int32|The number of items in the mailFolder marked as unread.|
@@ -93,6 +94,13 @@ https://outlook.office.com/api/beta/me/folders/inbox/messages?$count=true&$filte
Mail folders in Outlook can contain more than one type of items, for example, the Inbox can contain meeting request items which are distinct from mail items. `TotalItemCount` and `UnreadItemCount` include items in a mail folder irrespective of their item types.
+### Hidden mail folders
+The default value of the `isHidden` property is `false`. You can set **isHidden** only once when [creating the mailFolder](../api/user-post-mailfolders.md). You cannot update the property using a PATCH operation. To change the **isHidden** property of a folder, delete the existing folder and create a new one with the desired value.
+
+Hidden mail folders support all operations that are supported by a regular mail folder.
+
+By default, [listing mailFolders](../api/user-list-mailfolders.md) returns only mail folders that are not hidden. To include hidden mail folders in the response, use the query parameter `includeHiddenFolders=true`. Then use the **isHidden** property to identify whether a mail folder is hidden.
+ ## Relationships | Relationship | Type | Description |
@@ -129,6 +137,7 @@ The following is a JSON representation of the resource.
"totalItemCount": 1024, "unreadItemCount": 1024, "wellKnownName": "string",
+ "isHidden": false,
"childFolders": [ { "@odata.type": "microsoft.graph.mailFolder" } ], "messageRules": [ { "@odata.type": "microsoft.graph.messageRule" } ], "messages": [ { "@odata.type": "microsoft.graph.message" } ],
v1.0 https://docs.microsoft.com/en-us/graph/resources/search-api-overview https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/search-api-overview.md
@@ -159,9 +159,11 @@ Any combinations involving **message**, **event**, SharePoint and OneDrive types
- The search API does not support aggregations for **message**, **event**, **site** or **drive**.
+- Customizations in SharePoint search, such as a custom search schema or result sources, can interfere with the operation of the Microsoft Search API.
+ ## Schema change deprecation warning
-**In the beta version**, properties used in a search request and response have been renamed or removed. In most cases, the original properties are being deprecated and replaced by the current properties, as listed in the table below.
+**In the beta version**, properties used in a search request and response have been renamed or removed. In most cases, the original properties are being deprecated and replaced by the current properties, as listed in the following table.
Start updating any existing apps to use current property and type names, and to get current property names in the response. For backward compatibility, the original properties and types are accessible and functional until **December 31, 2020**, after which they will be removed.
@@ -177,7 +179,7 @@ For backward compatibility, the original properties and types are accessible and
| [searchHit](./searchhit.md) | Rename property | **_source** | **resource** | | [searchHit](./searchhit.md) | Rename property | **_summary** | **summary** |
-## Search samples
+## See also
- Learn more about a few key use cases: - [Search Outlook messages](/graph/search-concept-messages)
@@ -188,8 +190,4 @@ For backward compatibility, the original properties and types are accessible and
- [Refine search results](/graph/search-concept-aggregation) - Explore the search APIs in [Graph Explorer](https://developer.microsoft.com/graph/graph-explorer).--
-## What's new
-
-Find out about the [latest new features and updates](/graph/whats-new-overview) for this API set.
\ No newline at end of file
+- Find out about the [latest new features and updates](/graph/whats-new-overview) for this API set.
v1.0 https://docs.microsoft.com/en-us/graph/resources/termsexpiration https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/termsexpiration.md
@@ -21,7 +21,7 @@ Provides additional settings when setting the scheduled expiration of the agreem
| Property | Type | Description | | :--------------------------- | :------------------------ | :---------- | | startDateTime|DateTimeOffset | The DateTime when the agreement is set to expire for all users. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.|
-| frequency| Duration | This represents the frequency at which the terms will expire, after its first expiration as set in 'startDateTime'. The value is represented in ISO 8601 format for durations.|
+| frequency| Duration | Represents the frequency at which the terms will expire, after its first expiration as set in **startDateTime**. The value is represented in ISO 8601 format for durations. For example, `PT1M` represents a time period of 1 month.|
## JSON representation
@@ -39,7 +39,7 @@ The following is a JSON representation of this resource.
```json { "startDateTime": "2018-10-01T00:00:00.0000000Z",
- "frequency": ""
+ "frequency": "Duration"
} ```
v1.0 https://docs.microsoft.com/en-us/graph/api/calendargroup-post-calendars https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/calendargroup-post-calendars.md
@@ -82,6 +82,18 @@ Content-type: application/json
[!INCLUDE [sample-code](../includes/snippets/javascript/create-calendar-from-calendargroup-javascript-snippets.md)] [!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/create-calendar-from-calendargroup-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/create-calendar-from-calendargroup-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/create-calendar-from-calendargroup-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+ ---
v1.0 https://docs.microsoft.com/en-us/graph/api/directoryobject-getavailableextensionproperties https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/directoryobject-getavailableextensionproperties.md
@@ -74,6 +74,18 @@ Content-length: 43
[!INCLUDE [sample-code](../includes/snippets/javascript/directoryobject-getavailableextensionproperties-javascript-snippets.md)] [!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/directoryobject-getavailableextensionproperties-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/directoryobject-getavailableextensionproperties-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/directoryobject-getavailableextensionproperties-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+ ---
v1.0 https://docs.microsoft.com/en-us/graph/api/event-cancel https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/event-cancel.md
@@ -73,6 +73,8 @@ Here is an example of how to call this API.
##### Request Here is an example of the request. +
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "event_cancel"
@@ -85,6 +87,24 @@ Content-type: application/json
"Comment": "Cancelling for this week due to all hands" } ```
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/event-cancel-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/event-cancel-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/event-cancel-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/event-cancel-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
+ ##### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/event-forward https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/event-forward.md
@@ -70,6 +70,8 @@ Here is an example of how to call this API.
##### Request Here is an example of the request. +
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "event_forward"
@@ -92,6 +94,24 @@ Content-length: 56
} ```
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/event-forward-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/event-forward-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/event-forward-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/event-forward-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
+ ##### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/team-get-members https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/team-get-members.md
@@ -101,15 +101,16 @@ Content-type: application/json
Content-length: 201 {
-"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#teams('ece6f0a1-7ca4-498b-be79-edf6c8fc4d82')/members/microsoft.graph.aadUserConversationMember/$entity",
-"@odata.type": "#microsoft.graph.aadUserConversationMember",
-"id": "/ZWUwZjVhZTItOGJjNi00YWU1LTg0NjYtN2RhZWViYmZhMDYyIyM3Mzc2MWYwNi0yYWM5LTQ2OWMtOWYxMC0yNzlhOGNjMjY3Zjk=",
-"roles": ["owner"],
-"displayName": "John Doe",
-"userId": "8b081ef6-4792-4def-b2c9-c363a1bf41d5",
-"email": null
+ "@odata.context":"https://graph.microsoft.com/v1.0/$metadata#teams('ece6f0a1-7ca4-498b-be79-edf6c8fc4d82')/members/microsoft.graph.aadUserConversationMember/$entity",
+ "@odata.type":"#microsoft.graph.aadUserConversationMember",
+ "id":"/ZWUwZjVhZTItOGJjNi00YWU1LTg0NjYtN2RhZWViYmZhMDYyIyM3Mzc2MWYwNi0yYWM5LTQ2OWMtOWYxMC0yNzlhOGNjMjY3Zjk=",
+ "roles":[
+ "owner"
+ ],
+ "displayName":"John Doe",
+ "userId":"8b081ef6-4792-4def-b2c9-c363a1bf41d5",
+ "email":null
}- ``` <!-- uuid: 8fcb5dbc-d5aa-4681-8e31-b001d5168d79 2015-10-25 14:57:30 UTC -->
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/call-answer-service-hosted-media-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/call-answer-service-hosted-media-csharp-snippets.md deleted file mode 100644
@@ -1,38 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var callbackUri = "https://bot.contoso.com/api/calls";
-
-var acceptedModalities = new List<Modality>()
-{
- Modality.Audio
-};
-
-var mediaConfig = new ServiceHostedMediaConfig
-{
- PreFetchMedia = new List<MediaInfo>()
- {
- new MediaInfo
- {
- Uri = "https://cdn.contoso.com/beep.wav",
- ResourceId = "1D6DE2D4-CD51-4309-8DAA-70768651088E"
- },
- new MediaInfo
- {
- Uri = "https://cdn.contoso.com/cool.wav",
- ResourceId = "1D6DE2D4-CD51-4309-8DAA-70768651088F"
- }
- }
-};
-
-await graphClient.Communications.Calls["57DAB8B1894C409AB240BD8BEAE78896"]
- .Answer(callbackUri,mediaConfig,acceptedModalities)
- .Request()
- .PostAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-calendar-from-calendargroup-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/create-calendar-from-calendargroup-csharp-snippets.md new file mode 100644
@@ -0,0 +1,18 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var calendar = new Calendar
+{
+ Name = "Marketing calendar"
+};
+
+await graphClient.Me.CalendarGroups["AAMkADYAAAR9NR5AAA="].Calendars
+ .Request()
+ .AddAsync(calendar);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-conversation-from-group-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/create-conversation-from-group-csharp-snippets.md deleted file mode 100644
@@ -1,46 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var conversation = new Conversation
-{
- Topic = "New locations for this quarter",
- Threads = (IConversationThreadsCollectionPage)new List<ConversationThread>()
- {
- new ConversationThread
- {
- Posts = (IConversationThreadPostsCollectionPage)new List<Post>()
- {
- new Post
- {
- Body = new ItemBody
- {
- ContentType = BodyType.Html,
- Content = "What do we know so far?"
- },
- NewParticipants = new List<Recipient>()
- {
- new Recipient
- {
- EmailAddress = new EmailAddress
- {
- Name = "Adele Vance",
- Address = "AdeleV@contoso.onmicrosoft.com"
- }
- }
- }
- }
- }
- }
- }
-};
-
-await graphClient.Groups["29981b6a-0e57-42dc-94c9-cd24f5306196"].Conversations
- .Request()
- .AddAsync(conversation);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-member-from-group-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/create-member-from-group-csharp-snippets.md deleted file mode 100644
@@ -1,21 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var group = new Group
-{
- AdditionalData = new Dictionary<string, object>()
- {
- {"members@odata.bind", "[\"https://graph.microsoft.com/v1.0/directoryObjects/{id}\",\"https://graph.microsoft.com/v1.0/directoryObjects/{id}\",\"https://graph.microsoft.com/v1.0/directoryObjects/{id}\"]"}
- }
-};
-
-await graphClient.Groups["{id}"]
- .Request()
- .UpdateAsync(group);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-prepopulated-group-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/create-prepopulated-group-csharp-snippets.md deleted file mode 100644
@@ -1,31 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var group = new Group
-{
- Description = "Group with designated owner and members",
- DisplayName = "Operations group",
- GroupTypes = new List<String>()
- {
- "Unified"
- },
- MailEnabled = true,
- MailNickname = "operations2019",
- SecurityEnabled = false,
- AdditionalData = new Dictionary<string, object>()
- {
- {"owners@odata.bind", "[\"https://graph.microsoft.com/v1.0/users/26be1845-4119-4801-a799-aea79d09f1a2\"]"},
- {"members@odata.bind", "[\"https://graph.microsoft.com/v1.0/users/ff7cb387-6688-423c-8188-3da9532a73cc\",\"https://graph.microsoft.com/v1.0/users/69456242-0067-49d3-ba96-9de6f2728e14\"]"}
- }
-};
-
-await graphClient.Groups
- .Request()
- .AddAsync(group);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/delete-directoryobject-from-directoryrole-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/delete-directoryobject-from-directoryrole-csharp-snippets.md deleted file mode 100644
@@ -1,13 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-await graphClient.DirectoryRoles["{id}"].Members["{id}"].Reference
- .Request()
- .DeleteAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/directoryobject-getavailableextensionproperties-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/directoryobject-getavailableextensionproperties-csharp-snippets.md new file mode 100644
@@ -0,0 +1,16 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var isSyncedFromOnPremises = false;
+
+await graphClient.DirectoryObjects
+ .GetAvailableExtensionProperties(isSyncedFromOnPremises)
+ .Request()
+ .PostAsync();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/event-cancel-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/event-cancel-csharp-snippets.md new file mode 100644
@@ -0,0 +1,16 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var comment = "Cancelling for this week due to all hands";
+
+await graphClient.Me.Events["{id}"]
+ .Cancel(comment)
+ .Request()
+ .PostAsync();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/event-forward-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/event-forward-csharp-snippets.md new file mode 100644
@@ -0,0 +1,28 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var toRecipients = new List<Recipient>()
+{
+ new Recipient
+ {
+ EmailAddress = new EmailAddress
+ {
+ Address = "danas@contoso.onmicrosoft.com",
+ Name = "Dana Swope"
+ }
+ }
+};
+
+var comment = "Dana, hope you can make this meeting.";
+
+await graphClient.Me.Events["{id}"]
+ .Forward(toRecipients,comment)
+ .Request()
+ .PostAsync();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-a-count-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-a-count-csharp-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var users = await graphClient.Users
- .Request()
- .Header("ConsistencyLevel","eventual")
- .Filter("startswith(displayName,'a'),")
- .OrderBy("displayName ")
- .Top(1)
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-android-count-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-android-count-csharp-snippets.md deleted file mode 100644
@@ -1,15 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var devices = await graphClient.Devices
- .Request()
- .Header("ConsistencyLevel","eventual")
- .Search("displayName:Android")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-channels-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-channels-csharp-snippets.md deleted file mode 100644
@@ -1,13 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var channels = await graphClient.Teams["{id}"].Channels
- .Request()
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-conversationmember-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-conversationmember-csharp-snippets.md deleted file mode 100644
@@ -1,13 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var members = await graphClient.Teams["ee0f5ae2-8bc6-4ae5-8466-7daeebbfa062"].Members
- .Request()
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-count-group-only-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-count-group-only-csharp-snippets.md deleted file mode 100644
@@ -1,14 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var int32 = await graphClient.ServicePrincipals["{id}"].MemberOf.$count
- .Request()
- .Header("ConsistencyLevel","eventual")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-count-only-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-count-only-csharp-snippets.md deleted file mode 100644
@@ -1,14 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var int32 = await graphClient.Users.$count
- .Request()
- .Header("ConsistencyLevel","eventual")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-count-user-only-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-count-user-only-csharp-snippets.md deleted file mode 100644
@@ -1,14 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var int32 = await graphClient.Groups["{id}"].Members.$count
- .Request()
- .Header("ConsistencyLevel","eventual")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-directoryrole-members-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-directoryrole-members-csharp-snippets.md deleted file mode 100644
@@ -1,13 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var members = await graphClient.DirectoryRoles["{id}"].Members
- .Request()
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-event-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-event-csharp-snippets.md
@@ -9,7 +9,7 @@ GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var @event = await graphClient.Me.Events["AAMkAGIAAAoZDOFAAA="] .Request() .Header("Prefer","outlook.timezone=\"Pacific Standard Time\"")
- .Select("subject,body,bodyPreview,organizer,attendees,start,end,location")
+ .Select("subject,body,bodyPreview,organizer,attendees,start,end,location,hideAttendees")
.GetAsync(); ```\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-group-transitivemembers-count-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-group-transitivemembers-count-csharp-snippets.md deleted file mode 100644
@@ -1,14 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var int32 = await graphClient.Groups["{id}"].TransitiveMembers.$count
- .Request()
- .Header("ConsistencyLevel","eventual")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-groups-withlicenseerrors-count-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-groups-withlicenseerrors-count-csharp-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var groups = await graphClient.Groups
- .Request()
- .Header("ConsistencyLevel","eventual")
- .Filter("hasMembersWithLicenseErrors+eq+true,")
- .Select("id,displayName")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-groups-withlicenseerrors-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-groups-withlicenseerrors-csharp-snippets.md deleted file mode 100644
@@ -1,15 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var groups = await graphClient.Groups
- .Request()
- .Filter("hasMembersWithLicenseErrors+eq+true,")
- .Select("id,displayName")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-phone-count-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-phone-count-csharp-snippets.md deleted file mode 100644
@@ -1,15 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var contacts = await graphClient.Contacts
- .Request()
- .Header("ConsistencyLevel","eventual")
- .Search("displayName:wa")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-pr-count-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-pr-count-csharp-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var user = await graphClient.Groups["{id}"].Members
- .Request()
- .Header("ConsistencyLevel","eventual")
- .Search("displayName:Pr")
- .Select("displayName,id")
- .OrderBy("displayName ")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-signin-last-time-range-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-signin-last-time-range-csharp-snippets.md deleted file mode 100644
@@ -1,19 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var queryOptions = new List<QueryOption>()
-{
- new QueryOption("filter", "signInActivity/lastSignInDateTime le 2019-06-01T00:00:00Z")
-};
-
-var users = await graphClient.Users
- .Request( queryOptions )
- .Filter("signInActivity/lastSignInDateTime le 2019-06-01T00:00:00Z")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-team-count-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-team-count-csharp-snippets.md deleted file mode 100644
@@ -1,15 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var servicePrincipals = await graphClient.ServicePrincipals
- .Request()
- .Header("ConsistencyLevel","eventual")
- .Search("displayName:Team")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-tier-count-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-tier-count-csharp-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var group = await graphClient.Users["{id}"].TransitiveMemberOf
- .Request()
- .Header("ConsistencyLevel","eventual")
- .Search("displayName:tier")
- .Select("displayName,id")
- .OrderBy("displayName ")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-user-memberof-count-only-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-user-memberof-count-only-csharp-snippets.md deleted file mode 100644
@@ -1,14 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var int32 = await graphClient.Users["{id}"].MemberOf.$count
- .Request()
- .Header("ConsistencyLevel","eventual")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-users-properties-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-users-properties-csharp-snippets.md deleted file mode 100644
@@ -1,14 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var users = await graphClient.Users
- .Request()
- .Select("displayName,givenName,postalCode")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-wa-count-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-wa-count-csharp-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var users = await graphClient.Users
- .Request()
- .Header("ConsistencyLevel","eventual")
- .Search("displayName:wa")
- .OrderBy("displayName ")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-web-count-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-web-count-csharp-snippets.md deleted file mode 100644
@@ -1,15 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var applications = await graphClient.Applications
- .Request()
- .Header("ConsistencyLevel","eventual")
- .Search("displayName:Web")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/list-teamsapp-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/list-teamsapp-csharp-snippets.md deleted file mode 100644
@@ -1,14 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var teamsApps = await graphClient.AppCatalogs.TeamsApps
- .Request()
- .Filter("id eq 'b1c5353a-7aca-41b3-830f-27d5218fe0e5'")
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/orgcontact-list-transitivememberof-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/orgcontact-list-transitivememberof-csharp-snippets.md deleted file mode 100644
@@ -1,13 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-var transitiveMemberOf = await graphClient.Me.TransitiveMemberOf
- .Request()
- .GetAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/uninstall-teamsapp-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/uninstall-teamsapp-csharp-snippets.md deleted file mode 100644
@@ -1,13 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-await graphClient.Teams["{id}"].InstalledApps["{id}"]
- .Request()
- .DeleteAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-event-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/update-event-csharp-snippets.md
@@ -21,6 +21,7 @@ var @event = new Event
IsOnlineMeeting = true, OnlineMeetingProvider = OnlineMeetingProviderType.TeamsForBusiness, IsReminderOn = true,
+ HideAttendees = false,
Categories = new List<String>() { "Red category"
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/upgrade-teamsapp-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/upgrade-teamsapp-csharp-snippets.md deleted file mode 100644
@@ -1,14 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```csharp
-
-GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-
-await graphClient.Teams["{id}"].InstalledApps["{id}"]
- .Upgrade()
- .Request()
- .PostAsync();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/call-answer-service-hosted-media-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/call-answer-service-hosted-media-java-snippets.md deleted file mode 100644
@@ -1,31 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-String callbackUri = "https://bot.contoso.com/api/calls";
-
-LinkedList<Modality> acceptedModalitiesList = new LinkedList<Modality>();
-acceptedModalitiesList.add(Modality.AUDIO);
-
-ServiceHostedMediaConfig mediaConfig = new ServiceHostedMediaConfig();
-LinkedList<MediaInfo> preFetchMediaList = new LinkedList<MediaInfo>();
-MediaInfo preFetchMedia = new MediaInfo();
-preFetchMedia.uri = "https://cdn.contoso.com/beep.wav";
-preFetchMedia.resourceId = "1D6DE2D4-CD51-4309-8DAA-70768651088E";
-preFetchMediaList.add(preFetchMedia);
-MediaInfo preFetchMedia1 = new MediaInfo();
-preFetchMedia1.uri = "https://cdn.contoso.com/cool.wav";
-preFetchMedia1.resourceId = "1D6DE2D4-CD51-4309-8DAA-70768651088F";
-preFetchMediaList.add(preFetchMedia1);
-mediaConfig.preFetchMedia = preFetchMediaList;
-
-graphClient.communications().calls("57DAB8B1894C409AB240BD8BEAE78896")
- .answer(callbackUri,mediaConfig,acceptedModalitiesList)
- .buildRequest()
- .post();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-calendar-from-calendargroup-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/create-calendar-from-calendargroup-java-snippets.md new file mode 100644
@@ -0,0 +1,16 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+Calendar calendar = new Calendar();
+calendar.name = "Marketing calendar";
+
+graphClient.me().calendarGroups("AAMkADYAAAR9NR5AAA=").calendars()
+ .buildRequest()
+ .post(calendar);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-conversation-from-group-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/create-conversation-from-group-java-snippets.md deleted file mode 100644
@@ -1,36 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-Conversation conversation = new Conversation();
-conversation.topic = "New locations for this quarter";
-LinkedList<ConversationThread> threadsList = new LinkedList<ConversationThread>();
-ConversationThread threads = new ConversationThread();
-LinkedList<Post> postsList = new LinkedList<Post>();
-Post posts = new Post();
-ItemBody body = new ItemBody();
-body.contentType = BodyType.HTML;
-body.content = "What do we know so far?";
-posts.body = body;
-LinkedList<Recipient> newParticipantsList = new LinkedList<Recipient>();
-Recipient newParticipants = new Recipient();
-EmailAddress emailAddress = new EmailAddress();
-emailAddress.name = "Adele Vance";
-emailAddress.address = "AdeleV@contoso.onmicrosoft.com";
-newParticipants.emailAddress = emailAddress;
-newParticipantsList.add(newParticipants);
-posts.newParticipants = newParticipantsList;
-postsList.add(posts);
-threads.posts = postsList;
-threadsList.add(threads);
-conversation.threads = threadsList;
-
-graphClient.groups("29981b6a-0e57-42dc-94c9-cd24f5306196").conversations()
- .buildRequest()
- .post(conversation);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-directoryobject-from-directoryrole-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/create-directoryobject-from-directoryrole-java-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-DirectoryObject directoryObject = new DirectoryObject();
-directoryObject.id = "{id}";
-
-graphClient.directoryRoles("{id}").members().references()
- .buildRequest()
- .post(directoryObject);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-member-from-group-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/create-member-from-group-java-snippets.md deleted file mode 100644
@@ -1,20 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-Group group = new Group();
-group.additionalDataManager().put("members@odata.bind", new JsonPrimitive("[
- "https://graph.microsoft.com/v1.0/directoryObjects/{id}",
- "https://graph.microsoft.com/v1.0/directoryObjects/{id}",
- "https://graph.microsoft.com/v1.0/directoryObjects/{id}"
-]"));
-
-graphClient.groups("{id}")
- .buildRequest()
- .patch(group);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-prepopulated-group-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/create-prepopulated-group-java-snippets.md deleted file mode 100644
@@ -1,30 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-Group group = new Group();
-group.description = "Group with designated owner and members";
-group.displayName = "Operations group";
-LinkedList<String> groupTypesList = new LinkedList<String>();
-groupTypesList.add("Unified");
-group.groupTypes = groupTypesList;
-group.mailEnabled = true;
-group.mailNickname = "operations2019";
-group.securityEnabled = false;
-group.additionalDataManager().put("owners@odata.bind", new JsonPrimitive("[
- "https://graph.microsoft.com/v1.0/users/26be1845-4119-4801-a799-aea79d09f1a2"
-]"));
-group.additionalDataManager().put("members@odata.bind", new JsonPrimitive("[
- "https://graph.microsoft.com/v1.0/users/ff7cb387-6688-423c-8188-3da9532a73cc",
- "https://graph.microsoft.com/v1.0/users/69456242-0067-49d3-ba96-9de6f2728e14"
-]"));
-
-graphClient.groups()
- .buildRequest()
- .post(group);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-reference-attachment-with-post-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/create-reference-attachment-with-post-java-snippets.md deleted file mode 100644
@@ -1,29 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-Post post = new Post();
-ItemBody body = new ItemBody();
-body.contentType = BodyType.TEXT;
-body.content = "I attached a reference to a file on OneDrive.";
-post.body = body;
-LinkedList<Attachment> attachmentsList = new LinkedList<Attachment>();
-ReferenceAttachment attachments = new ReferenceAttachment();
-attachments.name = "Personal pictures";
-attachments.sourceUrl = "https://contoso.com/personal/mario_contoso_net/Documents/Pics";
-attachments.providerType = "oneDriveConsumer";
-attachments.permission = "Edit";
-attachments.isFolder = "True";
-attachmentsList.add(attachments);
-post.attachments = attachmentsList;
-
-graphClient.groups("1848753d-185d-4c08-a4e4-6ee40521d115").threads("AAQkADJUdfolA==")
- .reply(post)
- .buildRequest()
- .post();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/delete-directoryobject-from-directoryrole-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/delete-directoryobject-from-directoryrole-java-snippets.md deleted file mode 100644
@@ -1,13 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-graphClient.directoryRoles("{id}").members("{id}").reference()
- .buildRequest()
- .delete();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/directoryobject-getavailableextensionproperties-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/directoryobject-getavailableextensionproperties-java-snippets.md new file mode 100644
@@ -0,0 +1,16 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+Boolean isSyncedFromOnPremises = false;
+
+graphClient.directoryObjects()
+ .getAvailableExtensionProperties(isSyncedFromOnPremises)
+ .buildRequest()
+ .post();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/event-cancel-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/event-cancel-java-snippets.md new file mode 100644
@@ -0,0 +1,16 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+String comment = "Cancelling for this week due to all hands";
+
+graphClient.me().events("{id}")
+ .cancel(comment)
+ .buildRequest()
+ .post();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/event-forward-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/event-forward-java-snippets.md new file mode 100644
@@ -0,0 +1,25 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+LinkedList<Recipient> toRecipientsList = new LinkedList<Recipient>();
+Recipient toRecipients = new Recipient();
+EmailAddress emailAddress = new EmailAddress();
+emailAddress.address = "danas@contoso.onmicrosoft.com";
+emailAddress.name = "Dana Swope";
+toRecipients.emailAddress = emailAddress;
+
+toRecipientsList.add(toRecipients);
+
+String comment = "Dana, hope you can make this meeting.";
+
+graphClient.me().events("{id}")
+ .forward(toRecipientsList,comment)
+ .buildRequest()
+ .post();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-a-count-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-a-count-java-snippets.md deleted file mode 100644
@@ -1,19 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-
-IUserCollectionPage users = graphClient.users()
- .buildRequest( requestOptions )
- .filter("startswith(displayName,'a'),")
- .orderBy("displayName ")
- .top(1)
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-android-count-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-android-count-java-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-requestOptions.add(new QueryOption("$search", "displayName:Android"));
-
-IDeviceCollectionPage devices = graphClient.devices()
- .buildRequest( requestOptions )
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-channels-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-channels-java-snippets.md deleted file mode 100644
@@ -1,13 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-IChannelCollectionPage channels = graphClient.teams("{id}").channels()
- .buildRequest()
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-conversationmember-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-conversationmember-java-snippets.md deleted file mode 100644
@@ -1,13 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-IConversationMemberCollectionPage members = graphClient.teams("ee0f5ae2-8bc6-4ae5-8466-7daeebbfa062").members()
- .buildRequest()
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-count-group-only-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-count-group-only-java-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-
-int int32 = graphClient.servicePrincipals("{id}").memberOf().microsoft.graph.group().count()
- .buildRequest( requestOptions )
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-count-only-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-count-only-java-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-
-int int32 = graphClient.users().count()
- .buildRequest( requestOptions )
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-count-user-only-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-count-user-only-java-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-
-int int32 = graphClient.groups("{id}").members().microsoft.graph.user().count()
- .buildRequest( requestOptions )
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-directoryrole-members-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-directoryrole-members-java-snippets.md deleted file mode 100644
@@ -1,13 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-IDirectoryObjectCollectionWithReferencesPage members = graphClient.directoryRoles("{id}").members()
- .buildRequest()
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-event-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-event-java-snippets.md
@@ -11,7 +11,7 @@ requestOptions.add(new HeaderOption("Prefer", "outlook.timezone=\"Pacific Standa
Event event = graphClient.me().events("AAMkAGIAAAoZDOFAAA=") .buildRequest( requestOptions )
- .select("subject,body,bodyPreview,organizer,attendees,start,end,location")
+ .select("subject,body,bodyPreview,organizer,attendees,start,end,location,hideAttendees")
.get(); ```\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-group-transitivemembers-count-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-group-transitivemembers-count-java-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-
-int int32 = graphClient.groups("{id}").transitiveMembers().count()
- .buildRequest( requestOptions )
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-groups-withlicenseerrors-count-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-groups-withlicenseerrors-count-java-snippets.md deleted file mode 100644
@@ -1,18 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-
-IGroupCollectionPage groups = graphClient.groups()
- .buildRequest( requestOptions )
- .filter("hasMembersWithLicenseErrors+eq+true,")
- .select("id,displayName")
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-groups-withlicenseerrors-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-groups-withlicenseerrors-java-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new QueryOption("$filter", "hasMembersWithLicenseErrors+eq+true,"));
-
-IGroupCollectionPage groups = graphClient.groups()
- .buildRequest( requestOptions )
- .select("id,displayName")
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-mailboxsettings-1-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-mailboxsettings-1-java-snippets.md deleted file mode 100644
@@ -1,13 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-MailboxSettings mailboxSettings = graphClient.customRequest("/me/mailboxSettings", MailboxSettings.class)
- .buildRequest()
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-phone-count-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-phone-count-java-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-requestOptions.add(new QueryOption("$search", "displayName:wa"));
-
-IOrgContactCollectionPage contacts = graphClient.contacts()
- .buildRequest( requestOptions )
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-pr-count-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-pr-count-java-snippets.md deleted file mode 100644
@@ -1,19 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-requestOptions.add(new QueryOption("$search", "displayName:Pr"));
-
-IUserCollectionPage user = graphClient.groups("{id}").members().microsoft.graph.user()
- .buildRequest( requestOptions )
- .select("displayName,id")
- .orderBy("displayName ")
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-signin-last-time-range-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-signin-last-time-range-java-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new QueryOption("filter", "signInActivity/lastSignInDateTime le 2019-06-01T00:00:00Z"));
-
-IUserCollectionPage users = graphClient.users()
- .buildRequest( requestOptions )
- .filter("signInActivity/lastSignInDateTime le 2019-06-01T00:00:00Z")
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-team-count-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-team-count-java-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-requestOptions.add(new QueryOption("$search", "displayName:Team"));
-
-IServicePrincipalCollectionPage servicePrincipals = graphClient.servicePrincipals()
- .buildRequest( requestOptions )
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-tier-count-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-tier-count-java-snippets.md deleted file mode 100644
@@ -1,19 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-requestOptions.add(new QueryOption("$search", "displayName:tier"));
-
-IGroupCollectionPage group = graphClient.users("{id}").transitiveMemberOf().microsoft.graph.group()
- .buildRequest( requestOptions )
- .select("displayName,id")
- .orderBy("displayName ")
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-user-memberof-count-only-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-user-memberof-count-only-java-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-
-int int32 = graphClient.users("{id}").memberOf().count()
- .buildRequest( requestOptions )
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-users-properties-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-users-properties-java-snippets.md deleted file mode 100644
@@ -1,14 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-IUserCollectionPage users = graphClient.users()
- .buildRequest()
- .select("displayName,givenName,postalCode")
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-wa-count-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-wa-count-java-snippets.md deleted file mode 100644
@@ -1,18 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-requestOptions.add(new QueryOption("$search", "displayName:wa"));
-
-IUserCollectionPage users = graphClient.users()
- .buildRequest( requestOptions )
- .orderBy("displayName ")
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-web-count-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-web-count-java-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
-requestOptions.add(new QueryOption("$search", "displayName:Web"));
-
-IApplicationCollectionPage applications = graphClient.applications()
- .buildRequest( requestOptions )
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/list-teamsapp-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/list-teamsapp-java-snippets.md deleted file mode 100644
@@ -1,14 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-ITeamsAppCollectionPage teamsApps = graphClient.appCatalogs().teamsApps()
- .buildRequest()
- .filter("id eq 'b1c5353a-7aca-41b3-830f-27d5218fe0e5'")
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/orgcontact-list-transitivememberof-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/orgcontact-list-transitivememberof-java-snippets.md deleted file mode 100644
@@ -1,13 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-IDirectoryObjectCollectionPage transitiveMemberOf = graphClient.me().transitiveMemberOf()
- .buildRequest()
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/uninstall-teamsapp-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/uninstall-teamsapp-java-snippets.md deleted file mode 100644
@@ -1,13 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```java
-
-IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-
-graphClient.teams("{id}").installedApps("{id}")
- .buildRequest()
- .delete();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-event-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/update-event-java-snippets.md
@@ -19,6 +19,7 @@ event.reminderMinutesBeforeStart = 99;
event.isOnlineMeeting = true; event.onlineMeetingProvider = OnlineMeetingProviderType.TEAMS_FOR_BUSINESS; event.isReminderOn = true;
+event.hideAttendees = false;
LinkedList<String> categoriesList = new LinkedList<String>(); categoriesList.add("Red category"); event.categories = categoriesList;
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/call-answer-service-hosted-media-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/call-answer-service-hosted-media-javascript-snippets.md deleted file mode 100644
@@ -1,34 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-const answer = {
- callbackUri: "https://bot.contoso.com/api/calls",
- acceptedModalities: [ "audio" ],
- mediaConfig: {
- @odata.type: "#microsoft.graph.serviceHostedMediaConfig",
- preFetchMedia: [
- {
- uri: "https://cdn.contoso.com/beep.wav",
- resourceId: "1D6DE2D4-CD51-4309-8DAA-70768651088E"
- },
- {
- uri: "https://cdn.contoso.com/cool.wav",
- resourceId: "1D6DE2D4-CD51-4309-8DAA-70768651088F"
- }
- ]
- }
-};
-
-let res = await client.api('/communications/calls/57DAB8B1894C409AB240BD8BEAE78896/answer')
- .post(answer);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-calendar-from-calendargroup-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/create-calendar-from-calendargroup-javascript-snippets.md
@@ -10,9 +10,7 @@ const options = {
const client = Client.init(options);
-const calendar = Content-type: application/json
-
-{
+const calendar = {
name: "Marketing calendar" };
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-conversation-from-group-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/create-conversation-from-group-javascript-snippets.md deleted file mode 100644
@@ -1,40 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-const conversation = {
- topic:"New locations for this quarter",
- threads:[
- {
- posts:[
- {
- body:{
- contentType:"html",
- content:"What do we know so far?"
- },
- newParticipants:[
- {
- emailAddress:{
- name:"Adele Vance",
- address:"AdeleV@contoso.onmicrosoft.com"
- }
- }
- ]
- }
- ]
- }
- ]
-};
-
-let res = await client.api('/groups/29981b6a-0e57-42dc-94c9-cd24f5306196/conversations')
- .post(conversation);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-directoryobject-from-directoryrole-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/create-directoryobject-from-directoryrole-javascript-snippets.md deleted file mode 100644
@@ -1,20 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-const directoryObject = {
- @odata.id: "https://graph.microsoft.com/v1.0/directoryObjects/{id}"
-};
-
-let res = await client.api('/directoryRoles/{id}/members/$ref')
- .post(directoryObject);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-item-attachment-with-post-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/create-item-attachment-with-post-javascript-snippets.md deleted file mode 100644
@@ -1,45 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-const reply = {
- post: {
- body: {
- contentType: "text",
- content: "I attached an event."
- },
- attachments: [{
- @odata.type: "#microsoft.graph.itemAttachment",
- name: "Holiday event",
- item: {
- @odata.type: "microsoft.graph.event",
- subject: "Discuss gifts for children",
- body: {
- contentType: "HTML",
- content: "Let's look for funding!"
- },
- start: {
- dateTime: "2019-12-02T18:00:00",
- timeZone: "Pacific Standard Time"
- },
- end: {
- dateTime: "2019-12-02T19:00:00",
- timeZone: "Pacific Standard Time"
- }
- }
- } ]
- }
-};
-
-let res = await client.api('/groups/1848753d-185d-4c08-a4e4-6ee40521d115/threads/AAQkADJUdfolA==/reply')
- .post(reply);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-member-from-group-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/create-member-from-group-javascript-snippets.md deleted file mode 100644
@@ -1,24 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-const group = {
- members@odata.bind: [
- "https://graph.microsoft.com/v1.0/directoryObjects/{id}",
- "https://graph.microsoft.com/v1.0/directoryObjects/{id}",
- "https://graph.microsoft.com/v1.0/directoryObjects/{id}"
- ]
-};
-
-let res = await client.api('/groups/{id}')
- .update(group);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-prepopulated-group-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/create-prepopulated-group-javascript-snippets.md deleted file mode 100644
@@ -1,34 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-const group = {
- description: "Group with designated owner and members",
- displayName: "Operations group",
- groupTypes: [
- "Unified"
- ],
- mailEnabled: true,
- mailNickname: "operations2019",
- securityEnabled: false,
- owners@odata.bind: [
- "https://graph.microsoft.com/v1.0/users/26be1845-4119-4801-a799-aea79d09f1a2"
- ],
- members@odata.bind: [
- "https://graph.microsoft.com/v1.0/users/ff7cb387-6688-423c-8188-3da9532a73cc",
- "https://graph.microsoft.com/v1.0/users/69456242-0067-49d3-ba96-9de6f2728e14"
- ]
-};
-
-let res = await client.api('/groups')
- .post(group);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-team-post-full-payload-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/create-team-post-full-payload-javascript-snippets.md deleted file mode 100644
@@ -1,96 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-const team = {
- template@odata.bind: "https://graph.microsoft.com/v1.0/teamsTemplates('standard')",
- visibility: "Private",
- displayName: "Sample Engineering Team",
- description: "This is a sample engineering team, used to showcase the range of properties supported by this API",
- channels: [
- {
- displayName: "Announcements 📢",
- isFavoriteByDefault: true,
- description: "This is a sample announcements channel that is favorited by default. Use this channel to make important team, product, and service announcements."
- },
- {
- displayName: "Training 🏋️",
- isFavoriteByDefault: true,
- description: "This is a sample training channel, that is favorited by default, and contains an example of pinned website and YouTube tabs.",
- tabs: [
- {
- teamsApp@odata.bind: "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.web')",
- name: "A Pinned Website",
- configuration: {
- contentUrl: "https://docs.microsoft.com/microsoftteams/microsoft-teams"
- }
- },
- {
- teamsApp@odata.bind: "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.youtube')",
- name: "A Pinned YouTube Video",
- configuration: {
- contentUrl: "https://tabs.teams.microsoft.com/Youtube/Home/YoutubeTab?videoId=X8krAMdGvCQ",
- websiteUrl: "https://www.youtube.com/watch?v=X8krAMdGvCQ"
- }
- }
- ]
- },
- {
- displayName: "Planning 📅 ",
- description: "This is a sample of a channel that is not favorited by default, these channels will appear in the more channels overflow menu.",
- isFavoriteByDefault: false
- },
- {
- displayName: "Issues and Feedback 🐞",
- description: "This is a sample of a channel that is not favorited by default, these channels will appear in the more channels overflow menu."
- }
- ],
- memberSettings: {
- allowCreateUpdateChannels: true,
- allowDeleteChannels: true,
- allowAddRemoveApps: true,
- allowCreateUpdateRemoveTabs: true,
- allowCreateUpdateRemoveConnectors: true
- },
- guestSettings: {
- allowCreateUpdateChannels: false,
- allowDeleteChannels: false
- },
- funSettings: {
- allowGiphy: true,
- giphyContentRating: "Moderate",
- allowStickersAndMemes: true,
- allowCustomMemes: true
- },
- messagingSettings: {
- allowUserEditMessages: true,
- allowUserDeleteMessages: true,
- allowOwnerDeleteMessages: true,
- allowTeamMentions: true,
- allowChannelMentions: true
- },
- discoverySettings: {
- showInTeamsSearchAndSuggestions: true
- },
- installedApps: [
- {
- teamsApp@odata.bind: "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.vsts')"
- },
- {
- teamsApp@odata.bind: "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('1542629c-01b3-4a6d-8f76-1938b779e48d')"
- }
- ]
-};
-
-let res = await client.api('/teams')
- .post(team);
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-teamsapp-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/create-teamsapp-javascript-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/appCatalogs/teamsApps?requiresReview=true')
- .post();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/delete-directoryobject-from-directoryrole-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/delete-directoryobject-from-directoryrole-javascript-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/directoryRoles/{id}/members/{id}/$ref')
- .delete();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/directoryobject-getavailableextensionproperties-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/directoryobject-getavailableextensionproperties-javascript-snippets.md
@@ -10,10 +10,7 @@ const options = {
const client = Client.init(options);
-const extensionProperty = Content-Type: application/json
-Content-length: 43
-
-{
+const extensionProperty = {
isSyncedFromOnPremises: "Boolean" };
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/event-cancel-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/event-cancel-javascript-snippets.md new file mode 100644
@@ -0,0 +1,20 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const cancel = {
+ Comment: "Cancelling for this week due to all hands"
+};
+
+let res = await client.api('/me/events/{id}/cancel')
+ .post(cancel);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/event-forward-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/event-forward-javascript-snippets.md new file mode 100644
@@ -0,0 +1,28 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const forward = {
+ ToRecipients:[
+ {
+ emailAddress: {
+ address:"danas@contoso.onmicrosoft.com",
+ name:"Dana Swope"
+ }
+ }
+ ],
+ Comment: "Dana, hope you can make this meeting."
+};
+
+let res = await client.api('/me/events/{id}/forward')
+ .post(forward);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-a-count-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-a-count-javascript-snippets.md deleted file mode 100644
@@ -1,20 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/users')
- .header('ConsistencyLevel','eventual')
- .filter('startswith(displayName,'a'),')
- .orderby('displayName ')
- .top(1)
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-android-count-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-android-count-javascript-snippets.md deleted file mode 100644
@@ -1,18 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/devices')
- .header('ConsistencyLevel','eventual')
- .search('displayName:Android')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-channels-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-channels-javascript-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/teams/{id}/channels')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-conversationmember-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-conversationmember-javascript-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/teams/ee0f5ae2-8bc6-4ae5-8466-7daeebbfa062/members')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-count-group-only-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-count-group-only-javascript-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/servicePrincipals/{id}/memberOf/microsoft.graph.group/$count')
- .header('ConsistencyLevel','eventual')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-count-only-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-count-only-javascript-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/users/$count')
- .header('ConsistencyLevel','eventual')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-count-user-only-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-count-user-only-javascript-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/groups/{id}/members/microsoft.graph.user/$count')
- .header('ConsistencyLevel','eventual')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-directoryrole-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-directoryrole-javascript-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/directoryRoles/{id}')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-directoryrole-members-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-directoryrole-members-javascript-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/directoryRoles/{id}/members')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-event-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-event-javascript-snippets.md
@@ -12,7 +12,7 @@ const client = Client.init(options);
let res = await client.api('/me/events/AAMkAGIAAAoZDOFAAA=') .header('Prefer','outlook.timezone="Pacific Standard Time"')
- .select('subject,body,bodyPreview,organizer,attendees,start,end,location')
+ .select('subject,body,bodyPreview,organizer,attendees,start,end,location,hideAttendees')
.get(); ```\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-group-transitivemembers-count-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-group-transitivemembers-count-javascript-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/groups/{id}/transitiveMembers/$count')
- .header('ConsistencyLevel','eventual')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-groups-withlicenseerrors-count-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-groups-withlicenseerrors-count-javascript-snippets.md deleted file mode 100644
@@ -1,19 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/groups')
- .header('ConsistencyLevel','eventual')
- .filter('hasMembersWithLicenseErrors+eq+true,')
- .select('id,displayName')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-groups-withlicenseerrors-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-groups-withlicenseerrors-javascript-snippets.md deleted file mode 100644
@@ -1,18 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/groups')
- .filter('hasMembersWithLicenseErrors+eq+true,')
- .select('id,displayName')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-mailboxsettings-1-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-mailboxsettings-1-javascript-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/me/mailboxSettings')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-phone-count-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-phone-count-javascript-snippets.md deleted file mode 100644
@@ -1,18 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/contacts')
- .header('ConsistencyLevel','eventual')
- .search('displayName:wa')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-pr-count-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-pr-count-javascript-snippets.md deleted file mode 100644
@@ -1,20 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/groups/{id}/members/microsoft.graph.user')
- .header('ConsistencyLevel','eventual')
- .search('displayName:Pr')
- .select('displayName,id')
- .orderby('displayName ')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-signin-last-time-range-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-signin-last-time-range-javascript-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/users?filter=signInActivity/lastSignInDateTime%20le%202019-06-01T00:00:00Z')
- .filter('signInActivity/lastSignInDateTime le 2019-06-01T00:00:00Z')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-team-count-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-team-count-javascript-snippets.md deleted file mode 100644
@@ -1,18 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/servicePrincipals')
- .header('ConsistencyLevel','eventual')
- .search('displayName:Team')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-tier-count-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-tier-count-javascript-snippets.md deleted file mode 100644
@@ -1,20 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/users/{id}/transitiveMemberOf/microsoft.graph.group')
- .header('ConsistencyLevel','eventual')
- .search('displayName:tier')
- .select('displayName,id')
- .orderby('displayName ')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-user-memberof-count-only-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-user-memberof-count-only-javascript-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/users/{id}/memberOf/$count')
- .header('ConsistencyLevel','eventual')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-users-properties-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-users-properties-javascript-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/users')
- .select('displayName,givenName,postalCode')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-wa-count-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-wa-count-javascript-snippets.md deleted file mode 100644
@@ -1,19 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/users')
- .header('ConsistencyLevel','eventual')
- .search('displayName:wa')
- .orderby('displayName ')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-web-count-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-web-count-javascript-snippets.md deleted file mode 100644
@@ -1,18 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/applications')
- .header('ConsistencyLevel','eventual')
- .search('displayName:Web')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/list-teamsapp-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/list-teamsapp-javascript-snippets.md deleted file mode 100644
@@ -1,17 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/appCatalogs/teamsApps')
- .filter('id eq 'b1c5353a-7aca-41b3-830f-27d5218fe0e5'')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/orgcontact-list-transitivememberof-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/orgcontact-list-transitivememberof-javascript-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/me/transitiveMemberOf')
- .get();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/uninstall-teamsapp-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/uninstall-teamsapp-javascript-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/teams/{id}/installedApps/{id}')
- .delete();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-event-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/update-event-javascript-snippets.md
@@ -23,6 +23,7 @@ const event = {
isOnlineMeeting: true, onlineMeetingProvider: "teamsForBusiness", isReminderOn: true,
+ hideAttendees: false,
categories: ["Red category"] };
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/upgrade-teamsapp-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/upgrade-teamsapp-javascript-snippets.md deleted file mode 100644
@@ -1,16 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```javascript
-
-const options = {
- authProvider,
-};
-
-const client = Client.init(options);
-
-let res = await client.api('/teams/{id}/installedApps/{id}/upgrade')
- .post();
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/call-answer-service-hosted-media-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/call-answer-service-hosted-media-objc-snippets.md deleted file mode 100644
@@ -1,48 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/communications/calls/57DAB8B1894C409AB240BD8BEAE78896/answer"]]];
-[urlRequest setHTTPMethod:@"POST"];
-[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
-
-NSMutableDictionary *payloadDictionary = [[NSMutableDictionary alloc] init];
-
-NSString *callbackUri = @"https://bot.contoso.com/api/calls";
-payloadDictionary[@"callbackUri"] = callbackUri;
-
-NSMutableArray *acceptedModalitiesList = [[NSMutableArray alloc] init];
-[acceptedModalitiesList addObject: @"audio"];
-payloadDictionary[@"acceptedModalities"] = acceptedModalitiesList;
-
-MSGraphMediaConfig *mediaConfig = [[MSGraphMediaConfig alloc] init];
-NSMutableArray *preFetchMediaList = [[NSMutableArray alloc] init];
-MSGraphMediaInfo *preFetchMedia = [[MSGraphMediaInfo alloc] init];
-[preFetchMedia setUri:@"https://cdn.contoso.com/beep.wav"];
-[preFetchMedia setResourceId:@"1D6DE2D4-CD51-4309-8DAA-70768651088E"];
-[preFetchMediaList addObject: preFetchMedia];
-MSGraphMediaInfo *preFetchMedia = [[MSGraphMediaInfo alloc] init];
-[preFetchMedia setUri:@"https://cdn.contoso.com/cool.wav"];
-[preFetchMedia setResourceId:@"1D6DE2D4-CD51-4309-8DAA-70768651088F"];
-[preFetchMediaList addObject: preFetchMedia];
-[mediaConfig setPreFetchMedia:preFetchMediaList];
-payloadDictionary[@"mediaConfig"] = mediaConfig;
-
-NSData *data = [NSJSONSerialization dataWithJSONObject:payloadDictionary options:kNilOptions error:&error];
-[urlRequest setHTTPBody:data];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- //Request Completed
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-calendar-from-calendargroup-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/create-calendar-from-calendargroup-objc-snippets.md new file mode 100644
@@ -0,0 +1,30 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/calendargroups/AAMkADYAAAR9NR5AAA=/calendars"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphCalendar *calendar = [[MSGraphCalendar alloc] init];
+[calendar setName:@"Marketing calendar"];
+
+NSError *error;
+NSData *calendarData = [calendar getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:calendarData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-conversation-from-group-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/create-conversation-from-group-objc-snippets.md deleted file mode 100644
@@ -1,50 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groups/29981b6a-0e57-42dc-94c9-cd24f5306196/conversations"]]];
-[urlRequest setHTTPMethod:@"POST"];
-[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
-
-MSGraphConversation *conversation = [[MSGraphConversation alloc] init];
-[conversation setTopic:@"New locations for this quarter"];
-NSMutableArray *threadsList = [[NSMutableArray alloc] init];
-MSGraphConversationThread *threads = [[MSGraphConversationThread alloc] init];
-NSMutableArray *postsList = [[NSMutableArray alloc] init];
-MSGraphPost *posts = [[MSGraphPost alloc] init];
-MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
-[body setContentType: [MSGraphBodyType html]];
-[body setContent:@"What do we know so far?"];
-[posts setBody:body];
-NSMutableArray *newParticipantsList = [[NSMutableArray alloc] init];
-MSGraphRecipient *newParticipants = [[MSGraphRecipient alloc] init];
-MSGraphEmailAddress *emailAddress = [[MSGraphEmailAddress alloc] init];
-[emailAddress setName:@"Adele Vance"];
-[emailAddress setAddress:@"AdeleV@contoso.onmicrosoft.com"];
-[newParticipants setEmailAddress:emailAddress];
-[newParticipantsList addObject: newParticipants];
-[posts setNewParticipants:newParticipantsList];
-[postsList addObject: posts];
-[threads setPosts:postsList];
-[threadsList addObject: threads];
-[conversation setThreads:threadsList];
-
-NSError *error;
-NSData *conversationData = [conversation getSerializedDataWithError:&error];
-[urlRequest setHTTPBody:conversationData];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- //Request Completed
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-item-attachment-with-post-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/create-item-attachment-with-post-objc-snippets.md deleted file mode 100644
@@ -1,55 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groups/1848753d-185d-4c08-a4e4-6ee40521d115/threads/AAQkADJUdfolA==/reply"]]];
-[urlRequest setHTTPMethod:@"POST"];
-[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
-
-NSMutableDictionary *payloadDictionary = [[NSMutableDictionary alloc] init];
-
-MSGraphPost *post = [[MSGraphPost alloc] init];
-MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
-[body setContentType: [MSGraphBodyType text]];
-[body setContent:@"I attached an event."];
-[post setBody:body];
-NSMutableArray *attachmentsList = [[NSMutableArray alloc] init];
-MSGraphAttachment *attachments = [[MSGraphAttachment alloc] init];
-[attachments setName:@"Holiday event"];
-MSGraphOutlookItem *item = [[MSGraphOutlookItem alloc] init];
-[item setSubject:@"Discuss gifts for children"];
-MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
-[body setContentType: [MSGraphBodyType html]];
-[body setContent:@"Let's look for funding!"];
-[item setBody:body];
-MSGraphDateTimeTimeZone *start = [[MSGraphDateTimeTimeZone alloc] init];
-[start setDateTime: "2019-12-02T18:00:00"];
-[start setTimeZone:@"Pacific Standard Time"];
-[item setStart:start];
-MSGraphDateTimeTimeZone *end = [[MSGraphDateTimeTimeZone alloc] init];
-[end setDateTime: "2019-12-02T19:00:00"];
-[end setTimeZone:@"Pacific Standard Time"];
-[item setEnd:end];
-[attachments setItem:item];
-[attachmentsList addObject: attachments];
-[post setAttachments:attachmentsList];
-payloadDictionary[@"post"] = post;
-
-NSData *data = [NSJSONSerialization dataWithJSONObject:payloadDictionary options:kNilOptions error:&error];
-[urlRequest setHTTPBody:data];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- //Request Completed
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-prepopulated-group-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/create-prepopulated-group-objc-snippets.md deleted file mode 100644
@@ -1,37 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groups"]]];
-[urlRequest setHTTPMethod:@"POST"];
-[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
-
-MSGraphGroup *group = [[MSGraphGroup alloc] init];
-[group setDescription:@"Group with designated owner and members"];
-[group setDisplayName:@"Operations group"];
-NSMutableArray *groupTypesList = [[NSMutableArray alloc] init];
-[groupTypesList addObject: @"Unified"];
-[group setGroupTypes:groupTypesList];
-[group setMailEnabled: true];
-[group setMailNickname:@"operations2019"];
-[group setSecurityEnabled: false];
-
-NSError *error;
-NSData *groupData = [group getSerializedDataWithError:&error];
-[urlRequest setHTTPBody:groupData];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- //Request Completed
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-teamsapp-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/create-teamsapp-objc-snippets.md deleted file mode 100644
@@ -1,23 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/appCatalogs/teamsApps?requiresReview=true"]]];
-[urlRequest setHTTPMethod:@"POST"];
-[urlRequest setValue:@"application/zip" forHTTPHeaderField:@"Content-Type"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- //Request Completed
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/delete-directoryobject-from-directoryrole-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/delete-directoryobject-from-directoryrole-objc-snippets.md deleted file mode 100644
@@ -1,22 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/directoryRoles/{id}/members/{id}/$ref"]]];
-[urlRequest setHTTPMethod:@"DELETE"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- //Request Completed
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/directoryobject-getavailableextensionproperties-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/directoryobject-getavailableextensionproperties-objc-snippets.md new file mode 100644
@@ -0,0 +1,31 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/directoryObjects/getAvailableExtensionProperties"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+NSMutableDictionary *payloadDictionary = [[NSMutableDictionary alloc] init];
+
+NSString *isSyncedFromOnPremises = @"Boolean";
+payloadDictionary[@"isSyncedFromOnPremises"] = isSyncedFromOnPremises;
+
+NSData *data = [NSJSONSerialization dataWithJSONObject:payloadDictionary options:kNilOptions error:&error];
+[urlRequest setHTTPBody:data];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/event-cancel-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/event-cancel-objc-snippets.md new file mode 100644
@@ -0,0 +1,31 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/events/{id}/cancel"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+NSMutableDictionary *payloadDictionary = [[NSMutableDictionary alloc] init];
+
+NSString *comment = @"Cancelling for this week due to all hands";
+payloadDictionary[@"Comment"] = comment;
+
+NSData *data = [NSJSONSerialization dataWithJSONObject:payloadDictionary options:kNilOptions error:&error];
+[urlRequest setHTTPBody:data];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/event-forward-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/event-forward-objc-snippets.md new file mode 100644
@@ -0,0 +1,40 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/events/{id}/forward"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+NSMutableDictionary *payloadDictionary = [[NSMutableDictionary alloc] init];
+
+NSMutableArray *toRecipientsList = [[NSMutableArray alloc] init];
+MSGraphRecipient *toRecipients = [[MSGraphRecipient alloc] init];
+MSGraphEmailAddress *emailAddress = [[MSGraphEmailAddress alloc] init];
+[emailAddress setAddress:@"danas@contoso.onmicrosoft.com"];
+[emailAddress setName:@"Dana Swope"];
+[toRecipients setEmailAddress:emailAddress];
+[toRecipientsList addObject: toRecipients];
+payloadDictionary[@"ToRecipients"] = toRecipientsList;
+
+NSString *comment = @"Dana, hope you can make this meeting.";
+payloadDictionary[@"Comment"] = comment;
+
+NSData *data = [NSJSONSerialization dataWithJSONObject:payloadDictionary options:kNilOptions error:&error];
+[urlRequest setHTTPBody:data];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-a-count-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-a-count-objc-snippets.md deleted file mode 100644
@@ -1,25 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/users?$filter=startswith(displayName,'a')&$orderby=displayName&$count=true&$top=1"]]];
-[urlRequest setHTTPMethod:@"GET"];
-[urlRequest setValue:@"eventual" forHTTPHeaderField:@"ConsistencyLevel"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphUser *user = [[MSGraphUser alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-android-count-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-android-count-objc-snippets.md deleted file mode 100644
@@ -1,25 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/devices?$search=%22displayName:Android%22&$count=true"]]];
-[urlRequest setHTTPMethod:@"GET"];
-[urlRequest setValue:@"eventual" forHTTPHeaderField:@"ConsistencyLevel"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphDevice *device = [[MSGraphDevice alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-channels-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-channels-objc-snippets.md deleted file mode 100644
@@ -1,24 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/teams/{id}/channels"]]];
-[urlRequest setHTTPMethod:@"GET"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphChannel *channel = [[MSGraphChannel alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-conversationmember-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-conversationmember-objc-snippets.md deleted file mode 100644
@@ -1,24 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/teams/ee0f5ae2-8bc6-4ae5-8466-7daeebbfa062/members"]]];
-[urlRequest setHTTPMethod:@"GET"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphConversationMember *conversationMember = [[MSGraphConversationMember alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-count-group-only-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-count-group-only-objc-snippets.md deleted file mode 100644
@@ -1,23 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/servicePrincipals/{id}/memberOf/microsoft.graph.group/$count"]]];
-[urlRequest setHTTPMethod:@"GET"];
-[urlRequest setValue:@"eventual" forHTTPHeaderField:@"ConsistencyLevel"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- MSGraphInt32 *int32 = [[MSGraphInt32 alloc] initWithData:data error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-count-only-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-count-only-objc-snippets.md deleted file mode 100644
@@ -1,23 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/users/$count"]]];
-[urlRequest setHTTPMethod:@"GET"];
-[urlRequest setValue:@"eventual" forHTTPHeaderField:@"ConsistencyLevel"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- MSGraphInt32 *int32 = [[MSGraphInt32 alloc] initWithData:data error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-count-user-only-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-count-user-only-objc-snippets.md deleted file mode 100644
@@ -1,23 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groups/{id}/members/microsoft.graph.user/$count"]]];
-[urlRequest setHTTPMethod:@"GET"];
-[urlRequest setValue:@"eventual" forHTTPHeaderField:@"ConsistencyLevel"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- MSGraphInt32 *int32 = [[MSGraphInt32 alloc] initWithData:data error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-directoryrole-members-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-directoryrole-members-objc-snippets.md deleted file mode 100644
@@ -1,24 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/directoryRoles/{id}/members"]]];
-[urlRequest setHTTPMethod:@"GET"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphDirectoryObject *directoryObject = [[MSGraphDirectoryObject alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-directoryrole-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-directoryrole-objc-snippets.md deleted file mode 100644
@@ -1,22 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/directoryRoles/{id}"]]];
-[urlRequest setHTTPMethod:@"GET"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- MSGraphDirectoryRole *directoryRole = [[MSGraphDirectoryRole alloc] initWithData:data error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-event-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-event-objc-snippets.md
@@ -7,7 +7,7 @@ description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/events/AAMkAGIAAAoZDOFAAA=?$select=subject,body,bodyPreview,organizer,attendees,start,end,location"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/events/AAMkAGIAAAoZDOFAAA=?$select=subject,body,bodyPreview,organizer,attendees,start,end,location,hideAttendees"]]];
[urlRequest setHTTPMethod:@"GET"]; [urlRequest setValue:@"outlook.timezone=\"Pacific Standard Time\"" forHTTPHeaderField:@"Prefer"];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-group-transitivemembers-count-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-group-transitivemembers-count-objc-snippets.md deleted file mode 100644
@@ -1,23 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groups/{id}/transitiveMembers/$count"]]];
-[urlRequest setHTTPMethod:@"GET"];
-[urlRequest setValue:@"eventual" forHTTPHeaderField:@"ConsistencyLevel"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- MSGraphInt32 *int32 = [[MSGraphInt32 alloc] initWithData:data error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-groups-withlicenseerrors-count-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-groups-withlicenseerrors-count-objc-snippets.md deleted file mode 100644
@@ -1,25 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groups?$count=true&$filter=hasMembersWithLicenseErrors+eq+true&$select=id,displayName"]]];
-[urlRequest setHTTPMethod:@"GET"];
-[urlRequest setValue:@"eventual" forHTTPHeaderField:@"ConsistencyLevel"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphGroup *group = [[MSGraphGroup alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-groups-withlicenseerrors-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-groups-withlicenseerrors-objc-snippets.md deleted file mode 100644
@@ -1,24 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groups?$filter=hasMembersWithLicenseErrors+eq+true&$select=id,displayName"]]];
-[urlRequest setHTTPMethod:@"GET"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphGroup *group = [[MSGraphGroup alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-mailboxsettings-1-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-mailboxsettings-1-objc-snippets.md deleted file mode 100644
@@ -1,22 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/mailboxSettings"]]];
-[urlRequest setHTTPMethod:@"GET"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- MSGraphMailboxSettings *mailboxSettings = [[MSGraphMailboxSettings alloc] initWithData:data error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-phone-count-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-phone-count-objc-snippets.md deleted file mode 100644
@@ -1,25 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/contacts?$search=%22displayName:wa%22&$count=true"]]];
-[urlRequest setHTTPMethod:@"GET"];
-[urlRequest setValue:@"eventual" forHTTPHeaderField:@"ConsistencyLevel"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphOrgContact *orgContact = [[MSGraphOrgContact alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-pr-count-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-pr-count-objc-snippets.md deleted file mode 100644
@@ -1,25 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groups/{id}/members/microsoft.graph.user?$count=true&$orderby=displayName&$search=%22displayName:Pr%22&$select=displayName,id"]]];
-[urlRequest setHTTPMethod:@"GET"];
-[urlRequest setValue:@"eventual" forHTTPHeaderField:@"ConsistencyLevel"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphUser *user = [[MSGraphUser alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
-
-}];
-
-[meDataTask execute];
-
-```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-signin-last-time-range-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-signin-last-time-range-objc-snippets.md deleted file mode 100644
@@ -1,24 +0,0 @@
-description: "Automatically generated file. DO NOT MODIFY"
-
-```objc
-
-MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
-
-NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/users?filter=signInActivity/lastSignInDateTime%20le%202019-06-01T00:00:00Z"]]];
-[urlRequest setHTTPMethod:@"GET"];
-
-MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
- completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
-
- NSError *jsonError = nil;