Updates from: 01/20/2021 04:08:55
Service Microsoft Docs article Related commit history on GitHub Change details
v1.0 https://docs.microsoft.com/en-us/graph/api/activitybasedtimeoutpolicy-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/activitybasedtimeoutpolicy-update.md
@@ -76,8 +76,7 @@ Content-type: application/json
"definition-value" ], "displayName": "displayName-value",
- "isOrganizationDefault": true,
- "type": "type-value"
+ "isOrganizationDefault": true
} ``` # [JavaScript](#tab/javascript)
@@ -92,6 +91,10 @@ Content-type: application/json
[!INCLUDE [sample-code](../includes/snippets/objc/update-activitybasedtimeoutpolicy-objc-snippets.md)] [!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/update-activitybasedtimeoutpolicy-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+ ---
v1.0 https://docs.microsoft.com/en-us/graph/api/claimsmappingpolicy-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/claimsmappingpolicy-update.md
@@ -76,8 +76,7 @@ Content-type: application/json
"definition-value" ], "displayName": "displayName-value",
- "isOrganizationDefault": true,
- "type": "type-value"
+ "isOrganizationDefault": true
} ``` # [JavaScript](#tab/javascript)
@@ -92,6 +91,10 @@ Content-type: application/json
[!INCLUDE [sample-code](../includes/snippets/objc/update-claimsmappingpolicy-objc-snippets.md)] [!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/update-claimsmappingpolicy-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+ ---
v1.0 https://docs.microsoft.com/en-us/graph/api/eventmessage-post-attachments https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/eventmessage-post-attachments.md
@@ -123,7 +123,9 @@ Content-type: application/json
{ "@odata.type": "#Microsoft.OutlookServices.ItemAttachment", "name": "name-value",
- "item": "message or event entity"
+ "item": {
+ "@odata.type": "microsoft.graph.message"
+ }
} ``` # [C#](#tab/csharp)
v1.0 https://docs.microsoft.com/en-us/graph/api/homerealmdiscoverypolicy-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/homerealmdiscoverypolicy-update.md
@@ -76,8 +76,7 @@ Content-type: application/json
"definition-value" ], "displayName": "displayName-value",
- "isOrganizationDefault": true,
- "type": "type-value"
+ "isOrganizationDefault": true
} ``` # [JavaScript](#tab/javascript)
@@ -92,6 +91,10 @@ Content-type: application/json
[!INCLUDE [sample-code](../includes/snippets/objc/update-homerealmdiscoverypolicy-objc-snippets.md)] [!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/update-homerealmdiscoverypolicy-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+ ---
v1.0 https://docs.microsoft.com/en-us/graph/api/onlinemeeting-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/onlinemeeting-get.md
@@ -337,6 +337,8 @@ GET https://graph.microsoft.com/beta/users/dc17674c-81d9-4adb-bfb2-8f6a442e4622/
The following example shows a request to download an attendee report. #### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "get-attendeeReport"
@@ -344,6 +346,24 @@ The following example shows a request to download an attendee report.
```msgraph-interactive GET https://graph.microsoft.com/beta/users/dc74d9bb-6afe-433d-8eaa-e39d80d3a647/onlineMeetings/dc17674c-81d9-4adb-bfb2-8f6a442e4622_19:meeting_ZWE0YzQwMzItYjEyNi00NjJjLWE4MjYtOTUxYjE1NmFjYWIw@thread.v2/attendeeReport ```
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/get-attendeereport-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/get-attendeereport-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/get-attendeereport-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/get-attendeereport-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
+ #### Response <!-- {
@@ -358,6 +378,8 @@ Location: https://01-a-noam.dog.attend.teams.microsoft.com/broadcast/909c6581-51
The following example shows a request to download a recording. #### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "get-recording"
@@ -365,6 +387,24 @@ The following example shows a request to download a recording.
```msgraph-interactive GET https://graph.microsoft.com/beta/users/dc74d9bb-6afe-433d-8eaa-e39d80d3a647/onlineMeetings/dc17674c-81d9-4adb-bfb2-8f6a442e4622_19:meeting_ZWE0YzQwMzItYjEyNi00NjJjLWE4MjYtOTUxYjE1NmFjYWIw@thread.v2/recording ```
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/get-recording-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/get-recording-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/get-recording-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/get-recording-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
+ #### Response <!-- {
v1.0 https://docs.microsoft.com/en-us/graph/api/tokenissuancepolicy-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/tokenissuancepolicy-update.md
@@ -76,8 +76,7 @@ Content-type: application/json
"definition-value" ], "displayName": "displayName-value",
- "isOrganizationDefault": true,
- "type": "type-value"
+ "isOrganizationDefault": true
} ``` # [C#](#tab/csharp)
@@ -92,6 +91,10 @@ Content-type: application/json
[!INCLUDE [sample-code](../includes/snippets/objc/update-tokenissuancepolicy-objc-snippets.md)] [!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/update-tokenissuancepolicy-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+ --- ---
v1.0 https://docs.microsoft.com/en-us/graph/api/tokenlifetimepolicy-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/tokenlifetimepolicy-update.md
@@ -76,8 +76,7 @@ Content-type: application/json
"definition-value" ], "displayName": "displayName-value",
- "isOrganizationDefault": true,
- "type": "type-value"
+ "isOrganizationDefault": true
} ``` # [JavaScript](#tab/javascript)
@@ -92,6 +91,10 @@ Content-type: application/json
[!INCLUDE [sample-code](../includes/snippets/objc/update-tokenlifetimepolicy-objc-snippets.md)] [!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/update-tokenlifetimepolicy-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+ ---
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
@@ -10,6 +10,8 @@ doc_type: apiPageType
# userTeamwork: sendActivityNotification Namespace: microsoft.graph
+[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
+ Send an activity feed notification to a user. For more details about sending notifications and the requirements for doing so, see [sending Teams activity notifications](/graph/teams-send-activityfeednotifications). ## Permissions
v1.0 https://docs.microsoft.com/en-us/graph/api/workforceintegration-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/workforceintegration-update.md
@@ -30,7 +30,7 @@ One of the following permissions is required to call this API. To learn more, in
<!-- { "blockType": "ignored" } --> ```http
-PATCH /teamwork/workforceIntegrations
+PATCH /teamwork/workforceIntegrations/{workforceIntegrationId}
``` ## Request headers
@@ -74,7 +74,7 @@ The following is an example of the request.
}--> ```http
-PATCH https://graph.microsoft.com/beta/teamwork/workforceIntegrations
+PATCH https://graph.microsoft.com/beta/teamwork/workforceIntegrations/{workforceIntegrationId}
Content-type: application/json {
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-item-attachment-from-eventmessage-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-item-attachment-from-eventmessage-csharp-snippets.md
@@ -9,7 +9,9 @@ GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var attachment = new ItemAttachment { Name = "name-value",
- Item = "message or event entity"
+ Item = new Message
+ {
+ }
}; await graphClient.Me.Events["{id}"].Attachments
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-attendeereport-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-attendeereport-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 stream = await graphClient.Users["dc74d9bb-6afe-433d-8eaa-e39d80d3a647"].OnlineMeetings["dc17674c-81d9-4adb-bfb2-8f6a442e4622_19:meeting_ZWE0YzQwMzItYjEyNi00NjJjLWE4MjYtOTUxYjE1NmFjYWIw@thread.v2"].AttendeeReport
+ .Request()
+ .GetAsync();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-recording-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-recording-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 stream = await graphClient.Users["dc74d9bb-6afe-433d-8eaa-e39d80d3a647"].OnlineMeetings["dc17674c-81d9-4adb-bfb2-8f6a442e4622_19:meeting_ZWE0YzQwMzItYjEyNi00NjJjLWE4MjYtOTUxYjE1NmFjYWIw@thread.v2"].Recording
+ .Request()
+ .GetAsync();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-activitybasedtimeoutpolicy-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/update-activitybasedtimeoutpolicy-csharp-snippets.md
@@ -13,8 +13,7 @@ var activityBasedTimeoutPolicy = new ActivityBasedTimeoutPolicy
"definition-value" }, DisplayName = "displayName-value",
- IsOrganizationDefault = true,
- Type = "type-value"
+ IsOrganizationDefault = true
}; await graphClient.Policies.ActivityBasedTimeoutPolicies["{id}"]
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-claimsmappingpolicy-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/update-claimsmappingpolicy-csharp-snippets.md
@@ -13,8 +13,7 @@ var claimsMappingPolicy = new ClaimsMappingPolicy
"definition-value" }, DisplayName = "displayName-value",
- IsOrganizationDefault = true,
- Type = "type-value"
+ IsOrganizationDefault = true
}; await graphClient.Policies.ClaimsMappingPolicies["{id}"]
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-homerealmdiscoverypolicy-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/update-homerealmdiscoverypolicy-csharp-snippets.md
@@ -13,8 +13,7 @@ var homeRealmDiscoveryPolicy = new HomeRealmDiscoveryPolicy
"definition-value" }, DisplayName = "displayName-value",
- IsOrganizationDefault = true,
- Type = "type-value"
+ IsOrganizationDefault = true
}; await graphClient.Policies.HomeRealmDiscoveryPolicies["{id}"]
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-tokenissuancepolicy-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/update-tokenissuancepolicy-csharp-snippets.md
@@ -13,8 +13,7 @@ var tokenIssuancePolicy = new TokenIssuancePolicy
"definition-value" }, DisplayName = "displayName-value",
- IsOrganizationDefault = true,
- Type = "type-value"
+ IsOrganizationDefault = true
}; await graphClient.Policies.TokenIssuancePolicies["{id}"]
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-tokenlifetimepolicy-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/update-tokenlifetimepolicy-csharp-snippets.md
@@ -13,8 +13,7 @@ var tokenLifetimePolicy = new TokenLifetimePolicy
"definition-value" }, DisplayName = "displayName-value",
- IsOrganizationDefault = true,
- Type = "type-value"
+ IsOrganizationDefault = true
}; await graphClient.Policies.TokenLifetimePolicies["{id}"]
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-workforceintegration-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/update-workforceintegration-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var workforceIntegrations = new WorkforceIntegration
+var workforceIntegration = new WorkforceIntegration
{ DisplayName = "displayName-value", ApiVersion = 99,
@@ -20,8 +20,8 @@ var workforceIntegrations = new WorkforceIntegration
Supports = WorkforceIntegrationSupportedEntities.None };
-await graphClient.Teamwork.WorkforceIntegrations
+await graphClient.Teamwork.WorkforceIntegrations["{workforceIntegrationId}"]
.Request()
- .UpdateAsync(workforceIntegrations);
+ .UpdateAsync(workforceIntegration);
```\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-item-attachment-from-eventmessage-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-item-attachment-from-eventmessage-java-snippets.md
@@ -8,7 +8,8 @@ IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
ItemAttachment attachment = new ItemAttachment(); attachment.name = "name-value";
-attachment.item = "message or event entity";
+Message item = new Message();
+attachment.item = item;
graphClient.me().events("{id}").attachments() .buildRequest()
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-attendeereport-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-attendeereport-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();
+
+InputStream stream = graphClient.customRequest("/users/dc74d9bb-6afe-433d-8eaa-e39d80d3a647/onlineMeetings/dc17674c-81d9-4adb-bfb2-8f6a442e4622_19:meeting_ZWE0YzQwMzItYjEyNi00NjJjLWE4MjYtOTUxYjE1NmFjYWIw@thread.v2/attendeeReport", InputStream.class)
+ .buildRequest()
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-recording-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-recording-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();
+
+InputStream stream = graphClient.customRequest("/users/dc74d9bb-6afe-433d-8eaa-e39d80d3a647/onlineMeetings/dc17674c-81d9-4adb-bfb2-8f6a442e4622_19:meeting_ZWE0YzQwMzItYjEyNi00NjJjLWE4MjYtOTUxYjE1NmFjYWIw@thread.v2/recording", InputStream.class)
+ .buildRequest()
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-activitybasedtimeoutpolicy-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/update-activitybasedtimeoutpolicy-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();
+
+ActivityBasedTimeoutPolicy activityBasedTimeoutPolicy = new ActivityBasedTimeoutPolicy();
+LinkedList<String> definitionList = new LinkedList<String>();
+definitionList.add("definition-value");
+activityBasedTimeoutPolicy.definition = definitionList;
+activityBasedTimeoutPolicy.displayName = "displayName-value";
+activityBasedTimeoutPolicy.isOrganizationDefault = true;
+
+graphClient.policies().activityBasedTimeoutPolicies("{id}")
+ .buildRequest()
+ .patch(activityBasedTimeoutPolicy);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-claimsmappingpolicy-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/update-claimsmappingpolicy-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();
+
+ClaimsMappingPolicy claimsMappingPolicy = new ClaimsMappingPolicy();
+LinkedList<String> definitionList = new LinkedList<String>();
+definitionList.add("definition-value");
+claimsMappingPolicy.definition = definitionList;
+claimsMappingPolicy.displayName = "displayName-value";
+claimsMappingPolicy.isOrganizationDefault = true;
+
+graphClient.policies().claimsMappingPolicies("{id}")
+ .buildRequest()
+ .patch(claimsMappingPolicy);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-homerealmdiscoverypolicy-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/update-homerealmdiscoverypolicy-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();
+
+HomeRealmDiscoveryPolicy homeRealmDiscoveryPolicy = new HomeRealmDiscoveryPolicy();
+LinkedList<String> definitionList = new LinkedList<String>();
+definitionList.add("definition-value");
+homeRealmDiscoveryPolicy.definition = definitionList;
+homeRealmDiscoveryPolicy.displayName = "displayName-value";
+homeRealmDiscoveryPolicy.isOrganizationDefault = true;
+
+graphClient.policies().homeRealmDiscoveryPolicies("{id}")
+ .buildRequest()
+ .patch(homeRealmDiscoveryPolicy);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-tokenissuancepolicy-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/update-tokenissuancepolicy-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();
+
+TokenIssuancePolicy tokenIssuancePolicy = new TokenIssuancePolicy();
+LinkedList<String> definitionList = new LinkedList<String>();
+definitionList.add("definition-value");
+tokenIssuancePolicy.definition = definitionList;
+tokenIssuancePolicy.displayName = "displayName-value";
+tokenIssuancePolicy.isOrganizationDefault = true;
+
+graphClient.policies().tokenIssuancePolicies("{id}")
+ .buildRequest()
+ .patch(tokenIssuancePolicy);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-tokenlifetimepolicy-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/update-tokenlifetimepolicy-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();
+
+TokenLifetimePolicy tokenLifetimePolicy = new TokenLifetimePolicy();
+LinkedList<String> definitionList = new LinkedList<String>();
+definitionList.add("definition-value");
+tokenLifetimePolicy.definition = definitionList;
+tokenLifetimePolicy.displayName = "displayName-value";
+tokenLifetimePolicy.isOrganizationDefault = true;
+
+graphClient.policies().tokenLifetimePolicies("{id}")
+ .buildRequest()
+ .patch(tokenLifetimePolicy);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-workforceintegration-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/update-workforceintegration-java-snippets.md
@@ -6,19 +6,19 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-WorkforceIntegration workforceIntegrations = new WorkforceIntegration();
-workforceIntegrations.displayName = "displayName-value";
-workforceIntegrations.apiVersion = 99;
+WorkforceIntegration workforceIntegration = new WorkforceIntegration();
+workforceIntegration.displayName = "displayName-value";
+workforceIntegration.apiVersion = 99;
WorkforceIntegrationEncryption encryption = new WorkforceIntegrationEncryption(); encryption.protocol = WorkforceIntegrationEncryptionProtocol.SHARED_SECRET; encryption.secret = "secret-value";
-workforceIntegrations.encryption = encryption;
-workforceIntegrations.isActive = true;
-workforceIntegrations.url = "url-value";
-workforceIntegrations.supports = EnumSet.of(WorkforceIntegrationSupportedEntities.NONE);
+workforceIntegration.encryption = encryption;
+workforceIntegration.isActive = true;
+workforceIntegration.url = "url-value";
+workforceIntegration.supports = EnumSet.of(WorkforceIntegrationSupportedEntities.NONE);
-graphClient.teamwork().workforceIntegrations()
+graphClient.teamwork().workforceIntegrations("{workforceIntegrationId}")
.buildRequest()
- .patch(workforceIntegrations);
+ .patch(workforceIntegration);
```\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-item-attachment-from-eventmessage-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-item-attachment-from-eventmessage-javascript-snippets.md
@@ -13,7 +13,9 @@ const client = Client.init(options);
const attachment = { @odata.type: "#Microsoft.OutlookServices.ItemAttachment", name: "name-value",
- item: "message or event entity"
+ item: {
+ @odata.type: "microsoft.graph.message"
+ }
}; let res = await client.api('/me/events/{id}/attachments')
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-attendeereport-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-attendeereport-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/dc74d9bb-6afe-433d-8eaa-e39d80d3a647/onlineMeetings/dc17674c-81d9-4adb-bfb2-8f6a442e4622_19:meeting_ZWE0YzQwMzItYjEyNi00NjJjLWE4MjYtOTUxYjE1NmFjYWIw@thread.v2/attendeeReport')
+ .version('beta')
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-recording-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-recording-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/dc74d9bb-6afe-433d-8eaa-e39d80d3a647/onlineMeetings/dc17674c-81d9-4adb-bfb2-8f6a442e4622_19:meeting_ZWE0YzQwMzItYjEyNi00NjJjLWE4MjYtOTUxYjE1NmFjYWIw@thread.v2/recording')
+ .version('beta')
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-activitybasedtimeoutpolicy-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/update-activitybasedtimeoutpolicy-javascript-snippets.md
@@ -15,8 +15,7 @@ const activityBasedTimeoutPolicy = {
"definition-value" ], displayName: "displayName-value",
- isOrganizationDefault: true,
- type: "type-value"
+ isOrganizationDefault: true
}; let res = await client.api('/policies/activityBasedTimeoutPolicies/{id}')
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-claimsmappingpolicy-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/update-claimsmappingpolicy-javascript-snippets.md
@@ -15,8 +15,7 @@ const claimsMappingPolicy = {
"definition-value" ], displayName: "displayName-value",
- isOrganizationDefault: true,
- type: "type-value"
+ isOrganizationDefault: true
}; let res = await client.api('/policies/claimsMappingPolicies/{id}')
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-homerealmdiscoverypolicy-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/update-homerealmdiscoverypolicy-javascript-snippets.md
@@ -15,8 +15,7 @@ const homeRealmDiscoveryPolicy = {
"definition-value" ], displayName: "displayName-value",
- isOrganizationDefault: true,
- type: "type-value"
+ isOrganizationDefault: true
}; let res = await client.api('/policies/homeRealmDiscoveryPolicies/{id}')
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-tokenissuancepolicy-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/update-tokenissuancepolicy-javascript-snippets.md
@@ -15,8 +15,7 @@ const tokenIssuancePolicy = {
"definition-value" ], displayName: "displayName-value",
- isOrganizationDefault: true,
- type: "type-value"
+ isOrganizationDefault: true
}; let res = await client.api('/policies/tokenIssuancePolicies/{id}')
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-tokenlifetimepolicy-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/update-tokenlifetimepolicy-javascript-snippets.md
@@ -15,8 +15,7 @@ const tokenLifetimePolicy = {
"definition-value" ], displayName: "displayName-value",
- isOrganizationDefault: true,
- type: "type-value"
+ isOrganizationDefault: true
}; let res = await client.api('/policies/tokenLifetimePolicies/{id}')
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-workforceintegration-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/update-workforceintegration-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-const workforceIntegrations = {
+const workforceIntegration = {
displayName: "displayName-value", apiVersion: 99, encryption: {
@@ -22,8 +22,8 @@ const workforceIntegrations = {
supports: "supports-value" };
-let res = await client.api('/teamwork/workforceIntegrations')
+let res = await client.api('/teamwork/workforceIntegrations/{workforceIntegrationId}')
.version('beta')
- .update(workforceIntegrations);
+ .update(workforceIntegration);
```\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-item-attachment-from-eventmessage-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-item-attachment-from-eventmessage-objc-snippets.md
@@ -13,7 +13,8 @@ NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URL
MSGraphAttachment *attachment = [[MSGraphAttachment alloc] init]; [attachment setName:@"name-value"];
-[attachment setItem:@"message or event entity"];
+MSGraphOutlookItem *item = [[MSGraphOutlookItem alloc] init];
+[attachment setItem:item];
NSError *error; NSData *attachmentData = [attachment getSerializedDataWithError:&error];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-attendeereport-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-attendeereport-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/dc74d9bb-6afe-433d-8eaa-e39d80d3a647/onlineMeetings/dc17674c-81d9-4adb-bfb2-8f6a442e4622_19:meeting_ZWE0YzQwMzItYjEyNi00NjJjLWE4MjYtOTUxYjE1NmFjYWIw@thread.v2/attendeeReport"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ MSGraphStream *stream = [[MSGraphStream 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-recording-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-recording-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/dc74d9bb-6afe-433d-8eaa-e39d80d3a647/onlineMeetings/dc17674c-81d9-4adb-bfb2-8f6a442e4622_19:meeting_ZWE0YzQwMzItYjEyNi00NjJjLWE4MjYtOTUxYjE1NmFjYWIw@thread.v2/recording"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ MSGraphStream *stream = [[MSGraphStream 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/update-activitybasedtimeoutpolicy-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/update-activitybasedtimeoutpolicy-objc-snippets.md
@@ -17,7 +17,6 @@ NSMutableArray *definitionList = [[NSMutableArray alloc] init];
[activityBasedTimeoutPolicy setDefinition:definitionList]; [activityBasedTimeoutPolicy setDisplayName:@"displayName-value"]; [activityBasedTimeoutPolicy setIsOrganizationDefault: true];
-[activityBasedTimeoutPolicy setType:@"type-value"];
NSError *error; NSData *activityBasedTimeoutPolicyData = [activityBasedTimeoutPolicy getSerializedDataWithError:&error];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-claimsmappingpolicy-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/update-claimsmappingpolicy-objc-snippets.md
@@ -17,7 +17,6 @@ NSMutableArray *definitionList = [[NSMutableArray alloc] init];
[claimsMappingPolicy setDefinition:definitionList]; [claimsMappingPolicy setDisplayName:@"displayName-value"]; [claimsMappingPolicy setIsOrganizationDefault: true];
-[claimsMappingPolicy setType:@"type-value"];
NSError *error; NSData *claimsMappingPolicyData = [claimsMappingPolicy getSerializedDataWithError:&error];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-homerealmdiscoverypolicy-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/update-homerealmdiscoverypolicy-objc-snippets.md
@@ -17,7 +17,6 @@ NSMutableArray *definitionList = [[NSMutableArray alloc] init];
[homeRealmDiscoveryPolicy setDefinition:definitionList]; [homeRealmDiscoveryPolicy setDisplayName:@"displayName-value"]; [homeRealmDiscoveryPolicy setIsOrganizationDefault: true];
-[homeRealmDiscoveryPolicy setType:@"type-value"];
NSError *error; NSData *homeRealmDiscoveryPolicyData = [homeRealmDiscoveryPolicy getSerializedDataWithError:&error];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-tokenissuancepolicy-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/update-tokenissuancepolicy-objc-snippets.md
@@ -17,7 +17,6 @@ NSMutableArray *definitionList = [[NSMutableArray alloc] init];
[tokenIssuancePolicy setDefinition:definitionList]; [tokenIssuancePolicy setDisplayName:@"displayName-value"]; [tokenIssuancePolicy setIsOrganizationDefault: true];
-[tokenIssuancePolicy setType:@"type-value"];
NSError *error; NSData *tokenIssuancePolicyData = [tokenIssuancePolicy getSerializedDataWithError:&error];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-tokenlifetimepolicy-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/update-tokenlifetimepolicy-objc-snippets.md
@@ -17,7 +17,6 @@ NSMutableArray *definitionList = [[NSMutableArray alloc] init];
[tokenLifetimePolicy setDefinition:definitionList]; [tokenLifetimePolicy setDisplayName:@"displayName-value"]; [tokenLifetimePolicy setIsOrganizationDefault: true];
-[tokenLifetimePolicy setType:@"type-value"];
NSError *error; NSData *tokenLifetimePolicyData = [tokenLifetimePolicy getSerializedDataWithError:&error];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-workforceintegration-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/update-workforceintegration-objc-snippets.md
@@ -7,24 +7,24 @@ 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:@"/teamwork/workforceIntegrations"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/teamwork/workforceIntegrations/{workforceIntegrationId}"]]];
[urlRequest setHTTPMethod:@"PATCH"]; [urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
-MSGraphWorkforceIntegration *workforceIntegrations = [[MSGraphWorkforceIntegration alloc] init];
-[workforceIntegrations setDisplayName:@"displayName-value"];
-[workforceIntegrations setApiVersion: 99];
+MSGraphWorkforceIntegration *workforceIntegration = [[MSGraphWorkforceIntegration alloc] init];
+[workforceIntegration setDisplayName:@"displayName-value"];
+[workforceIntegration setApiVersion: 99];
MSGraphWorkforceIntegrationEncryption *encryption = [[MSGraphWorkforceIntegrationEncryption alloc] init]; [encryption setProtocol: [MSGraphWorkforceIntegrationEncryptionProtocol sharedSecret]]; [encryption setSecret:@"secret-value"];
-[workforceIntegrations setEncryption:encryption];
-[workforceIntegrations setIsActive: true];
-[workforceIntegrations setUrl:@"url-value"];
-[workforceIntegrations setSupports: [MSGraphWorkforceIntegrationSupportedEntities none]];
+[workforceIntegration setEncryption:encryption];
+[workforceIntegration setIsActive: true];
+[workforceIntegration setUrl:@"url-value"];
+[workforceIntegration setSupports: [MSGraphWorkforceIntegrationSupportedEntities none]];
NSError *error;
-NSData *workforceIntegrationsData = [workforceIntegrations getSerializedDataWithError:&error];
-[urlRequest setHTTPBody:workforceIntegrationsData];
+NSData *workforceIntegrationData = [workforceIntegration getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:workforceIntegrationData];
MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
v1.0 https://docs.microsoft.com/en-us/graph/resources/grouplifecyclepolicy https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/grouplifecyclepolicy.md
@@ -11,6 +11,8 @@ doc_type: resourcePageType
Namespace: microsoft.graph
+[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
+ Represents a lifecycle policy for a Microsoft 365 group. A group lifecycle policy allows administrators to set an expiration period for groups. For example, after 180 days, a group expires. When a group reaches its expiration, owners of the group are required to renew their group within a time interval defined by the administrator. Once renewed, the group expiration is extended by the number of days defined in the policy. For example, the group's new expiration is 180 days after renewal. If the group is not renewed, it expires and is deleted. The group can be restored within a period of 30 days from deletion. ## Methods
v1.0 https://docs.microsoft.com/en-us/graph/api/activitybasedtimeoutpolicy-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/activitybasedtimeoutpolicy-update.md
@@ -77,8 +77,7 @@ Content-type: application/json
"definition-value" ], "displayName": "displayName-value",
- "isOrganizationDefault": true,
- "type": "type-value"
+ "isOrganizationDefault": true
} ``` # [C#](#tab/csharp)
v1.0 https://docs.microsoft.com/en-us/graph/api/claimsmappingpolicy-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/claimsmappingpolicy-update.md
@@ -74,8 +74,7 @@ Content-type: application/json
"definition-value" ], "displayName": "displayName-value",
- "isOrganizationDefault": true,
- "type": "type-value"
+ "isOrganizationDefault": true
} ``` # [JavaScript](#tab/javascript)
@@ -90,6 +89,10 @@ Content-type: application/json
[!INCLUDE [sample-code](../includes/snippets/java/update-claimsmappingpolicy-java-snippets.md)] [!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/update-claimsmappingpolicy-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+ ---
v1.0 https://docs.microsoft.com/en-us/graph/api/eventmessage-post-attachments https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/eventmessage-post-attachments.md
@@ -122,7 +122,9 @@ Content-length: 100
{ "@odata.type": "#Microsoft.OutlookServices.ItemAttachment", "name": "name-value",
- "item": "message or event entity"
+ "item": {
+ "@odata.type": "microsoft.graph.message"
+ }
} ``` # [C#](#tab/csharp)
v1.0 https://docs.microsoft.com/en-us/graph/api/homerealmdiscoverypolicy-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/homerealmdiscoverypolicy-update.md
@@ -77,8 +77,7 @@ Content-type: application/json
"definition-value" ], "displayName": "displayName-value",
- "isOrganizationDefault": true,
- "type": "type-value"
+ "isOrganizationDefault": true
} ``` # [C#](#tab/csharp)
v1.0 https://docs.microsoft.com/en-us/graph/api/tokenissuancepolicy-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/tokenissuancepolicy-update.md
@@ -77,8 +77,7 @@ Content-type: application/json
"definition-value" ], "displayName": "displayName-value",
- "isOrganizationDefault": true,
- "type": "type-value"
+ "isOrganizationDefault": true
} ``` # [C#](#tab/csharp)
v1.0 https://docs.microsoft.com/en-us/graph/api/tokenlifetimepolicy-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/tokenlifetimepolicy-update.md
@@ -77,8 +77,7 @@ Content-type: application/json
"definition-value" ], "displayName": "displayName-value",
- "isOrganizationDefault": true,
- "type": "type-value"
+ "isOrganizationDefault": true
} ``` # [C#](#tab/csharp)
v1.0 https://docs.microsoft.com/en-us/graph/api/workforceintegration-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/workforceintegration-update.md
@@ -30,7 +30,7 @@ One of the following permissions is required to call this API. To learn more, in
<!-- { "blockType": "ignored" } --> ```http
-PATCH /teamwork/workforceIntegrations
+PATCH /teamwork/workforceIntegrations/{workforceIntegrationId}
``` ## Request headers
@@ -70,7 +70,7 @@ The following is an example of the request.
}--> ```http
-PATCH https://graph.microsoft.com/v1.0/teamwork/workforceIntegrations
+PATCH https://graph.microsoft.com/v1.0/teamwork/workforceIntegrations/{workforceIntegrationId}
Content-type: application/json {
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-item-attachment-from-eventmessage-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/create-item-attachment-from-eventmessage-csharp-snippets.md
@@ -9,7 +9,9 @@ GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var attachment = new ItemAttachment { Name = "name-value",
- Item = "message or event entity"
+ Item = new Message
+ {
+ }
}; await graphClient.Me.Events["{id}"].Attachments
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-activitybasedtimeoutpolicy-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/update-activitybasedtimeoutpolicy-csharp-snippets.md
@@ -13,8 +13,7 @@ var activityBasedTimeoutPolicy = new ActivityBasedTimeoutPolicy
"definition-value" }, DisplayName = "displayName-value",
- IsOrganizationDefault = true,
- Type = "type-value"
+ IsOrganizationDefault = true
}; await graphClient.Policies.ActivityBasedTimeoutPolicies["{id}"]
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-claimsmappingpolicy-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/update-claimsmappingpolicy-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 claimsMappingPolicy = new ClaimsMappingPolicy
+{
+ Definition = new List<String>()
+ {
+ "definition-value"
+ },
+ DisplayName = "displayName-value",
+ IsOrganizationDefault = true
+};
+
+await graphClient.Policies.ClaimsMappingPolicies["{id}"]
+ .Request()
+ .UpdateAsync(claimsMappingPolicy);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-homerealmdiscoverypolicy-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/update-homerealmdiscoverypolicy-csharp-snippets.md
@@ -13,8 +13,7 @@ var homeRealmDiscoveryPolicy = new HomeRealmDiscoveryPolicy
"definition-value" }, DisplayName = "displayName-value",
- IsOrganizationDefault = true,
- Type = "type-value"
+ IsOrganizationDefault = true
}; await graphClient.Policies.HomeRealmDiscoveryPolicies["{id}"]
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-tokenissuancepolicy-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/update-tokenissuancepolicy-csharp-snippets.md
@@ -13,8 +13,7 @@ var tokenIssuancePolicy = new TokenIssuancePolicy
"definition-value" }, DisplayName = "displayName-value",
- IsOrganizationDefault = true,
- Type = "type-value"
+ IsOrganizationDefault = true
}; await graphClient.Policies.TokenIssuancePolicies["{id}"]
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-tokenlifetimepolicy-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/update-tokenlifetimepolicy-csharp-snippets.md
@@ -13,8 +13,7 @@ var tokenLifetimePolicy = new TokenLifetimePolicy
"definition-value" }, DisplayName = "displayName-value",
- IsOrganizationDefault = true,
- Type = "type-value"
+ IsOrganizationDefault = true
}; await graphClient.Policies.TokenLifetimePolicies["{id}"]
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-workforceintegration-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/update-workforceintegration-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var workforceIntegrations = new WorkforceIntegration
+var workforceIntegration = new WorkforceIntegration
{ DisplayName = "displayName-value", ApiVersion = 99,
@@ -20,8 +20,8 @@ var workforceIntegrations = new WorkforceIntegration
SupportedEntities = WorkforceIntegrationSupportedEntities.None };
-await graphClient.Teamwork.WorkforceIntegrations
+await graphClient.Teamwork.WorkforceIntegrations["{workforceIntegrationId}"]
.Request()
- .UpdateAsync(workforceIntegrations);
+ .UpdateAsync(workforceIntegration);
```\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-item-attachment-from-eventmessage-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/create-item-attachment-from-eventmessage-java-snippets.md
@@ -8,7 +8,8 @@ IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
ItemAttachment attachment = new ItemAttachment(); attachment.name = "name-value";
-attachment.item = "message or event entity";
+Message item = new Message();
+attachment.item = item;
graphClient.me().events("{id}").attachments() .buildRequest()
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-activitybasedtimeoutpolicy-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/update-activitybasedtimeoutpolicy-java-snippets.md
@@ -12,7 +12,6 @@ definitionList.add("definition-value");
activityBasedTimeoutPolicy.definition = definitionList; activityBasedTimeoutPolicy.displayName = "displayName-value"; activityBasedTimeoutPolicy.isOrganizationDefault = true;
-activityBasedTimeoutPolicy.type = "type-value";
graphClient.policies().activityBasedTimeoutPolicies("{id}") .buildRequest()
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-claimsmappingpolicy-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/update-claimsmappingpolicy-java-snippets.md
@@ -12,7 +12,6 @@ definitionList.add("definition-value");
claimsMappingPolicy.definition = definitionList; claimsMappingPolicy.displayName = "displayName-value"; claimsMappingPolicy.isOrganizationDefault = true;
-claimsMappingPolicy.type = "type-value";
graphClient.policies().claimsMappingPolicies("{id}") .buildRequest()
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-homerealmdiscoverypolicy-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/update-homerealmdiscoverypolicy-java-snippets.md
@@ -12,7 +12,6 @@ definitionList.add("definition-value");
homeRealmDiscoveryPolicy.definition = definitionList; homeRealmDiscoveryPolicy.displayName = "displayName-value"; homeRealmDiscoveryPolicy.isOrganizationDefault = true;
-homeRealmDiscoveryPolicy.type = "type-value";
graphClient.policies().homeRealmDiscoveryPolicies("{id}") .buildRequest()
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-tokenissuancepolicy-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/update-tokenissuancepolicy-java-snippets.md
@@ -12,7 +12,6 @@ definitionList.add("definition-value");
tokenIssuancePolicy.definition = definitionList; tokenIssuancePolicy.displayName = "displayName-value"; tokenIssuancePolicy.isOrganizationDefault = true;
-tokenIssuancePolicy.type = "type-value";
graphClient.policies().tokenIssuancePolicies("{id}") .buildRequest()
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-tokenlifetimepolicy-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/update-tokenlifetimepolicy-java-snippets.md
@@ -12,7 +12,6 @@ definitionList.add("definition-value");
tokenLifetimePolicy.definition = definitionList; tokenLifetimePolicy.displayName = "displayName-value"; tokenLifetimePolicy.isOrganizationDefault = true;
-tokenLifetimePolicy.type = "type-value";
graphClient.policies().tokenLifetimePolicies("{id}") .buildRequest()
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-workforceintegration-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/update-workforceintegration-java-snippets.md
@@ -6,19 +6,19 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-WorkforceIntegration workforceIntegrations = new WorkforceIntegration();
-workforceIntegrations.displayName = "displayName-value";
-workforceIntegrations.apiVersion = 99;
+WorkforceIntegration workforceIntegration = new WorkforceIntegration();
+workforceIntegration.displayName = "displayName-value";
+workforceIntegration.apiVersion = 99;
WorkforceIntegrationEncryption encryption = new WorkforceIntegrationEncryption(); encryption.protocol = WorkforceIntegrationEncryptionProtocol.SHARED_SECRET; encryption.secret = "secret-value";
-workforceIntegrations.encryption = encryption;
-workforceIntegrations.isActive = true;
-workforceIntegrations.url = "url-value";
-workforceIntegrations.supportedEntities = EnumSet.of(WorkforceIntegrationSupportedEntities.NONE);
+workforceIntegration.encryption = encryption;
+workforceIntegration.isActive = true;
+workforceIntegration.url = "url-value";
+workforceIntegration.supportedEntities = EnumSet.of(WorkforceIntegrationSupportedEntities.NONE);
-graphClient.teamwork().workforceIntegrations()
+graphClient.teamwork().workforceIntegrations("{workforceIntegrationId}")
.buildRequest()
- .patch(workforceIntegrations);
+ .patch(workforceIntegration);
```\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-item-attachment-from-eventmessage-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/create-item-attachment-from-eventmessage-javascript-snippets.md
@@ -13,7 +13,9 @@ const client = Client.init(options);
const attachment = { @odata.type: "#Microsoft.OutlookServices.ItemAttachment", name: "name-value",
- item: "message or event entity"
+ item: {
+ @odata.type: "microsoft.graph.message"
+ }
}; let res = await client.api('/me/events/{id}/attachments')
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-activitybasedtimeoutpolicy-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/update-activitybasedtimeoutpolicy-javascript-snippets.md
@@ -15,8 +15,7 @@ const activityBasedTimeoutPolicy = {
"definition-value" ], displayName: "displayName-value",
- isOrganizationDefault: true,
- type: "type-value"
+ isOrganizationDefault: true
}; let res = await client.api('/policies/activityBasedTimeoutPolicies/{id}')
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-claimsmappingpolicy-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/update-claimsmappingpolicy-javascript-snippets.md
@@ -15,8 +15,7 @@ const claimsMappingPolicy = {
"definition-value" ], displayName: "displayName-value",
- isOrganizationDefault: true,
- type: "type-value"
+ isOrganizationDefault: true
}; let res = await client.api('/policies/claimsMappingPolicies/{id}')
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-homerealmdiscoverypolicy-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/update-homerealmdiscoverypolicy-javascript-snippets.md
@@ -15,8 +15,7 @@ const homeRealmDiscoveryPolicy = {
"definition-value" ], displayName: "displayName-value",
- isOrganizationDefault: true,
- type: "type-value"
+ isOrganizationDefault: true
}; let res = await client.api('/policies/homeRealmDiscoveryPolicies/{id}')
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-tokenissuancepolicy-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/update-tokenissuancepolicy-javascript-snippets.md
@@ -15,8 +15,7 @@ const tokenIssuancePolicy = {
"definition-value" ], displayName: "displayName-value",
- isOrganizationDefault: true,
- type: "type-value"
+ isOrganizationDefault: true
}; let res = await client.api('/policies/tokenIssuancePolicies/{id}')
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-tokenlifetimepolicy-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/update-tokenlifetimepolicy-javascript-snippets.md
@@ -15,8 +15,7 @@ const tokenLifetimePolicy = {
"definition-value" ], displayName: "displayName-value",
- isOrganizationDefault: true,
- type: "type-value"
+ isOrganizationDefault: true
}; let res = await client.api('/policies/tokenLifetimePolicies/{id}')
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-workforceintegration-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/update-workforceintegration-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-const workforceIntegrations = {
+const workforceIntegration = {
displayName: "displayName-value", apiVersion: 99, encryption: {
@@ -22,7 +22,7 @@ const workforceIntegrations = {
supportedEntities: "supportedEntities-value" };
-let res = await client.api('/teamwork/workforceIntegrations')
- .update(workforceIntegrations);
+let res = await client.api('/teamwork/workforceIntegrations/{workforceIntegrationId}')
+ .update(workforceIntegration);
```\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-item-attachment-from-eventmessage-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/create-item-attachment-from-eventmessage-objc-snippets.md
@@ -13,7 +13,8 @@ NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URL
MSGraphAttachment *attachment = [[MSGraphAttachment alloc] init]; [attachment setName:@"name-value"];
-[attachment setItem:@"message or event entity"];
+MSGraphOutlookItem *item = [[MSGraphOutlookItem alloc] init];
+[attachment setItem:item];
NSError *error; NSData *attachmentData = [attachment getSerializedDataWithError:&error];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-activitybasedtimeoutpolicy-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/update-activitybasedtimeoutpolicy-objc-snippets.md
@@ -17,7 +17,6 @@ NSMutableArray *definitionList = [[NSMutableArray alloc] init];
[activityBasedTimeoutPolicy setDefinition:definitionList]; [activityBasedTimeoutPolicy setDisplayName:@"displayName-value"]; [activityBasedTimeoutPolicy setIsOrganizationDefault: true];
-[activityBasedTimeoutPolicy setType:@"type-value"];
NSError *error; NSData *activityBasedTimeoutPolicyData = [activityBasedTimeoutPolicy getSerializedDataWithError:&error];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-claimsmappingpolicy-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/update-claimsmappingpolicy-objc-snippets.md
@@ -17,7 +17,6 @@ NSMutableArray *definitionList = [[NSMutableArray alloc] init];
[claimsMappingPolicy setDefinition:definitionList]; [claimsMappingPolicy setDisplayName:@"displayName-value"]; [claimsMappingPolicy setIsOrganizationDefault: true];
-[claimsMappingPolicy setType:@"type-value"];
NSError *error; NSData *claimsMappingPolicyData = [claimsMappingPolicy getSerializedDataWithError:&error];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-homerealmdiscoverypolicy-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/update-homerealmdiscoverypolicy-objc-snippets.md
@@ -17,7 +17,6 @@ NSMutableArray *definitionList = [[NSMutableArray alloc] init];
[homeRealmDiscoveryPolicy setDefinition:definitionList]; [homeRealmDiscoveryPolicy setDisplayName:@"displayName-value"]; [homeRealmDiscoveryPolicy setIsOrganizationDefault: true];
-[homeRealmDiscoveryPolicy setType:@"type-value"];
NSError *error; NSData *homeRealmDiscoveryPolicyData = [homeRealmDiscoveryPolicy getSerializedDataWithError:&error];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-tokenissuancepolicy-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/update-tokenissuancepolicy-objc-snippets.md
@@ -17,7 +17,6 @@ NSMutableArray *definitionList = [[NSMutableArray alloc] init];
[tokenIssuancePolicy setDefinition:definitionList]; [tokenIssuancePolicy setDisplayName:@"displayName-value"]; [tokenIssuancePolicy setIsOrganizationDefault: true];
-[tokenIssuancePolicy setType:@"type-value"];
NSError *error; NSData *tokenIssuancePolicyData = [tokenIssuancePolicy getSerializedDataWithError:&error];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-tokenlifetimepolicy-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/update-tokenlifetimepolicy-objc-snippets.md
@@ -17,7 +17,6 @@ NSMutableArray *definitionList = [[NSMutableArray alloc] init];
[tokenLifetimePolicy setDefinition:definitionList]; [tokenLifetimePolicy setDisplayName:@"displayName-value"]; [tokenLifetimePolicy setIsOrganizationDefault: true];
-[tokenLifetimePolicy setType:@"type-value"];
NSError *error; NSData *tokenLifetimePolicyData = [tokenLifetimePolicy getSerializedDataWithError:&error];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-workforceintegration-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/update-workforceintegration-objc-snippets.md
@@ -7,24 +7,24 @@ 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:@"/teamwork/workforceIntegrations"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/teamwork/workforceIntegrations/{workforceIntegrationId}"]]];
[urlRequest setHTTPMethod:@"PATCH"]; [urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
-MSGraphWorkforceIntegration *workforceIntegrations = [[MSGraphWorkforceIntegration alloc] init];
-[workforceIntegrations setDisplayName:@"displayName-value"];
-[workforceIntegrations setApiVersion: 99];
+MSGraphWorkforceIntegration *workforceIntegration = [[MSGraphWorkforceIntegration alloc] init];
+[workforceIntegration setDisplayName:@"displayName-value"];
+[workforceIntegration setApiVersion: 99];
MSGraphWorkforceIntegrationEncryption *encryption = [[MSGraphWorkforceIntegrationEncryption alloc] init]; [encryption setProtocol: [MSGraphWorkforceIntegrationEncryptionProtocol sharedSecret]]; [encryption setSecret:@"secret-value"];
-[workforceIntegrations setEncryption:encryption];
-[workforceIntegrations setIsActive: true];
-[workforceIntegrations setUrl:@"url-value"];
-[workforceIntegrations setSupportedEntities: [MSGraphWorkforceIntegrationSupportedEntities none]];
+[workforceIntegration setEncryption:encryption];
+[workforceIntegration setIsActive: true];
+[workforceIntegration setUrl:@"url-value"];
+[workforceIntegration setSupportedEntities: [MSGraphWorkforceIntegrationSupportedEntities none]];
NSError *error;
-NSData *workforceIntegrationsData = [workforceIntegrations getSerializedDataWithError:&error];
-[urlRequest setHTTPBody:workforceIntegrationsData];
+NSData *workforceIntegrationData = [workforceIntegration getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:workforceIntegrationData];
MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {