Updates from: 02/13/2021 04:18:26
Service Microsoft Docs article Related commit history on GitHub Change details
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackage-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackage-delete.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.ReadWrite.All |
## HTTP request
@@ -31,7 +31,6 @@ One of the following permissions is required to call this API. To learn more, in
```http DELETE /identityGovernance/entitlementManagement/accessPackages/{id}- ``` ## Request headers
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackage-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackage-get.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackage-list-accesspackageresourcerolescopes https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackage-list-accesspackageresourcerolescopes.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackage-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackage-list.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackage-post-accesspackageresourcerolescopes https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackage-post-accesspackageresourcerolescopes.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackage-post https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackage-post.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackage-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackage-update.md
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:| |Delegated (work or school account) | EntitlementManagement.ReadWrite.All | |Delegated (personal Microsoft account) | Not supported. |
-|Application | Not supported. |
+|Application | EntitlementManagement.ReadWrite.All |
## HTTP request <!-- {
@@ -100,7 +100,6 @@ Content-length: 38
``` http HTTP/1.1 204 No Content Content-Type: application/json- ``` <!--
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageassignment-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageassignment-list.md
@@ -24,7 +24,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageassignmentpolicy-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageassignmentpolicy-delete.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageassignmentpolicy-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageassignmentpolicy-get.md
@@ -24,7 +24,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageassignmentpolicy-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageassignmentpolicy-list.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
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
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.ReadWrite.All |
## HTTP request
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
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:| |Delegated (work or school account) | EntitlementManagement.ReadWrite.All | |Delegated (personal Microsoft account) | Not supported. |
-|Application | Not supported. |
+|Application | EntitlementManagement.ReadWrite.All |
## HTTP request <!-- {
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageassignmentrequest-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageassignmentrequest-get.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageassignmentrequest-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageassignmentrequest-list.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageassignmentrequest-post https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageassignmentrequest-post.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageassignmentresourcerole-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageassignmentresourcerole-get.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageassignmentresourcerole-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageassignmentresourcerole-list.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackagecatalog-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackagecatalog-delete.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackagecatalog-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackagecatalog-get.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackagecatalog-list-accesspackageresourceroles https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackagecatalog-list-accesspackageresourceroles.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackagecatalog-list-accesspackageresources https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackagecatalog-list-accesspackageresources.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackagecatalog-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackagecatalog-list.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackagecatalog-post https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackagecatalog-post.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackagecatalog-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackagecatalog-update.md
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:| |Delegated (work or school account) | EntitlementManagement.ReadWrite.All | |Delegated (personal Microsoft account) | Not supported. |
-|Application | Not supported. |
+|Application | EntitlementManagement.ReadWrite.All |
## HTTP request <!-- {
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageresourceenvironment-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageresourceenvironment-get.md
@@ -51,6 +51,8 @@ If successful, this method returns a `200 OK` response code and an [accessPackag
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "get_accesspackageresourceenvironment"
@@ -59,6 +61,24 @@ If successful, this method returns a `200 OK` response code and an [accessPackag
``` http GET https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageResourceEnvironments/{accessPackageResourceEnvironmentId} ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageresourceenvironment-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageresourceenvironment-list.md
@@ -10,6 +10,8 @@ doc_type: apiPageType
# List accessPackageResourceEnvironments Namespace: microsoft.graph + Retrieve a list of [accessPackageResourceEnvironment](../resources/accesspackageresourceenvironment.md) objects and their properties. ## Permissions
@@ -49,6 +51,8 @@ If successful, this method returns a `200 OK` response code and a collection of
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "list_accesspackageresourceenvironment"
@@ -57,6 +61,24 @@ If successful, this method returns a `200 OK` response code and a collection of
``` http GET https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageResourceEnvironments?$filter=originSystem eq 'SharePointOnline' ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageresourcerequest-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageresourcerequest-list.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageresourcerequest-post https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageresourcerequest-post.md
@@ -142,6 +142,8 @@ Content-type: application/json
The following is an example of the request. In this example, the `@odata.bind` annotation is used to assign the `id` of the `accessPackageResourceEnvironment` to an `accessPackageResourceEnvironment` object. +
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "create_accesspackageresourcerequest_from_accesspackageresourcerequests_with_accessPackageResourceEnvironment"
@@ -164,6 +166,24 @@ Content-type: application/json
"requestType": "AdminAdd" } ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ #### Response
@@ -200,6 +220,8 @@ Content-type: application/json
The following is an example of the request. In this example, the parameters of an `accessPackageResourceEnvironment` are specified in an `accessPackageResourceEnvironment` object. +
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "create_accesspackageresourcerequest_from_accesspackageresourcerequests_with_accessPackageResourceEnvironment_New"
@@ -224,6 +246,24 @@ Content-type: application/json
"requestType": "AdminAdd" } ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ #### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/activities-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/activities-list.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: File Activities description: "List the recent activities that took place on an item or under a hierarchy."
v1.0 https://docs.microsoft.com/en-us/graph/api/application-post-calls https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/application-post-calls.md
@@ -1143,7 +1143,6 @@ With tenant admin credentials, call the following cmdlets on the tenant remote P
PS C:\> Set-CsOnlineVoiceApplicationInstance -Identity <UPN> -TelephoneNumber <TelephoneNumber> PS C:\> Sync-CsOnlineApplicationInstance -ObjectId <ObjectId> ```
-> **Note:** If a tenant has Australian PSTN numbers assigned to any application instances, this call might fail. If a tenant is newly created, it might take several days for this feature to be available.
#### Request The following example shows the request to make a peer-to-peer call between the bot and a PSTN number. In this example, the media is hosted by the service. The values of authorization token, callback URL, application ID, application name, user ID, user name, and tenant ID must be replaced with actual values to make the example work.
@@ -1290,8 +1289,6 @@ Content-Type: application/json
This call needs application instance with PSTN number assigned, as described in Example 9.
-> **Note:** If a tenant has Australian PSTN numbers assigned to any application instances, this call might not work. If a tenant is newly created, it might take several days for this feature to be available.
- #### Request The following example shows a request to make a peer-to-peer call between the bot and a PSTN number. In this example, the media is hosted locally by the application. Replace the values for authorization token, callback URL, application ID, application name, user ID, user name, and tenant ID to make the example work.
v1.0 https://docs.microsoft.com/en-us/graph/api/attachment-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/attachment-get.md
@@ -19,24 +19,24 @@ Read the properties, relationships, or raw contents of an attachment that is att
An attachment can be one of the following types:
-* A file. Programmatically, this is a [fileAttachment](../resources/fileattachment.md) resource.
-* An Outlook item (contact, event or message). Programmatically, an item attachment is an [itemAttachment](../resources/itemattachment.md) resource. You can use `$expand` to further get the properties of that item. See an [example](#request-2) below.
-* A link to a file stored in the cloud. Programmatically, this is a [referenceAttachment](../resources/referenceattachment.md) resource.
+* A file. Programmatically, this is a [fileAttachment](../resources/fileattachment.md) resource. See [example 1](#example-1-get-the-properties-of-a-file-attachment).
+* An Outlook item (contact, event or message). Programmatically, an item attachment is an [itemAttachment](../resources/itemattachment.md) resource. You can use `$expand` to further get the properties of that item, including any nested attachments up to 30 levels. See [example 3](#example-3-expand-and-get-the-properties-of-the-item-attached-to-a-message) and [example 4](#example-4-expand-and-get-the-properties-of-an-item-attached-to-a-message-including-any-attachment-to-the-item).
+* A link to a file stored in the cloud. Programmatically, this is a [referenceAttachment](../resources/referenceattachment.md) resource. See [example 5](#example-5-get-the-properties-of-a-reference-attachment).
All these types of attachments are derived from the [attachment](../resources/attachment.md) resource. ### Get the raw contents of a file or item attachment You can append the path segment `/$value` to get the raw contents of a file or item attachment.
-For a file attachment, the content type is based on its original content type. See an [example](#example-5-get-the-raw-contents-of-a-file-attachment-on-a-message) below.
+For a file attachment, the content type is based on its original content type. See an [example 6](#example-6-get-the-raw-contents-of-a-file-attachment-on-a-message).
For an item attachment that is a [contact](../resources/contact.md), [event](../resources/event.md), or [message](../resources/message.md), the raw contents returned is in MIME format. | Item attachment type | Raw contents returned | |:--|:-|
-| **contact** | [vCard](http://www.faqs.org/rfcs/rfc2426.html) MIME format. See [example](#example-6-get-the-mime-raw-contents-of-a-contact-attachment-on-a-message). |
-| **event** | iCal MIME format. See [example](#example-7-get-the-mime-raw-contents-of-an-event-attachment-on-a-message). |
-| **message** | MIME format. See [example](#example-8-get-the-mime-raw-contents-of-a-meeting-invitation-item-attachment-on-a-message). |
+| **contact** | [vCard](http://www.faqs.org/rfcs/rfc2426.html) MIME format. See [example 7](#example-7-get-the-mime-raw-contents-of-a-contact-attachment-on-a-message). |
+| **event** | iCal MIME format. See [example 8](#example-8-get-the-mime-raw-contents-of-an-event-attachment-on-a-message). |
+| **message** | MIME format. See [example 9](#example-9-get-the-mime-raw-contents-of-a-meeting-invitation-item-attachment-on-a-message). |
Attempting to get the `$value` of a reference attachment returns HTTP 405.
@@ -132,7 +132,9 @@ GET /groups/{id}/conversations/{id}/threads/{id}/posts/{id}/attachments/{id}/$va
## Optional query parameters
-This method supports the [OData Query Parameters](/graph/query-parameters) to help customize the response.
+This method supports some of the [OData Query Parameters](/graph/query-parameters) to help customize the response.
+
+Use `$expand` to get the properties of an item attachment (contact, event, or message). See [example 3](#example-3-expand-and-get-the-properties-of-the-item-attached-to-a-message) and [example 4](#example-4-expand-and-get-the-properties-of-an-item-attached-to-a-message-including-any-attachment-to-the-item).
## Request headers
@@ -348,6 +350,7 @@ Content-type: application/json
"hasAttachments":false, "internetMessageId":"<BY2PR15MB05189A084C01F466709E414F9CA40@BY2PR15MB0518.namprd15.prod.outlook.com>", "subject":"Reminder - please bring laptop",
+ "bodyPreview": "PFA\r\n\r\nThanks,\r\nRob",
"importance":"normal", "conversationId":"AAQkADA1MzMyOGI4LTlkZDctNDkzYy05M2RiLTdiN2E1NDE3MTRkOQAQAMG_NSCMBqdKrLa2EmR-lO0=", "conversationIndex":"AQHTAbcSwb41IIwGp0qstrYSZH+U7Q==",
@@ -356,6 +359,7 @@ Content-type: application/json
"isRead":false, "isDraft":false, "webLink":"https://outlook.office365.com/owa/?ItemID=AAMkADA1M3MTRkOQAAAA%3D%3D&exvsurl=1&viewmodel=ReadMessageItem",
+ "internetMessageHeaders": [ ],
"body":{ "contentType":"html", "content":"<html><head>\r\n</head>\r\n<body>\r\n</body>\r\n</html>"
@@ -395,7 +399,110 @@ Content-type: application/json
} ```
-### Example 4: Get the properties of a reference attachment
+### Example 4: Expand and get the properties of an item attached to a message, including any attachment to the item
+#### Request
+The next example uses the same request as in [example 3](#example-3-expand-and-get-the-properties-of-the-item-attached-to-a-message) to get the properties of an item attachment on a message by using `$expand`. In this case, because the attached item also has a file attachment, the response includes the properties of the file attachment as well.
+
+<!-- {
+ "blockType": "request",
+ "name": "get_and_expand_nested_item_attachment",
+ "sampleKeys": ["AAMkADA1M-zAAA=","AAMkADA1M-CJKtzmnlcqVgqI="]
+}-->
+
+```http
+GET https://graph.microsoft.com/beta/me/messages('AAMkADA1M-zAAA=')/attachments('AAMkADA1M-CJKtzmnlcqVgqI=')/?$expand=microsoft.graph.itemattachment/item
+```
+
+#### Response
+<!-- {
+ "blockType": "response",
+ "name": "get_and_expand_nested_item_attachment",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.itemAttachment"
+} -->
+
+```http
+HTTP/1.1 200 OK
+Content-type: application/json
+
+{
+ "@odata.context": "https://graph.microsoft.com/beta/$metadata#users('d1a2fae9-db66-4cc9-8133-2184c77af1b8')/messages('AAMkADA1M-zAAA%3D')/attachments(microsoft.graph.itemAttachment/item())/$entity",
+ "@odata.type": "#microsoft.graph.itemAttachment",
+ "id": "AAMkADA1MCJKtzmnlcqVgqI=",
+ "lastModifiedDateTime": "2021-01-06T13:28:11Z",
+ "name": "Nested Message With Attachment",
+ "contentType": null,
+ "size": 465916,
+ "isInline": false,
+ "item@odata.context": "https://graph.microsoft.com/beta/$metadata#users('d1a2fae9-db66-4cc9-8133-2184c77af1b8')/messages('AAMkADA1M-zAAA%3D')/attachments('AAMkADA1M-CJKtzmnlcqVgqI%3D')/microsoft.graph.itemAttachment/item/$entity",
+ "item": {
+ "@odata.type": "#microsoft.graph.message",
+ "id": "",
+ "createdDateTime": "2021-01-06T13:28:30Z",
+ "lastModifiedDateTime": "2021-01-06T13:27:40Z",
+ "receivedDateTime": "2021-01-06T13:27:25Z",
+ "sentDateTime": "2021-01-06T13:27:04Z",
+ "hasAttachments": true,
+ "internetMessageId": "<BY2PR15MB05189A084C01F466709E414F9CA40@BY2PR15MB0518.namprd15.prod.outlook.com>",
+ "subject": "Nested Message With Attachment",
+ "bodyPreview": "PFAThanks,Adele",
+ "importance": "normal",
+ "conversationId": "AAQkADg3NTY5MDg4LWMzYmQtNDQzNi05OTgwLWQyZjg2YWQwMTNkZAAQAO6hkp84oMdGm6ZBsSH72sE=",
+ "conversationIndex": "AQHW5C+U7qGSnzigx0abpkGxIfvawQ==",
+ "isDeliveryReceiptRequested": false,
+ "isReadReceiptRequested": false,
+ "isRead": true,
+ "isDraft": false,
+ "webLink": "https://outlook.office365.com/owa/?ItemID=AAMkADA1M3MTRkOQAAAA%3D%3D&exvsurl=1&viewmodel=ItemAttachment",
+ "internetMessageHeaders": [],
+ "body": {
+ "contentType": "html",
+ "content": "<html><head>\r\n</head>\r\n<body>\r\n</body>\r\n</html>"
+ },
+ "sender": {
+ "emailAddress": {
+ "name": "Adele Vance",
+ "address": "Adele.Vance@microsoft.com"
+ }
+ },
+ "from": {
+ "emailAddress": {
+ "name": "Adele Vance",
+ "address": "Adele.Vance@microsoft.com"
+ }
+ },
+ "toRecipients": [
+ {
+ "emailAddress": {
+ "name": "Adele Vance",
+ "address": "Adele.Vance@microsoft.com"
+ }
+ }
+ ],
+ "flag": {
+ "flagStatus": "notFlagged"
+ },
+ "attachments@odata.context": "https://graph.microsoft.com/beta/$metadata#users('d1a2fae9-db66-4cc9-8133-2184c77af1b8')/messages('AAMkADA1M-zAAA%3D')/attachments('AAMkADA1M-CJKtzmnlcqVgqI%3D')/microsoft.graph.itemAttachment/microsoft.graph.itemAttachment/item/microsoft.graph.message/microsoft.graph.message/microsoft.graph.message/microsoft.graph.message/microsoft.graph.message/microsoft.graph.message/microsoft.graph.message/attachments",
+ "attachments": [
+ {
+ "@odata.type": "#microsoft.graph.fileAttachment",
+ "@odata.mediaContentType": "application/pdf",
+ "id": "AAMkADg3NTYULmbsDYNg==",
+ "lastModifiedDateTime": "2021-01-21T14:56:18Z",
+ "name": "Info.pdf",
+ "contentType": "application/pdf",
+ "size": 417351,
+ "isInline": false,
+ "contentId": null,
+ "contentLocation": null,
+ "contentBytes": "JVBERi0xLjUNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFuZyhlbi1JTikgL1N0cnVjdFRyZWVSb29"
+ }
+ ]
+ }
+}
+```
+
+### Example 5: Get the properties of a reference attachment
#### Request
@@ -462,7 +569,7 @@ Content-type: application/json
```
-### Example 5: Get the raw contents of a file attachment on a message
+### Example 6: Get the raw contents of a file attachment on a message
#### Request
@@ -494,7 +601,7 @@ HTTP/1.1 200 OK
```
-### Example 6: Get the MIME raw contents of a contact attachment on a message
+### Example 7: Get the MIME raw contents of a contact attachment on a message
#### Request
@@ -543,7 +650,7 @@ END:VCARD
```
-### Example 7: Get the MIME raw contents of an event attachment on a message
+### Example 8: Get the MIME raw contents of an event attachment on a message
#### Request
@@ -623,7 +730,7 @@ END:VCALENDAR
```
-### Example 8: Get the MIME raw contents of a meeting invitation item attachment on a message
+### Example 9: Get the MIME raw contents of a meeting invitation item attachment on a message
#### Request
v1.0 https://docs.microsoft.com/en-us/graph/api/bundle-additem https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/bundle-additem.md
@@ -1,6 +1,5 @@
- Title: Add item to a bundle description: Add item to a bundle of driveItems localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/bundle-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/bundle-delete.md
@@ -1,6 +1,5 @@
- Title: Delete bundle description: Delete a bundle of driveItems localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/bundle-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/bundle-get.md
@@ -1,6 +1,5 @@
- Title: Get bundle description: Get a bundle of driveItems localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/bundle-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/bundle-list.md
@@ -1,6 +1,5 @@
- Title: List bundles description: List the bundles in a user's drive localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/bundle-removeitem https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/bundle-removeitem.md
@@ -1,6 +1,5 @@
- Title: Remove item from bundle description: Remove item from a bundle of driveItems localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/bundle-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/bundle-update.md
@@ -1,6 +1,5 @@
- Title: Update a bundle description: Update a bundle of driveItems localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/call-redirect https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/call-redirect.md
@@ -434,7 +434,6 @@ With tenant admin credentials, call the following cmdlets on the tenant remote P
PS C:\> Set-CsOnlineVoiceApplicationInstance -Identity <UPN> -TelephoneNumber <TelephoneNumber> PS C:\> Sync-CsOnlineApplicationInstance -ObjectId <ObjectId> ```
-> **Note:** If a tenant has Australian PSTN numbers assigned to any application instances, this call might fail. If a tenant is newly created, it might take several days for this feature to be available.
#### Notification - incoming <!-- {
v1.0 https://docs.microsoft.com/en-us/graph/api/call-transfer https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/call-transfer.md
@@ -440,7 +440,6 @@ With tenant admin credentials, call the following cmdlets on the tenant remote P
PS C:\> Set-CsOnlineVoiceApplicationInstance -Identity <UPN> -TelephoneNumber <TelephoneNumber> PS C:\> Sync-CsOnlineApplicationInstance -ObjectId <ObjectId> ```
-> **Note:** If a tenant has Australian PSTN numbers assigned to any application instances, this call might fail. If a tenant is newly created, it might take several days for this feature to be available.
#### Request The following example shows the request.
@@ -614,9 +613,6 @@ Content-Type: application/json
This call requires an application instance with PSTN number assigned, as described in Example 3.
-> **Note:** This call may fail if a tenant has Australian PSTN numbers assigned to any application instances. If a tenant is newly created, it might take several days for this feature to be available.
-- #### Request The following example shows the request.
v1.0 https://docs.microsoft.com/en-us/graph/api/connectedorganization-delete-externalsponsors https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/connectedorganization-delete-externalsponsors.md
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) | EntitlementManagement.ReadWrite.All | |Delegated (personal Microsoft account) | Not supported. |
-|Application | Not supported. |
+|Application | EntitlementManagement.ReadWrite.All |
## HTTP request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/connectedorganization-delete-internalsponsors https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/connectedorganization-delete-internalsponsors.md
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) | EntitlementManagement.ReadWrite.All | |Delegated (personal Microsoft account) | Not supported. |
-|Application | Not supported. |
+|Application | EntitlementManagement.ReadWrite.All |
## HTTP request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/connectedorganization-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/connectedorganization-delete.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:| | Delegated (work or school account) | EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/connectedorganization-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/connectedorganization-get.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/connectedorganization-list-externalsponsors https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/connectedorganization-list-externalsponsors.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/connectedorganization-list-internalsponsors https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/connectedorganization-list-internalsponsors.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/connectedorganization-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/connectedorganization-list.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/connectedorganization-post-externalsponsors https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/connectedorganization-post-externalsponsors.md
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) | EntitlementManagement.ReadWrite.All | |Delegated (personal Microsoft account) | Not supported. |
-|Application | Not supported. |
+|Application | EntitlementManagement.ReadWrite.All |
## HTTP request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/connectedorganization-post-internalsponsors https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/connectedorganization-post-internalsponsors.md
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) | EntitlementManagement.ReadWrite.All | |Delegated (personal Microsoft account) | Not supported. |
-|Application | Not supported. |
+|Application | EntitlementManagement.ReadWrite.All |
## HTTP request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/connectedorganization-post https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/connectedorganization-post.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:| | Delegated (work or school account) | EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/connectedorganization-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/connectedorganization-update.md
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:| |Delegated (work or school account) | EntitlementManagement.ReadWrite.All | |Delegated (personal Microsoft account) | Not supported. |
-|Application | Not supported. |
+|Application | EntitlementManagement.ReadWrite.All |
## HTTP request
@@ -43,7 +43,7 @@ PATCH /identityGovernance/entitlementManagement/connectedOrganizations/{id}
## Request body In the request body, supply a JSON representation of the [connectedOrganization](../resources/connectedorganization.md) object.
-The following table shows the properties that are required when you update the [connectedOrganization](../resources/connectedorganization.md).
+The following table shows the properties that can be supplied when you update the [connectedOrganization](../resources/connectedorganization.md).
|Property|Type|Description| |:|:|:|
v1.0 https://docs.microsoft.com/en-us/graph/api/custodian-list-usersources https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/custodian-list-usersources.md
@@ -58,6 +58,8 @@ If successful, this method returns a `200 OK` response code and a collection of
### Request +
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "get_usersource"
@@ -67,6 +69,24 @@ If successful, this method returns a `200 OK` response code and a collection of
``` http GET https://graph.microsoft.com/beta/compliance/ediscovery/cases/4c8f8f70-7785-4bd4-b296-c98376a2c5e1/custodians/2192ca408ea2410eba3bec8ae873be6b/userSources ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/directory-deleteditems-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/directory-deleteditems-delete.md
@@ -34,7 +34,7 @@ For users:
|:--|:| |Delegated (work or school account) | User.ReadWrite.All, Directory.AccessAsUser.All | |Delegated (personal Microsoft account) | Not supported. |
-|Application | User.ReadWrite.All |
+|Application | Not supported. |
For groups:
@@ -42,7 +42,7 @@ For groups:
|:--|:| |Delegated (work or school account) | Group.ReadWrite.All, Directory.AccessAsUser.All | |Delegated (personal Microsoft account) | Not supported. |
-|Application | Group.ReadWrite.All |
+|Application | Not supported. |
## HTTP request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/directory-deleteditems-restore https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/directory-deleteditems-restore.md
@@ -3,7 +3,7 @@ Title: "Restore deleted item"
description: "Restores a recently deleted item from deleted items. " localization_priority: Normal doc_type: apiPageType
@@ -15,7 +15,7 @@ Namespace: microsoft.graph
Restores a recently deleted item from [deleted items](../resources/directory.md).
-Currently, deleted items functionality is only supported for the [application](../resources/application.md), [group](../resources/group.md) and [user](../resources/user.md) resources. If an item was accidentally deleted, you can fully restore the item.
+Currently, restore deleted items functionality is only supported for the [application](../resources/application.md), [group](../resources/group.md), and [user](../resources/user.md) resources. If an item was accidentally deleted, you can fully restore the item. This is not applicable to Security groups which are deleted permanently.
A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted.
v1.0 https://docs.microsoft.com/en-us/graph/api/directoryobject-checkmembergroups https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/directoryobject-checkmembergroups.md
@@ -22,9 +22,9 @@ One of the following permissions is required to call this API. To learn more, in
|Permission type | Permissions (from least to most privileged) | |:--|:|
-|Delegated (work or school account) | User.ReadBasic.All and GroupMember.Read.All, User.Read.All and GroupMember.Read.All, User.ReadBasic.All and Group.Read.All, User.Read.All and Group.Read.All, Directory.Read.All |
+|Delegated (work or school account) | User.ReadBasic.All, User.Read.All, Directory.Read.All |
|Delegated (personal Microsoft account) | Not supported. |
-|Application | User.Read.All and GroupMember.Read.All, User.Read.All and Group.Read.All, Directory.Read.All |
+|Application | User.Read.All, Directory.Read.All |
Use the follow scenario guidance to help determine which permission types to use: - Use User.Read and GroupMember.Read.All or User.Read and Group.Read.All permissions to get group memberships for the signed-in user.
v1.0 https://docs.microsoft.com/en-us/graph/api/drive-post-bundles https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/drive-post-bundles.md
@@ -1,6 +1,5 @@
- Title: Create bundle description: Create a bundle of driveItems localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/driveitem-unfollow https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/driveitem-unfollow.md
@@ -1,6 +1,5 @@
- description: Unfollow an item that the user is following. Title: Unfollow drive item localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/dynamics-agedaccountsreceivable-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/dynamics-agedaccountsreceivable-get.md
@@ -5,7 +5,6 @@
documentationcenter: '' localization_priority: Normal- doc_type: apiPageType ms.prod: "dynamics-365-business-central"
v1.0 https://docs.microsoft.com/en-us/graph/api/educationassignmentdefaults-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/educationassignmentdefaults-get.md
@@ -0,0 +1,84 @@
+
+ Title: "Get educationAssignmentDefaults"
+description: "Read the properties and relationships of an educationAssignmentDefaults object."
+
+localization_priority: Normal
++
+# Get educationAssignmentDefaults
+Namespace: microsoft.graph
++
+Read the properties and relationships of an [educationAssignmentDefaults](../resources/educationassignmentdefaults.md) object. These are the class-level assignment defaults respected by new assignments created in the class. Callers can continue to specify custom values on each assignment creation if they do not want the default behaviors.
+
+## 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).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)| EduAssignments.ReadBasic, EduAssignments.ReadWriteBasic, EduAssignments.Read, EduAssignments.ReadWrite |
+|Delegated (personal Microsoft account)| Not supported. |
+|Application| Not supported. |
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+GET /education/classes/{id}/assignmentDefaults
+```
+
+## Optional query parameters
+This method supports some of the OData query parameters to help customize the response. For general information, see [OData query parameters](/graph/query-parameters).
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this method returns a `200 OK` response code and an [educationAssignmentDefaults](../resources/educationassignmentdefaults.md) object in the response body.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "get_educationassignmentdefaults"
+}
+-->
+``` http
+GET https://graph.microsoft.com/beta/education/classes/{id}/assignmentDefaults
+```
++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.educationAssignmentDefaults"
+}
+-->
+``` http
+HTTP/1.1 200 OK
+Content-Type: application/json
+
+{
+ "value": {
+ "addedStudentAction": "none",
+ "dueTime": "23:59:00",
+ "notificationChannelUrl": "https://graph.microsoft.com/beta/teams('id')/channels('id')"
+ }
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/educationassignmentdefaults-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/educationassignmentdefaults-update.md
@@ -0,0 +1,95 @@
+
+ Title: "Update educationAssignmentDefaults"
+description: "Update the properties of an educationAssignmentDefaults object."
+
+localization_priority: Normal
++
+# Update educationAssignmentDefaults
+Namespace: microsoft.graph
++
+Update the properties of an [educationAssignmentDefaults](../resources/educationassignmentdefaults.md) object. Only teachers can update these settings.
+
+## 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).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account) | EduAssignments.ReadWriteBasic, EduAssignments.ReadWrite |
+|Delegated (personal Microsoft account) | Not supported. |
+|Application | Not supported. |
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+PATCH /education/classes/{id}/assignmentDefaults
+```
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+|Content-Type|application/json. Required.|
+
+## Request body
+In the request body, supply the values for relevant fields of the [educationAssignmentDefaults](../resources/educationassignmentdefaults.md) object that should be updated. Existing properties that are not included in the request body will maintain their previous values. For best performance, don't include existing values that haven't changed.
+
+|Property|Type|Description|
+|:|:|:|
+|addedStudentAction|educationAddedStudentAction|Class-level default behavior for handling students who are added after the assignment is published. Possible values are: `none`, `assignIfOpen`. The default value is `none`.|
+|dueTime|TimeOfDay|Class-level default value for due time field. Default value is `23:59:00`|
+|notificationChannelUrl|String|Default Teams channel to which notifications will be sent. Default value is `null`.|
+++
+## Response
+
+If successful, this method returns a `200 OK` response code and an updated [educationAssignmentDefaults](../resources/educationassignmentdefaults.md) object in the response body.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "update_educationassignmentdefaults"
+}
+-->
+``` http
+PATCH https://graph.microsoft.com/beta/education/classes/{id}/assignmentDefaults
+Content-Type: application/json
+Content-length: 181
+
+{
+ "addedStudentAction": "assignIfOpen",
+ "notificationChannelUrl": "https://graph.microsoft.com/beta/teams('id')/channels('id')"
+}
+```
++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.educationAssignmentDefaults"
+}
+-->
+``` http
+HTTP/1.1 200 OK
+Content-Type: application/json
+
+{
+ "addedStudentAction": "assignIfOpen",
+ "dueTime": "23:59:00",
+ "notificationChannelUrl": "https://graph.microsoft.com/beta/teams('id')/channels('id')"
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/educationassignmentsettings-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/educationassignmentsettings-get.md
@@ -19,7 +19,7 @@ One of the following permissions is required to call this API. To learn more, in
|Permission type|Permissions (from least to most privileged)| |:|:|
-|Delegated (work or school account)|EduAssignments.ReadWriteBasic, EduAssignments.ReadWrite|
+|Delegated (work or school account)|EduAssignments.ReadBasic, EduAssignments.ReadWriteBasic, EduAssignments.Read, EduAssignments.ReadWrite|
|Delegated (personal Microsoft account)|Not supported.| |Application|Not supported.|
v1.0 https://docs.microsoft.com/en-us/graph/api/educationclass-list-assignments https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/educationclass-list-assignments.md
@@ -86,7 +86,7 @@ Content-length: 344
"value": [ { "id": "19002",
- "addedStudentAction": "String",
+ "addedStudentAction": "none",
"allowLateSubmissions": true, "allowStudentsToAddResourcesToSubmission": true, "assignDateTime": "2014-02-01T00:00:00Z",
@@ -122,7 +122,7 @@ Content-length: 344
} }, "lastModifiedDateTime": "2014-02-01T00:00:00Z",
- "notificationChannelUrl": "String",
+ "notificationChannelUrl": null,
"status": "published" } ]
v1.0 https://docs.microsoft.com/en-us/graph/api/entitlementmanagementsettings-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/entitlementmanagementsettings-get.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/entitlementmanagementsettings-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/entitlementmanagementsettings-update.md
@@ -23,7 +23,7 @@ One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) | EntitlementManagement.ReadWrite.All | |Delegated (personal Microsoft account) | Not supported. |
-|Application | Not supported. |
+|Application | EntitlementManagement.ReadWrite.All |
## HTTP request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/identityuserflow-post-userflows https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/identityuserflow-post-userflows.md
@@ -65,6 +65,7 @@ POST https://graph.microsoft.com/beta/identity/userFlows
Content-type: application/json {
+ "id": "Pol1",
"userFlowType": "signUpOrSignIn", "userFlowTypeVersion": 1 }
v1.0 https://docs.microsoft.com/en-us/graph/api/participant-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/participant-delete.md
@@ -3,7 +3,6 @@ Title: "Delete participant"
description: "Delete a specific participant in a call." - localization_priority: Normal ms.prod: "cloud-communications" doc_type: apiPageType
v1.0 https://docs.microsoft.com/en-us/graph/api/participant-invite https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/participant-invite.md
@@ -723,7 +723,6 @@ With tenant admin credentials, call the following cmdlets on the tenant remote P
PS C:\> Set-CsOnlineVoiceApplicationInstance -Identity <UPN> -TelephoneNumber <TelephoneNumber> PS C:\> Sync-CsOnlineApplicationInstance -ObjectId <ObjectId> ```
-> **Note:** If a tenant has Australian PSTN numbers assigned to any application instances, this call might fail. If a tenant is newly created, it might take several days for this feature to be available.
#### Request
v1.0 https://docs.microsoft.com/en-us/graph/api/permission-grant https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/permission-grant.md
@@ -1,6 +1,5 @@
- Title: Grant permission description: Grant a list of users access to use the specified link localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/planner-post-rosters https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/planner-post-rosters.md
@@ -0,0 +1,87 @@
+
+ Title: "Create plannerRoster"
+description: "Create a new plannerRoster object."
+
+localization_priority: Normal
++
+# Create plannerRoster
+Namespace: microsoft.graph
++
+Create a new [plannerRoster](../resources/plannerroster.md) object.
+
+## 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).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Tasks.ReadWrite|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Not supported.|
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+POST /planner/rosters
+```
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+|Content-Type|application/json. Required.|
+
+## Request body
+In the request body, supply a JSON representation of the [plannerRoster](../resources/plannerroster.md) object.
+
+There are no writable properties on [plannerRoster](../resources/plannerroster.md).
+
+## Response
+
+If successful, this method returns a `201 Created` response code and a [plannerRoster](../resources/plannerroster.md) object in the response body.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "create_plannerroster_from_"
+}
+-->
+``` http
+POST https://graph.microsoft.com/beta/planner/rosters
+Content-Type: application/json
+Content-length: 55
+
+{
+ "@odata.type": "#microsoft.graph.plannerRoster"
+}
+```
++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.plannerRoster"
+}
+-->
+``` http
+HTTP/1.1 201 Created
+Content-Type: application/json
+
+{
+ "@odata.type": "#microsoft.graph.plannerRoster",
+ "id": "6519868f-868f-6519-8f86-19658f861965"
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/plannerroster-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/plannerroster-delete.md
@@ -0,0 +1,70 @@
+
+ Title: "Delete plannerRoster"
+description: "Deletes a plannerRoster object."
+
+localization_priority: Normal
++
+# Delete plannerRoster
+Namespace: microsoft.graph
++
+Delete a [plannerRoster](../resources/plannerroster.md) object.
+
+## 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).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Tasks.ReadWrite|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Not supported.|
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+DELETE /planner/rosters/{plannerRosterId}
+```
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this method returns a `204 No Content` response code.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "delete_plannerroster"
+}
+-->
+``` http
+DELETE https://graph.microsoft.com/beta/planner/rosters/5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38
+```
++
+### Response
+<!-- {
+ "blockType": "response",
+ "truncated": true
+}
+-->
+``` http
+HTTP/1.1 204 No Content
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/plannerroster-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/plannerroster-get.md
@@ -0,0 +1,87 @@
+
+ Title: "Get plannerRoster"
+description: "Read the properties and relationships of a plannerRoster object."
+
+localization_priority: Normal
++
+# Get plannerRoster
+Namespace: microsoft.graph
++
+Read the properties and relationships of a [plannerRoster](../resources/plannerroster.md) object.
+
+## 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).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Tasks.Read, Tasks.ReadWrite|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Not supported.|
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+GET /planner/rosters/{plannerRosterId}
+```
+
+## Optional query parameters
+This method only supports following OData query parameters:
+
+- $expand
+
+For general information, see [OData query parameters](/graph/query-parameters).
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this method returns a `200 OK` response code and a [plannerRoster](../resources/plannerroster.md) object in the response body.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "get_plannerroster"
+}
+-->
+``` http
+GET https://graph.microsoft.com/beta/planner/rosters/6519868f-868f-6519-8f86-19658f861965
+```
++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.plannerRoster"
+}
+-->
+``` http
+HTTP/1.1 200 OK
+Content-Type: application/json
+
+{
+ "value": {
+ "@odata.type": "#microsoft.graph.plannerRoster",
+ "id": "6519868f-868f-6519-8f86-19658f861965"
+ }
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/plannerroster-list-members https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/plannerroster-list-members.md
@@ -0,0 +1,93 @@
+
+ Title: "List members of a roster"
+description: "Get the plannerRosterMember resources from the members navigation property."
+
+localization_priority: Normal
++
+# List members of a roster
+Namespace: microsoft.graph
++
+Get the list of [plannerRosterMembers](../resources/plannerrostermember.md) from a [plannerRoster](../resources/plannerroster.md).
+
+## 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).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Tasks.Read, Tasks.ReadWrite|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Not supported.|
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+GET /planner/rosters/{plannerRosterId}/members
+```
+
+## Optional query parameters
+This method only supports following OData query parameters:
+
+- $select
+
+For general information, see [OData query parameters](/graph/query-parameters).
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this method returns a `200 OK` response code and a collection of [plannerRosterMember](../resources/plannerrostermember.md) objects in the response body.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "list_plannerrostermember"
+}
+-->
+``` http
+GET https://graph.microsoft.com/beta/planner/rosters/6519868f-868f-6519-8f86-19658f861965/members
+```
++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "Collection(microsoft.graph.plannerRosterMember)"
+}
+-->
+``` http
+HTTP/1.1 200 OK
+Content-Type: application/json
+
+{
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.plannerRosterMember",
+ "id": "670095cd-95cd-6700-cd95-0067cd950067",
+ "userId": "5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38",
+ "tenantId": "7084c257-c1b7-4286-98b0-20ea7b5c1319",
+ "roles": [
+ ]
+ }
+ ]
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/plannerroster-list-plans https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/plannerroster-list-plans.md
@@ -0,0 +1,99 @@
+
+ Title: "List plans"
+description: "Get the plannerPlan resources from the plans navigation property."
+
+localization_priority: Normal
++
+# List plans
+Namespace: microsoft.graph
++
+Get the [plannerPlans](../resources/plannerplan.md) contained by the [plannerRoster](../resources/plannerRoster.md).
+
+## 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).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Tasks.Read, Tasks.ReadWrite|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Not supported.|
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+GET /planner/rosters/{plannerRosterId}/plans
+```
+
+## Optional query parameters
+This method only supports following OData query parameters:
+
+- $select
+
+For general information, see [OData query parameters](/graph/query-parameters).
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this method returns a `200 OK` response code and a collection of [plannerPlan](../resources/plannerplan.md) objects in the response body.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "list_plannerplan"
+}
+-->
+``` http
+GET https://graph.microsoft.com/beta/planner/rosters/6519868f-868f-6519-8f86-19658f861965/plans
+```
++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "Collection(microsoft.graph.plannerPlan)"
+}
+-->
+``` http
+HTTP/1.1 200 OK
+Content-Type: application/json
+
+{
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.plannerPlan",
+ "id": "c6442b38-2b38-c644-382b-44c6382b44c6",
+ "createdBy": {
+ "@odata.type": "microsoft.graph.identitySet"
+ },
+ "title": "Test plan",
+ "container": {
+ "@odata.type": "microsoft.graph.plannerPlanContainer",
+ "url": "https://graph.microsoft.com/beta/planner/rosters/6519868f-868f-6519-8f86-19658f861965",
+ "containerId": "6519868f-868f-6519-8f86-19658f861965",
+ "type": "roster"
+ }
+ }
+ ]
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/plannerroster-post-members https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/plannerroster-post-members.md
@@ -0,0 +1,99 @@
+
+ Title: "Create plannerRosterMember"
+description: "Create a new plannerRosterMember object."
+
+localization_priority: Normal
++
+# Create plannerRosterMember
+Namespace: microsoft.graph
++
+Add a member to the [plannerRoster](../resources/plannerrostermember.md) object.
+
+## 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).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Tasks.ReadWrite|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Not supported.|
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+POST /planner/rosters/{plannerRosterId}/members
+```
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+|Content-Type|application/json. Required.|
+
+## Request body
+In the request body, supply a JSON representation of the [plannerRosterMember](../resources/plannerrostermember.md) object.
+
+The following table shows the properties that are required when you create the [plannerRosterMember](../resources/plannerrostermember.md).
+
+|Property|Type|Description|
+|:|:|:|
+|userId|String|Identifier of the .|
+|tenantId|String|Identifier of the tenant the user belongs to. Optional. Currently roster members cannot be from different tenants.|
+|roles|String collection|Additional roles assigned to the user. Optional. Currently there are no additional roles available for users.|
+++
+## Response
+
+If successful, this method returns a `201 Created` response code and a [plannerRosterMember](../resources/plannerrostermember.md) object in the response body.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "create_plannerrostermember_from_"
+}
+-->
+``` http
+POST https://graph.microsoft.com/beta/planner/rosters/6519868f-868f-6519-8f86-19658f861965/members
+Content-Type: application/json
+Content-length: 78
+
+{
+ "@odata.type": "#microsoft.graph.plannerRosterMember",
+ "userId": "String"
+}
+```
++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.plannerRosterMember"
+}
+-->
+``` http
+HTTP/1.1 201 Created
+Content-Type: application/json
+
+{
+ "@odata.type": "#microsoft.graph.plannerRosterMember",
+ "id": "670095cd-95cd-6700-cd95-0067cd950067",
+ "userId": "5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38",
+ "roles": [
+ ]
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/plannerrostermember-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/plannerrostermember-delete.md
@@ -0,0 +1,70 @@
+
+ Title: "Delete plannerRosterMember"
+description: "Deletes a plannerRosterMember object."
+
+localization_priority: Normal
++
+# Delete plannerRosterMember
+Namespace: microsoft.graph
++
+Delete a [plannerRosterMember](../resources/plannerrostermember.md) object.
+
+## 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).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Tasks.ReadWrite|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Not supported.|
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+DELETE /planner/rosters/{plannerRosterId}/members/{plannerRosterMemberId}
+```
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this method returns a `204 No Content` response code.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "delete_plannerrostermember"
+}
+-->
+``` http
+DELETE https://graph.microsoft.com/beta/planner/rosters/523a9d5a-f9d5-45c1-929f-b8525393515c/members/5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38
+```
++
+### Response
+<!-- {
+ "blockType": "response",
+ "truncated": true
+}
+-->
+``` http
+HTTP/1.1 204 No Content
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/plannerrostermember-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/plannerrostermember-get.md
@@ -0,0 +1,89 @@
+
+ Title: "Get plannerRosterMember"
+description: "Read the properties and relationships of a plannerRosterMember object."
+
+localization_priority: Normal
++
+# Get plannerRosterMember
+Namespace: microsoft.graph
++
+Read the properties and relationships of a [plannerRosterMember](../resources/plannerrostermember.md) object.
+
+## 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).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Tasks.Read, Tasks.ReadWrite|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Not supported.|
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+GET /planner/rosters/{plannerRosterId}/members/{plannerRosterMemberId}
+```
+
+## Optional query parameters
+This method only supports following OData query parameters:
+
+- $select
+
+For general information, see [OData query parameters](/graph/query-parameters).
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this method returns a `200 OK` response code and a [plannerRosterMember](../resources/plannerrostermember.md) object in the response body.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "get_plannerrostermember"
+}
+-->
+``` http
+GET https://graph.microsoft.com/beta/planner/rosters/523a9d5a-f9d5-45c1-929f-b8525393515c/members/5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38
+```
++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.plannerRosterMember"
+}
+-->
+``` http
+HTTP/1.1 200 OK
+Content-Type: application/json
+
+{
+ "@odata.type": "#microsoft.graph.plannerRosterMember",
+ "id": "670095cd-95cd-6700-cd95-0067cd950067",
+ "userId": "5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38",
+ "tenantId": "7084c257-c1b7-4286-98b0-20ea7b5c1319",
+ "roles": [
+ ]
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/plannertask-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/plannertask-update.md
@@ -47,6 +47,7 @@ In the request body, supply the values for relevant fields that should be update
|dueDateTime|DateTimeOffset|Date and time at which the task is due. 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'`| |orderHint|String|Hint used to order items of this type in a list view. The format is defined as outlined [here](../resources/planner-order-hint-format.md).| |percentComplete|Int32|Percentage of task completion. When set to `100`, the task is considered completed. |
+|planId|String|Plan id to which the task belongs.|
|priority|Int32|Priority of the task. Valid range of values is between `0` and `10` (inclusive), with increasing value being lower priority (`0` has the highest priority and `10` has the lowest priority). Currently, Planner interprets values `0` and `1` as "urgent", `2` and `3` and `4` as "important", `5`, `6`, and `7` as "medium", and `8`, `9`, and `10` as "low". Currently, Planner sets the value `1` for "urgent", `3` for "important", `5` for "medium", and `9` for "low".| |startDateTime|DateTimeOffset|Date and time at which the task starts. 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'`| |title|String|Title of the task.|
v1.0 https://docs.microsoft.com/en-us/graph/api/planneruser-list-rosterplans https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/planneruser-list-rosterplans.md
@@ -0,0 +1,99 @@
+
+ Title: "List rosterPlans"
+description: "Get the plannerPlan resources from the rosterPlans navigation property."
+
+localization_priority: Normal
++
+# List rosterPlans
+Namespace: microsoft.graph
++
+Get the list of [plannerPlans](../resources/plannerplan.md) that are contained by the [plannerRosters](../resources/plannerroster.md) of which the user is a member.
+
+## 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).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Tasks.Read, Tasks.ReadWrite|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Not supported.|
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+GET /users/{usersId}/planner/rosterPlans
+```
+
+## Optional query parameters
+This method only supports following OData query parameters:
+
+- $select
+
+For general information, see [OData query parameters](/graph/query-parameters).
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this method returns a `200 OK` response code and a collection of [plannerPlan](../resources/plannerplan.md) objects in the response body.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "list_plannerplan"
+}
+-->
+``` http
+GET https://graph.microsoft.com/beta/users/{usersId}/planner/rosterPlans
+```
++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "Collection(microsoft.graph.plannerPlan)"
+}
+-->
+``` http
+HTTP/1.1 200 OK
+Content-Type: application/json
+
+{
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.plannerPlan",
+ "id": "c6442b38-2b38-c644-382b-44c6382b44c6",
+ "createdBy": {
+ "@odata.type": "microsoft.graph.identitySet"
+ },
+ "title": "Test plan",
+ "container": {
+ "@odata.type": "microsoft.graph.plannerPlanContainer",
+ "url": "https://graph.microsoft.com/beta/planner/rosters/5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38",
+ "containerId": "5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38",
+ "type": "roster"
+ }
+ }
+ ]
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/riskyusers-dismiss https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/riskyusers-dismiss.md
@@ -16,7 +16,8 @@ Namespace: microsoft.graph
>**Note:** Using the riskyUsers API requires an Azure AD Premium P2 license.
-Dismiss the risk of one or more [riskyUser](../resources/riskyuser.md) objects. This action sets the targeted user's risk level to none.
+Dismiss the risk of one or more [riskyUser](../resources/riskyuser.md) objects. This action sets the targeted user's risk level to none. The maximum count of users to dismiss in one call is 60.
+ ## 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).
v1.0 https://docs.microsoft.com/en-us/graph/api/signin-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/signin-list.md
@@ -96,7 +96,7 @@ Do not supply a request body for this method.
## Response
-If successful, this method returns a `200 OK` response code and collection of [signIn](../resources/signin.md) objects in the response body.
+If successful, this method returns a `200 OK` response code and collection of [signIn](../resources/signin.md) objects in the response body. The collection of objects is listed in descending order based on **createdDateTime**.
## Examples
v1.0 https://docs.microsoft.com/en-us/graph/api/site-delete-permission https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/site-delete-permission.md
@@ -46,6 +46,8 @@ If successful, this method returns `204 No Content` response code. It does not r
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "delete_permission"
@@ -54,6 +56,24 @@ If successful, this method returns `204 No Content` response code. It does not r
``` http DELETE https://graph.microsoft.com/beta/sites/{sitesId}/permissions/{permissionId} ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/site-get-permission https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/site-get-permission.md
@@ -49,6 +49,8 @@ If successful, this method returns a `200 OK` response code and the [permission]
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "get_permission"
@@ -57,6 +59,24 @@ If successful, this method returns a `200 OK` response code and the [permission]
``` http GET https://graph.microsoft.com/beta/sites/{sitesId}/permissions/{permissionId} ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
@@ -86,4 +106,4 @@ Content-Type: application/json
"type": "#page.annotation", "section": "documentation", "tocPath": "Sites/Permissions/Get site permission"
-} -->
+} -->
v1.0 https://docs.microsoft.com/en-us/graph/api/site-list-permissions https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/site-list-permissions.md
@@ -49,6 +49,8 @@ If successful, this method returns a `200 OK` response code and a collection of
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "list_permission"
@@ -57,6 +59,24 @@ If successful, this method returns a `200 OK` response code and a collection of
``` http GET https://graph.microsoft.com/beta/sites/{sitesId}/permissions ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
@@ -101,4 +121,4 @@ Content-Type: application/json
"type": "#page.annotation", "section": "documentation", "tocPath": "Sites/Permissions/List site permissions"
-} -->
+} -->
v1.0 https://docs.microsoft.com/en-us/graph/api/site-post-permissions https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/site-post-permissions.md
@@ -47,6 +47,8 @@ If successful, this method returns a `201 Created` response code and a [permissi
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "create_permission_from_"
@@ -66,6 +68,24 @@ Content-Type: application/json
}] } ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/site-update-permission https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/site-update-permission.md
@@ -47,6 +47,8 @@ If successful, this method returns a `200 OK` response code and a [permission](.
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "update_permission_from_"
@@ -60,6 +62,24 @@ Content-Type: application/json
"roles": ["read"] } ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/smsauthenticationmethodconfiguration-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/smsauthenticationmethodconfiguration-delete.md
@@ -0,0 +1,73 @@
+
+ Title: "Delete smsAuthenticationMethodConfiguration"
+description: "Delete a smsAuthenticationMethodConfiguration object."
+
+localization_priority: Normal
++
+# Delete smsAuthenticationMethodConfiguration
+Namespace: microsoft.graph
++
+Remove changes made to the [Text Message authentication method policy](../resources/smsauthenticationmethodconfiguration.md) by reverting the policy to its default configuration.
+
+## 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).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Policy.ReadWrite.AuthenticationMethod|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Policy.ReadWrite.AuthenticationMethod|
+
+For delegated scenarios, the administrator needs the Global admin role. For more information, see [role](/azure/active-directory/users-groups-roles/directory-assign-admin-roles#available-roles).
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+DELETE /policies/authenticationMethodsPolicy/authenticationMethodConfigurations/sms
+```
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this method returns a `204 No Content` response code.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "delete_smsauthenticationmethodconfiguration"
+}
+-->
+``` http
+DELETE https://graph.microsoft.com/beta/policies/authenticationMethodsPolicy/authenticationMethodConfigurations/sms
+```
++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true
+}
+-->
+``` http
+HTTP/1.1 204 No Content
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/smsauthenticationmethodconfiguration-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/smsauthenticationmethodconfiguration-get.md
@@ -0,0 +1,82 @@
+
+ Title: "Get smsAuthenticationMethodConfiguration"
+description: "Read the properties and relationships of a smsAuthenticationMethodConfiguration object."
+
+localization_priority: Normal
++
+# Get smsAuthenticationMethodConfiguration
+Namespace: microsoft.graph
++
+Read the properties and relationships of a [smsAuthenticationMethodConfiguration](../resources/smsauthenticationmethodconfiguration.md) object, which represents the Text Message authentication method policy for the Azure AD tenant.
+
+## 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).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Policy.ReadWrite.AuthenticationMethod|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Policy.ReadWrite.AuthenticationMethod|
+
+For delegated scenarios, the administrator needs the Global admin role. For more information, see [role](/azure/active-directory/users-groups-roles/directory-assign-admin-roles#available-roles).
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+GET /policies/authenticationMethodsPolicy/authenticationMethodConfigurations/sms
+```
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this method returns a `200 OK` response code and a [smsAuthenticationMethodConfiguration](../resources/smsauthenticationmethodconfiguration.md) object in the response body.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "get_smsauthenticationmethodconfiguration"
+}
+-->
+``` http
+GET https://graph.microsoft.com/beta/policies/authenticationMethodsPolicy/authenticationMethodConfigurations/sms
+```
+
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.smsAuthenticationMethodConfiguration"
+}
+-->
+``` http
+HTTP/1.1 200 OK
+Content-Type: application/json
+
+{
+ "value": {
+ "@odata.type": "#microsoft.graph.smsAuthenticationMethodConfiguration",
+ "id": "713980c7-80c7-7139-c780-3971c7803971",
+ "state": "String"
+ }
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/smsauthenticationmethodconfiguration-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/smsauthenticationmethodconfiguration-update.md
@@ -0,0 +1,99 @@
+
+ Title: "Update smsAuthenticationMethodConfiguration"
+description: "Update the properties of a smsAuthenticationMethodConfiguration object."
+
+localization_priority: Normal
++
+# Update smsAuthenticationMethodConfiguration
+Namespace: microsoft.graph
++
+Update the properties of a [smsAuthenticationMethodConfiguration](../resources/smsauthenticationmethodconfiguration.md) object, which represents the Text Message authentication method policy for the Azure AD tenant.
+
+## 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).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Policy.ReadWrite.AuthenticationMethod|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Policy.ReadWrite.AuthenticationMethod|
+
+For delegated scenarios, the administrator needs the Global admin role. For more information, see [role](/azure/active-directory/users-groups-roles/directory-assign-admin-roles#available-roles).
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+PATCH /policies/authenticationMethodsPolicy/authenticationMethodConfigurations/sms
+```
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+|Content-Type|application/json. Required.|
+
+## Request body
+In the request body, supply a JSON representation of the [smsAuthenticationMethodConfiguration](../resources/smsauthenticationmethodconfiguration.md) object with the values of fields that should be updated. Existing properties that are not included in the request body will maintain their previous values or be recalculated based on changes to other property values. For best performance, don't include existing values that haven't changed.
+
+The following table shows the properties that are required when you update the [smsAuthenticationMethodConfiguration](../resources/smsauthenticationmethodconfiguration.md) object.
+
+|Property|Type|Description|
+|:|:|:|
+|id|String|The authentication method policy identifier.|
+|state|authenticationMethodState|Possible values are: `enabled`, `disabled`.|
+
+>**Note:** The `@odata.type` property with a value of `#microsoft.graph.smsAuthenticationMethodConfiguration` must be included in the body.
+
+## Response
+
+If successful, this method returns a `200 OK` response code and an updated [smsAuthenticationMethodConfiguration](../resources/smsauthenticationmethodconfiguration.md) object in the response body.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "update_smsauthenticationmethodconfiguration"
+}
+-->
+``` http
+PATCH https://graph.microsoft.com/beta/policies/authenticationMethodsPolicy/authenticationMethodConfigurations/sms
+Content-Type: application/json
+Content-length: 100
+
+{
+ "@odata.type": "#microsoft.graph.smsAuthenticationMethodConfiguration",
+ "id": "Sms",
+ "state": "enabled"
+}
+```
++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.smsAuthenticationMethodConfiguration"
+}
+-->
+``` http
+HTTP/1.1 200 OK
+Content-Type: application/json
+
+{
+ "@odata.type": "#microsoft.graph.smsAuthenticationMethodConfiguration",
+ "id": "713980c7-80c7-7139-c780-3971c7803971",
+ "state": "String"
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/subscriptions-socketio https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/subscriptions-socketio.md
@@ -1,6 +1,5 @@
- Title: "Get websocket endpoint" description: "Use of these APIs in production applications is not supported." localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronization-acquireaccesstoken https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronization-acquireaccesstoken.md
@@ -19,7 +19,7 @@ One of the following permissions is required to call this API. To learn more, in
|:|:| |Delegated (work or school account)|Directory.ReadWrite.All| |Delegated (personal Microsoft account)|Not supported.|
-|Application|Not supported.|
+|Application|Application.ReadWrite.OwnedBy, Directory.ReadWrite.All|
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationjob-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationjob-delete.md
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported. |
-|Application |Not supported. |
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationjob-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationjob-get.md
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported. |
-|Application |Not supported. |
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationjob-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationjob-list.md
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported. |
-|Application |Not supported. |
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationjob-pause https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationjob-pause.md
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported. |
-|Application |Not supported. |
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationjob-post https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationjob-post.md
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported.|
-|Application |Not supported. |
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP Request <!-- { "blockType": "ignored" } -->
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
@@ -20,7 +20,7 @@ One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported. |
-|Application |Not supported. |
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationjob-restart https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationjob-restart.md
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported. |
-|Application |Not supported. |
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationjob-start https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationjob-start.md
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported. |
-|Application |Not supported. |
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationjob-validatecredentials https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationjob-validatecredentials.md
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported. |
-|Application |Not supported.|
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationschema-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationschema-delete.md
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported.|
-|Application |Not supported.|
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationschema-filteroperators https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationschema-filteroperators.md
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported.|
-|Application |Not supported. |
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationschema-functions https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationschema-functions.md
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported.|
-|Application |Not supported. |
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationschema-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationschema-get.md
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported. |
-|Application |Not supported. |
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationschema-parseexpression https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationschema-parseexpression.md
@@ -24,7 +24,7 @@ One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported.|
-|Application |Not supported.|
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationschema-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationschema-update.md
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported.|
-|Application |Not supported.|
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationtemplate-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationtemplate-get.md
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported.|
-|Application |Not supported.|
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
### HTTP Request
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationtemplate-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationtemplate-list.md
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported.|
-|Application |Not supported.|
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
### HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationtemplate-post https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationtemplate-post.md
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported.|
-|Application |Not supported.|
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
### HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationtemplate-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationtemplate-update.md
@@ -22,7 +22,7 @@ One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported.|
-|Application |Not supported.|
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
### HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/tiindicator-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/tiindicator-update.md
@@ -51,52 +51,19 @@ In the request body, supply the values for relevant fields that should be update
|additionalInformation|String|A catchall area into which extra data from the indicator not covered by the other tiIndicator properties may be placed. Data placed into additionalInformation will typically not be utilized by the targetProduct security tool.| |confidence|Int32|An integer representing the confidence the data within the indicator accurately identifies malicious behavior. Acceptable values are 0 ΓÇô 100 with 100 being the highest.| |description|String|Brief description (100 characters or less) of the threat represented by the indicator.|
-|diamondModel|[diamondModel](#diamondmodel-values)|The area of the Diamond Model in which this indicator exists. Possible values are: `unknown`, `adversary`, `capability`, `infrastructure`, `victim`.|
+|diamondModel|[diamondModel](../resources/tiindicator.md#diamondmodel-values)|The area of the Diamond Model in which this indicator exists. Possible values are: `unknown`, `adversary`, `capability`, `infrastructure`, `victim`.|
|expirationDateTime|DateTimeOffset| DateTime string indicating when the Indicator expires. All indicators must have an expiration date to avoid stale indicators persisting in the system. 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`.| |externalId|String|An identification number that ties the indicator back to the indicator providerΓÇÖs system (e.g. a foreign key).| |isActive|Boolean|Used to deactivate indicators within system. By default, any indicator submitted is set as active. However, providers may submit existing indicators with this set to ΓÇÿFalseΓÇÖ to deactivate indicators in the system.|
-|killChain|[killChain](#killchain-values) collection|A JSON array of strings that describes which point or points on the Kill Chain this indicator targets. See "killChain values" below for exact values.|
+|killChain|[killChain](../resources/tiindicator.md#killchain-values) collection|A JSON array of strings that describes which point or points on the Kill Chain this indicator targets. See "killChain values" below for exact values.|
|knownFalsePositives|String|Scenarios in which the indicator may cause false positives. This should be human-readable text.| |lastReportedDateTime|DateTimeOffset|The last time the indicator was seen. 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`| |malwareFamilyNames|String collection|The malware family name associated with an indicator if it exists. Microsoft prefers the Microsoft malware family name if at all possible which can be found via the Windows Defender Security Intelligence [threat encyclopedia](https://www.microsoft.com/wdsi/threats).| |passiveOnly|Boolean|Determines if the indicator should trigger an event that is visible to an end-user. When set to ΓÇÿtrue,ΓÇÖ security tools will not notify the end user that a ΓÇÿhitΓÇÖ has occurred. This is most often treated as audit or silent mode by security products where they will simply log that a match occurred but will not perform the action. Default value is false.| |severity|Int32|An integer representing the severity of the malicious behavior identified by the data within the indicator. Acceptable values are 0 ΓÇô 5 where 5 is the most severe and zero is not severe at all. Default value is 3.| |tags|String collection|A JSON array of strings that stores arbitrary tags/keywords.|
-|tlpLevel|[tlpLevel](#tlplevel-values)| Traffic Light Protocol value for the indicator. Possible values are: `unknown`, `white`, `green`, `amber`, `red`.|
+|tlpLevel|[tlpLevel](../resources/tiindicator.md#tlplevel-values)| Traffic Light Protocol value for the indicator. Possible values are: `unknown`, `white`, `green`, `amber`, `red`.|
-### diamondModel values
-
-For information about this model, see [The diamond model](http://diamondmodel.org).
-
-| Values | Description |
-|:-|:|
-|adversary|The indicator describes the adversary.|
-|capability|The indicator is a capability of the adversary.|
-|infrastructure|The indicator describes infrastructure of the adversary.|
-|victim|The indicator describes the victim of the adversary.|
-
-### killChain values
-
-| Values | Description |
-|:-|:|
-|Actions|Represents ΓÇ£Actions on ObjectivesΓÇ¥. The attacker is leveraging the compromised system to take actions such as a distributed denial of service attack.|
-|C2|Represents the control channel by which a compromised system is manipulated.|
-|Delivery|The process of distributing the exploit code to victims (for example USB, email, websites).|
-|Exploitation|The exploit code taking advantage of vulnerabilities (for example, code execution).|
-|Installation|Installing malware after a vulnerability has been exploited.|
-|Reconnaissance|Indicator is evidence of an activity group harvesting information to be used in a future attack.|
-|Weaponization|Turning a vulnerability into exploit code (for example, malware).|
-
-### tlpLevel values
-
-Every indicator must have a Traffic Light Protocol (tlp) value when it is submitted. This value represents the sensitivity and sharing scope of a given indicator.
-
-| Values | Description |
-|:-|:|
-|White| Sharing scope: Unlimited. Indicators can be shared freely, without restriction.|
-|Green| Sharing scope: Community. Indicators can be shared with the security community.|
-|Amber| Sharing scope: Limited. This is the default setting for indicators and restricts sharing to only those with a need-to-know: 1) Services and service operators that implement threat intelligence; 2) Customers whose system(s) exhibit behavior consistent with the indicator.|
-|Red| Sharing scope: Personal. These indicators are to only be shared directly and, preferably, in person. Typically, TLP Red indicators are not ingested due to their pre-defined restrictions. If TLP Red indicators are submitted, the **passiveOnly** property should be set to `True` as well. |
## Response
v1.0 https://docs.microsoft.com/en-us/graph/api/user-getmembergroups https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/user-getmembergroups.md
@@ -26,9 +26,9 @@ One of the following permissions is required to call this API. To learn more, in
| Permission type | Permissions (from least to most privileged) | | :- | : |
-| Delegated (work or school account) | User.ReadBasic.All and GroupMember.Read.All, User.Read and GroupMember.Read.All, User.Read.All and GroupMember.Read.All, User.ReadBasic.All and Group.Read.All, User.Read and Group.Read.All, User.Read.All and Group.Read.All, Directory.Read.All, Directory.ReadWrite.All, Directory.AccessAsUser.All |
+| Delegated (work or school account) | User.ReadBasic.All, User.Read, User.Read.All, Directory.Read.All, Directory.ReadWrite.All, Directory.AccessAsUser.All |
| Delegated (personal Microsoft account) | Not supported. |
-| Application | User.Read.All and GroupMember.Read.All, User.Read.All and Group.Read.All, Directory.Read.All, Directory.ReadWrite.All |
+| Application | User.Read.All, Directory.Read.All, Directory.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/user-list-messages https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/user-list-messages.md
@@ -15,7 +15,11 @@ Namespace: microsoft.graph
Get the messages in the signed-in user's mailbox (including the Deleted Items and Clutter folders).
-Depending on the page size and mailbox data, getting messages from a mailbox can incur multiple requests. The default page size is 10 messages. To get the next page of messages, simply apply the entire URL returned in `@odata.nextLink` to the next get-messages request. This URL includes any query parameters you may have specified in the initial request.
+Depending on the page size and mailbox data, getting messages from a mailbox can incur multiple requests. The default page size is 10 messages. Use `$top` to customize the page size, within the range of 1 and 1000.
+
+To improve the operation response time, use `$select` to specify the exact properties you need; see [example 1](#example-1-list-all-messages) below. Fine-tune the values for `$select` and `$top`, especially when you must use a larger page size, as returning a page with hundreds of messages each with a full response payload may trigger the [gateway timeout](/graph/errors#http-status-codes) (HTTP 504).
+
+To get the next page of messages, simply apply the entire URL returned in `@odata.nextLink` to the next get-messages request. This URL includes any query parameters you may have specified in the initial request.
Do not try to extract the `$skip` value from the `@odata.nextLink` URL to manipulate responses. This API uses the `$skip` value to keep count of all the items it has gone through in the user's mailbox to return a page of message-type items. It's therefore possible that even in the initial response, the `$skip` value is larger than the page size. For more information, see [Paging Microsoft Graph data in your app](/graph/paging).
@@ -95,8 +99,9 @@ Do not supply a request body for this method.
If successful, this method returns a `200 OK` response code and collection of [message](../resources/message.md) objects in the response body.
-## Example
-##### Request 1
+## Examples
+### Example 1: List all messages
+#### Request
The first example gets the default, top 10 messages in the signed-in user's mailbox. It uses `$select` to return a subset of the properties of each message in the response. # [HTTP](#tab/http)
@@ -125,7 +130,7 @@ GET https://graph.microsoft.com/beta/me/messages?$select=sender,subject
-##### Response 1
+#### Response
Here is an example of the response. To get the next page of messages, apply the URL returned in `@odata.nextLink` to a subsequent GET request. <!-- {
@@ -235,10 +240,9 @@ Content-type: application/json
} ``` -
-##### Request 2
-The next example filters all messages in the signed-in user's mailbox for those that mention the user. It also uses `$select`
-to return a subset of the properties of each message in the response.
+### Example 2: Use $filter to get all messages satisfying a specific condition
+#### Request
+The next example filters all messages in the signed-in user's mailbox for those that mention the user. It also uses `$select` to return a subset of the properties of each message in the response.
The example also incorporates URL encoding for the space characters in the query parameter string.
@@ -268,7 +272,7 @@ GET https://graph.microsoft.com/beta/me/messages?$filter=MentionsPreview/IsMenti
-##### Response 2
+#### 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. <!-- { "blockType": "response",
@@ -320,7 +324,8 @@ Content-length: 987
} ```
-##### Request 3
+### Example 3: Use prefer header to get the message body and uniqueBody is text format
+#### Request
The third example shows how to use a `Prefer: outlook.body-content-type="text"` header to get the **body** and **uniqueBody** properties of each message in text format. # [HTTP](#tab/http)
@@ -350,7 +355,7 @@ Prefer: outlook.body-content-type="text"
-##### Response 3
+#### Response
Here is an example of the response. <!--
v1.0 https://docs.microsoft.com/en-us/graph/api/user-translateexchangeids https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/user-translateexchangeids.md
@@ -50,7 +50,7 @@ POST /users/{id|userPrincipalName}/translateExchangeIds
### exchangeIdFormat values
-| Values | Description |
+| Member | Description |
|:-|:| | entryId | The binary entry ID format used by MAPI clients. | | ewsId | The ID format used by Exchange Web Services clients. |
v1.0 https://docs.microsoft.com/en-us/graph/api/usersource-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/usersource-get.md
@@ -58,6 +58,8 @@ If successful, this method returns a `200 OK` response code and a [userSource](.
### Request +
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "get_usersource"
@@ -67,6 +69,24 @@ If successful, this method returns a `200 OK` response code and a [userSource](.
``` http GET https://graph.microsoft.com/beta/compliance/ediscovery/cases4c8f8f70-7785-4bd4-b296-c98376a2c5e1/custodians/2192ca408ea2410eba3bec8ae873be6b/userSources/46384443-4137-3032-3437-363939433735 ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/cloudpconpremisesconnection-runhealthcheck-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/cloudpconpremisesconnection-runhealthcheck-csharp-snippets.md
@@ -6,8 +6,8 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-await graphClient.DeviceManagement.VirtualEndpoint.CloudPCs["{id}"]
- .Reprovision()
+await graphClient.DeviceManagement.VirtualEndpoint.OnPremisesConnections["{id}"]
+ .RunHealthChecks()
.Request() .PostAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-csharp-snippets.md
@@ -0,0 +1,31 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var accessPackageResourceRequest = new AccessPackageResourceRequestObject
+{
+ CatalogId = "de9315c1-272b-4905-924b-cc112ca180c7",
+ AccessPackageResource = new AccessPackageResource
+ {
+ DisplayName = "Community Outreach",
+ Description = "https://contoso.sharepoint.com/sites/CSR",
+ ResourceType = "SharePoint Online Site",
+ OriginId = "https://contoso.sharepoint.com/sites/CSR",
+ OriginSystem = "SharePointOnline",
+ AdditionalData = new Dictionary<string, object>()
+ {
+ {"accessPackageResourceEnvironment@odata.bind", "accessPackageResourceEnvironments/615f2218-678f-471f-a60a-02c2f4f80c57"}
+ }
+ },
+ RequestType = "AdminAdd"
+};
+
+await graphClient.IdentityGovernance.EntitlementManagement.AccessPackageResourceRequests
+ .Request()
+ .AddAsync(accessPackageResourceRequest);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-new-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-new-csharp-snippets.md
@@ -0,0 +1,31 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var accessPackageResourceRequest = new AccessPackageResourceRequestObject
+{
+ CatalogId = "de9315c1-272b-4905-924b-cc112ca180c7",
+ AccessPackageResource = new AccessPackageResource
+ {
+ DisplayName = "Community Outreach",
+ Description = "https://contoso.sharepoint.com/sites/CSR",
+ ResourceType = "SharePoint Online Site",
+ OriginId = "https://contoso.sharepoint.com/sites/CSR",
+ OriginSystem = "SharePointOnline",
+ AccessPackageResourceEnvironment = new AccessPackageResourceEnvironment
+ {
+ OriginId = "https://contoso-admin.sharepoint.com/"
+ }
+ },
+ RequestType = "AdminAdd"
+};
+
+await graphClient.IdentityGovernance.EntitlementManagement.AccessPackageResourceRequests
+ .Request()
+ .AddAsync(accessPackageResourceRequest);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-chatmessage-from-channel-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-chatmessage-from-channel-csharp-snippets.md
@@ -8,44 +8,9 @@ GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var chatMessage = new ChatMessage {
- Subject = null,
Body = new ItemBody {
- ContentType = BodyType.Html,
- Content = "<attachment id=\"74d20c7f34aa4a7fb74e2b30004247c5\"></attachment>"
- },
- Attachments = new List<ChatMessageAttachment>()
- {
- new ChatMessageAttachment
- {
- Id = "74d20c7f34aa4a7fb74e2b30004247c5",
- ContentType = "application/vnd.microsoft.card.adaptive",
- ContentUrl = null,
- Content = "{\r\n \"$schema\": \"http://adaptivecards.io/schemas/adaptive-card.json\",\r\n \"type\": \"AdaptiveCard\",\r\n \"version\": \"1.2\",\r\n \"speak\": \"The Seattle Seahawks beat the Carolina Panthers 40-7\",\r\n \"body\": [\r\n {\r\n \"type\": \"Container\",\r\n \"items\": [\r\n {\r\n \"type\": \"ColumnSet\",\r\n \"columns\": [\r\n {\r\n \"type\": \"Column\",\r\n \"width\": \"auto\",\r\n \"items\": [\r\n {\r\n \"type\": \"Image\",\r\n \"url\": \"../hostedContents/1/$value\",\r\n \"size\": \"Medium\"\r\n },\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"SHADES\",\r\n \"horizontalAlignment\": \"Center\",\r\n \"weight\": \"Bolder\"\r\n }\r\n ]\r\n },\r\n {\r\n \"type\": \"Column\",\r\n \"width\": \"stretch\",\r\n \"separator\": true,\r\n \"spacing\": \"Medium\",\r\n \"items\": [\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"2019-08-31T19:30:00Z\",\r\n \"horizontalAlignment\": \"Center\"\r\n },\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"Final\",\r\n \"spacing\": \"None\",\r\n \"horizontalAlignment\": \"Center\"\r\n },\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"40 - 7\",\r\n \"size\": \"ExtraLarge\",\r\n \"horizontalAlignment\": \"Center\"\r\n }\r\n ]\r\n },\r\n {\r\n \"type\": \"Column\",\r\n \"width\": \"auto\",\r\n \"separator\": true,\r\n \"spacing\": \"Medium\",\r\n \"items\": [\r\n {\r\n \"type\": \"Image\",\r\n \"url\": \"../hostedContents/2/$value\",\r\n \"size\": \"Medium\",\r\n \"horizontalAlignment\": \"Center\"\r\n },\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"SKINS\",\r\n \"horizontalAlignment\": \"Center\",\r\n \"weight\": \"Bolder\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}",
- Name = null,
- ThumbnailUrl = null
- }
- },
- HostedContents = new ChatMessageHostedContentsCollectionPage()
- {
- new ChatMessageHostedContent
- {
- ContentBytes = Encoding.ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaK6UvXb169ToGNuA0Cp+oYVHlxsYGK2QVEFqnT5/eej8/+9nPtr73LwjvFZPxeK84GsMpJHueEniGFJ7785///Ox73/vell/84hcUaoSff/WrX92aOMeCz64UVo389eTJk//1ne98Z/OnP/3p22+99dZ7NlZpaORGw6Ure0Kk72GD73/vfFU0BjQ6KT5lI8UsRjiS6vNFpFibhecoKaBTh9QXv/jF2Y9+9KPZr371K1qDJkqs09jhL14cPLzxxhtudzhogoZNW/ZEe4zLYSECC4ViRRwCghODxWOFOsIO4YzOwV47lxQhdf/9928dCfUJ8GXwnDgiHbpOU4Ijfzu6+pDtD280dJqyJ0A4ud3sahE65pBhhXDKdUEyAnDIQdgnpBBOL774In1fqQ1dp6lBnXONgUU0fNaxB2KuCad09Ek94bA/53wOdgwGAtsWbxiEQwRz15DCkZPHEeY6eE0cgbL3IumhT7L94IWG0Cr2oGNm0HNUwCmX99+gmP/wOF1pC6e8Oefn2obUww8/3Gu+KRX8BVb6POZY4C8Ftg880CBi7JezrzRdx7NT5twJTeBoARP1bFtTaxNSJ0+epNs7lKGOPqco5aVjq9BAitkvIqCyrzRtAp0y9Sc+Q5x3N5VjADYNqVxzT13gFJ29N0kHZzI5Tu9pKC2yX8JSeJfveE8pxeBF0XP97dAHQpRtfypNQqrkgAq86yR55qdoMAX2C5ggH3z+qam+p0OY+2HPWyLPAbgupGoIqEBB5c/7aIqGE9gPiz3FW6bPqV/Jp3jLeJ36rQqpmgIq0KmfL3yIxeqeyCkaUGA/zLL+KTUEVdtP/YZaYpCCx3KMZSFV2iR5G7k+dJgi9EFW8wRwkLRrWUANdsVzCjhtY8VkHAucRZdQXoeFFJYZsNevBeqk5Ql+WM17wjTT1l1EWUBluW+xtyaL+zC4S1gH1VebUG6ChVQJ66D6Sl0nucVhHG3fnYGFVFXzUMs0+ZvT+Vw6q5SnM3FIYSU5e80aaWW6j8QfOp1azKQ4oHAHA/agKq36ZAcBxh5TK/xNlvK0LwQUrsVD4LPXrJHH6bEkDakdN+NbDCh8mlfNcoOmlk0s1/hp3jqpPsX68pe/vB1SNX6at44+7UsvUUjRu4Vu/4f9wqiOogIszowLOrajqABHCfF77eIHP/jB9lEUe53a6WgqPVbnlpbeznj7P+yXil9V3lU8NzXGo6ig79qpb3zjG9shdfbsWfoaY6C5qXSwNpHVuIWV91vf+of9Eu4LxR48CouH9/gbdExzLDFcdL3Ygdp64YUXtkNqzHXCHB57/9Jez4vxb5skZ7b+Yb9Y1N0NUlvskDmuNRpan/VAf/rTn7ZCCrf8Zc89JroVcRr4i5HVdw3Mf9MvgYht/WP+APZEoxE6ZA0XEPfV9VQGyxjwByE1xgnzmCbQ++u4GBrLnBp/3TsCahSLN9cJA3fMpzAB+7Cgibffftv6xEchNYZFruv0PTWWTp/q4VujWn2DMkIKd9pkTzYqGLgJJviq0OVTPsxFhT8XLlygzztGrBbSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg=="),
- ContentType = "image/png",
- AdditionalData = new Dictionary<string, object>()
- {
- {"@microsoft.graph.temporaryId", "1"}
- }
- },
- new ChatMessageHostedContent
- {
- ContentBytes = Encoding.ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEar6WzSnk5E4cUVpKz16yRVqb7SPym08nFTIoDCncwYA+q0qp3dhBg7DG1wt9kKS/7QkDhs3gIfPaaNfK4PJakIbXrZnyLAYV386pZbtDUsonlGt/NWyfVu1hPPfXUTkjV+G7eOnq3L71EIUXvFrrzH/YLozqLCrA4My7o2M6iApwlxPvaxSuvvLJzFsVep3Y6m0qP1bmlpbcz3vkP+6XiV5V3Fc9NjfEsKui7duq5557bCakzZ87Q1xgDzU2lg7WJrMYtrLzf+vY/7JdwXyj24FFYPL3H36BjmmOJ4UPXix2orbfeemsnpMZcJ8zhsf2X9np+GP9Hk+TM9j/sF4u6u0Fqix0yx2eNhtZnPdBXX321HVK45S977jHRrYjTwF+MrL5rYP6bfglEbPsf8wewJxqN0CFr+ABxX10vZbCMAX8QUmOcMI9pAr2/jouhscyp8de9I6BGsXhznTBwx3wJE7A3C5r4/PPPrU/8EFJjWOS6Tt9LY+n0rh6+NarVNygjpHCnTfZko4KBm2CCrwpd3uXDXFT4c+7cOfq8Y8RqIc20nIvC2dN+6140iFYZ/XxUgDODKcxHBW3mW/CO3uKf9957jz7nGHl8QHsK0L8aXpVgKmnTuhUNoCYQUlXe7aCLmu920FbTj8kgoL7//nvrC9f//OlPf6LPOUZaitBew4BCOOFGBa0u7RiEFHuBUer4LkSVmkwKI8jigMKfTz75hD7nGGnyvB2cef71r3/9P1bLOay3xMLw3uEUKKRGatXge/LJJ2fvvvuuHX/+54svvqDPOUa6c2czWF+44koEZ02YNmr8jl0bCqmRwh0e4o6GcMIE+bfffmvHfvmfKYWUbt+yGsIJc7mfffbZf0e1w0Q43qnrNBnexqRC6uOPP6btY4RAxuUc4Kzpo48+suPd7I9CapqwCBiXc/DGG298+8EHH/yXXdr9zfrDv1utEEhYCeAeSj82+8n/A1GsifSVBvjAAAAAAElFTkSuQmCC"),
- ContentType = "image/png",
- AdditionalData = new Dictionary<string, object>()
- {
- {"@microsoft.graph.temporaryId", "2"}
- }
- }
+ Content = "Hello World"
} };
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-directoryobject-from-device-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-directoryobject-from-device-csharp-snippets.md
@@ -11,7 +11,7 @@ var directoryObject = new DirectoryObject
Id = "{id}" };
-await graphClient.Devices["{id}"].RegisteredOwners.References
+await graphClient.Devices["{id}"].RegisteredUsers.References
.Request() .AddAsync(directoryObject);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-educationclass-from-educationschool-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-educationclass-from-educationschool-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-await graphClient.Education.Schools["10001"].Users["13006"]
+await graphClient.Education.Classes["{id}"].Teachers["14012"]
.Request() .DeleteAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-identityuserflowattributeassignment-from--csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-identityuserflowattributeassignment-from--csharp-snippets.md
@@ -21,7 +21,7 @@ var identityUserFlowAttributeAssignment = new IdentityUserFlowAttributeAssignmen
} };
-await graphClient.Identity.B2cUserFlows["B2C_1_Consumer"].UserAttributeAssignments
+await graphClient.Identity.B2xUserFlows["B2X_1_Partner"].UserAttributeAssignments
.Request() .AddAsync(identityUserFlowAttributeAssignment);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-listitem-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-listitem-csharp-snippets.md
@@ -6,21 +6,17 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var listItem = new ListItem
+var fieldValueSet = new FieldValueSet
{
- Fields = new FieldValueSet
+ AdditionalData = new Dictionary<string, object>()
{
- AdditionalData = new Dictionary<string, object>()
- {
- {"Title", "Widget"},
- {"Color", "Purple"},
- {"Weight", "32"}
- }
+ {"Color", "Fuchsia"},
+ {"Quantity", "934"}
} };
-await graphClient.Sites["{site-id}"].Lists["{list-id}"].Items
+await graphClient.Sites["{site-id}"].Lists["{list-id}"].Items["{item-id}"].Fields
.Request()
- .AddAsync(listItem);
+ .UpdateAsync(fieldValueSet);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-permission-from--csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-permission-from--csharp-snippets.md
@@ -0,0 +1,32 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var permission = new Permission
+{
+ Roles = new List<String>()
+ {
+ "write"
+ },
+ GrantedToIdentities = new List<IdentitySet>()
+ {
+ new IdentitySet
+ {
+ Application = new Identity
+ {
+ Id = "89ea5c94-7736-4e25-95ad-3fa95f62b66e",
+ DisplayName = "Foo App"
+ }
+ }
+ }
+};
+
+await graphClient.Sites["{sitesId}"].Permissions
+ .Request()
+ .AddAsync(permission);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/delete-b2xuserflows-identityproviders-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/delete-b2xuserflows-identityproviders-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-await graphClient.Identity.B2xUserFlows["B2X_1_PartnerSignUp"].IdentityProviders["Facebook-OAUTH"].Reference
+await graphClient.Identity.B2cUserFlows["B2C_1_CustomerSignUp"].IdentityProviders["Facebook-OAUTH"].Reference
.Request() .DeleteAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/delete-educationassignment-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/delete-educationassignment-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-await graphClient.Education.Classes["11014"].Assignments["19002"]
+await graphClient.Education.Classes["11014"].AssignmentCategories["19002"]
.Request() .DeleteAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/delete-permission-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/delete-permission-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-await graphClient.Me.Drive.Root.Items["{item-id}"].Permissions["{perm-id}"]
+await graphClient.Sites["{sitesId}"].Permissions["{permissionId}"]
.Request() .DeleteAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-a-count-endswith-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-a-count-endswith-csharp-snippets.md
@@ -9,8 +9,8 @@ GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var users = await graphClient.Users .Request() .Header("ConsistencyLevel","eventual")
- .Filter("endswith(mail,'a@contoso.com'),")
- .OrderBy("userPrincipalName ")
+ .Filter("endswith(mail,'a@contoso.com')")
+ .OrderBy("userPrincipalName")
.GetAsync(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-accesspackageresourceenvironment-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-accesspackageresourceenvironment-csharp-snippets.md
@@ -0,0 +1,13 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var accessPackageResourceEnvironment = await graphClient.IdentityGovernance.EntitlementManagement.AccessPackageResourceEnvironments["{accessPackageResourceEnvironmentId}"]
+ .Request()
+ .GetAsync();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-accesspackageresourceroles-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-accesspackageresourceroles-csharp-snippets.md
@@ -8,7 +8,7 @@ GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var accessPackageResourceRoles = await graphClient.IdentityGovernance.EntitlementManagement.AccessPackageCatalogs["15d889df-3eb8-4e9b-bfb4-b1908849aec4"].AccessPackageResourceRoles .Request()
- .Filter("(originSystem eq 'AadGroup' and accessPackageResource/id eq 'a35bef72-a8aa-4ca3-af30-f6b2ece7208f'),")
+ .Filter("(originSystem eq 'AadGroup' and accessPackageResource/id eq 'a35bef72-a8aa-4ca3-af30-f6b2ece7208f')")
.Expand("accessPackageResource/id%20eq%20'a35bef72-a8aa-4ca3-af30-f6b2ece7208f')") .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-accessreviews-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-accessreviews-csharp-snippets.md
@@ -8,7 +8,7 @@ GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var accessReviews = await graphClient.AccessReviews .Request()
- .Filter("businessFlowTemplateId eq '6e4f3d20-c5c3-407f-9695-8460952bcc68',")
+ .Filter("businessFlowTemplateId eq '6e4f3d20-c5c3-407f-9695-8460952bcc68'")
.Skip(0) .Top(100) .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-bitlockerrecoverykey-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-bitlockerrecoverykey-csharp-snippets.md
@@ -6,11 +6,9 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var recoveryKeys = await graphClient.Bitlocker.RecoveryKeys
+var bitlockerRecoveryKey = await graphClient.Bitlocker.RecoveryKeys["b465e4e8-e4e8-b465-e8e4-65b4e8e465b4"]
.Request()
- .Header("ocp-client-name","\"My Friendly Client\"")
- .Header("ocp-client-version","\"1.2\"")
- .Filter("deviceId eq '1ab40ab2-32a8-4b00-b6b5-ba724e407de9'")
+ .Select("key")
.GetAsync(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-buckets-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-buckets-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var buckets = await graphClient.Planner.Plans["2txjA-BMZEq-bKi6Wfj5aGQAB1OJ"].Buckets
+var buckets = await graphClient.Planner.Buckets
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-classes-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-classes-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var classes = await graphClient.Education.Classes
+var classes = await graphClient.Education.Schools["10002"].Classes
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-cloudpconpremisesconnection-withdetails-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-cloudpconpremisesconnection-withdetails-csharp-snippets.md
@@ -8,7 +8,7 @@ GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var cloudPcOnPremisesConnection = await graphClient.DeviceManagement.VirtualEndpoint.OnPremisesConnections["{id}"] .Request()
- .Select("id,displayName,subscriptionId,subscriptionName,adDomainName,adDomainUsername,organizationalUnit,virtualNetworkId,subnetId,healthCheckStatus,healthCheckStatusDetails,inUse")
+ .Select("id,displayName,healthCheckStatus,healthCheckStatusDetails,inUse")
.GetAsync(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-connectors-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-connectors-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var connectors = await graphClient.OnPremisesPublishingProfiles["applicationProxy"].Connectors
+var connectors = await graphClient.Print.Connectors
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-contract-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-contract-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var contract = await graphClient.Contracts["{id}"]
+var contracts = await graphClient.Contracts
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-custodian-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-custodian-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var custodians = await graphClient.Compliance.Ediscovery.Cases["2192ca408ea2410eba3bec8ae873be6b"].Custodians
+var custodian = await graphClient.Compliance.Ediscovery.Cases["2192ca408ea2410eba3bec8ae873be6b"].Custodians["45454331323337443946343043464239"]
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-educationuser-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-educationuser-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var educationUser = await graphClient.Education.Users["13012"]
+var user = await graphClient.Education.Me.User
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-emailauthenticationmethod-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-emailauthenticationmethod-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var emailAuthenticationMethod = await graphClient.Me.Authentication.EmailMethods["3ddfcfc8-9383-446f-83cc-3ab9be4be18f"]
+var emailMethods = await graphClient.Me.Authentication.EmailMethods
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-endpoints-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-endpoints-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var reportRoot = await graphClient.Print.Reports["dailyPrintUsageSummariesByPrinter"]
+var endpoints = await graphClient.Groups["{id}"].Endpoints
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-group-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-group-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var groups = await graphClient.TermStore.Groups
+var group = await graphClient.Groups["45b7d2e7-b882-4a80-ba97-10b7a63b8fa4"]
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-grouplifecyclepolicy-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-grouplifecyclepolicy-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var groupLifecyclePolicies = await graphClient.GroupLifecyclePolicies
+var groupLifecyclePolicy = await graphClient.GroupLifecyclePolicies["{id}"]
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-identityprovider-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-identityprovider-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var identityProvider = await graphClient.IdentityProviders["{id}"]
+var identityProviders = await graphClient.IdentityProviders
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-itemphone-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-itemphone-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var phones = await graphClient.Me.Profile.Phones
+var itemPhone = await graphClient.Me.Profile.Phones["{id}"]
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-jobs-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-jobs-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var jobs = await graphClient.Print.Printers["{id}"].Jobs
+var jobs = await graphClient.ServicePrincipals["{id}"].Synchronization.Jobs
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-messages-with-mentions-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-messages-with-mentions-csharp-snippets.md
@@ -8,7 +8,7 @@ GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var messages = await graphClient.Me.Messages .Request()
- .Filter("MentionsPreview/IsMentioned eq true,")
+ .Filter("MentionsPreview/IsMentioned eq true")
.Select("subject,sender,receivedDateTime,mentionsPreview") .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-names-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-names-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var names = await graphClient.Me.Drive.Items["{id}"].Workbook.Names
+var names = await graphClient.Me.Profile.Names
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-opentypeextension-3-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-opentypeextension-3-csharp-snippets.md
@@ -8,7 +8,6 @@ GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var message = await graphClient.Me.Messages["AAMkAGE1M2IyNGNmLTI5MTktNDUyZi1iOTVl==="] .Request()
- .Filter("id eq 'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')")
.Expand("extensions($filter=id%20eq%20'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')") .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-passwordlessmicrosoftauthenticatorauthenticationmethod-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-passwordlessmicrosoftauthenticatorauthenticationmethod-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var passwordlessMicrosoftAuthenticatorAuthenticationMethod = await graphClient.Me.Authentication.PasswordlessMicrosoftAuthenticatorMethods["R18B3t8Ogh9XIOGmPt81d6p_KXJs1YTxfGgGqeVFJSM1"]
+var passwordlessMicrosoftAuthenticatorMethods = await graphClient.Me.Authentication.PasswordlessMicrosoftAuthenticatorMethods
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-permission-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-permission-csharp-snippets.md
@@ -0,0 +1,13 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var permission = await graphClient.Sites["{sitesId}"].Permissions["{permissionId}"]
+ .Request()
+ .GetAsync();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-plans-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-plans-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var plans = await graphClient.Planner.Plans
+var plans = await graphClient.Me.Planner.Plans
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-privilegedapproval-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-privilegedapproval-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var privilegedApproval = await graphClient.PrivilegedApproval["{id}"]
+var privilegedApproval = await graphClient.PrivilegedApproval
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-replies-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-replies-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var replies = await graphClient.Drive.Items["{id}"].Workbook.Comments["{id}"].Replies
+var replies = await graphClient.Chats["{id}"].Messages["{id}"].Replies
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-roleassignments-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-roleassignments-csharp-snippets.md
@@ -8,7 +8,6 @@ GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var roleAssignments = await graphClient.RoleManagement.Directory.RoleAssignments .Request()
- .Filter(" principalId eq 'f1847572-48aa-47aa-96a3-2ec61904f41f'")
.GetAsync(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-settings-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-settings-csharp-snippets.md
@@ -6,11 +6,8 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var analytics = await graphClient.Me.Analytics
+var settings = await graphClient.Settings
.Request()
- .Select("Settings")
.GetAsync();
-var settings = analytics.Settings;
- ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-signin-last-time-filter-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-signin-last-time-filter-csharp-snippets.md
@@ -8,7 +8,7 @@ GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var users = await graphClient.Users .Request()
- .Filter("startswith(displayName,'Eric'),")
+ .Filter("startswith(displayName,'Eric')")
.Select("displayName,signInActivity") .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-singlevaluelegacyextendedproperty-1-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-singlevaluelegacyextendedproperty-1-csharp-snippets.md
@@ -8,7 +8,6 @@ GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var message = await graphClient.Me.Messages["AAMkAGE1M2_bs88AACHsLqWAAA="] .Request()
- .Filter("id eq 'String {66f5a359-4659-4830-9070-00047ec6ac6e} Name Color')")
.Expand("singleValueExtendedProperties($filter=id%20eq%20'String%20%7B66f5a359-4659-4830-9070-00047ec6ac6e%7D%20Name%20Color')") .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-swapshiftschangerequest-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-swapshiftschangerequest-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var swapShiftsChangeRequest = await graphClient.Teams["{teamId}"].Schedule.SwapShiftsChangeRequests["{swapShiftsChangeRequestId}"]
+var swapShiftsChangeRequests = await graphClient.Teams["{teamId}"].Schedule.SwapShiftsChangeRequests
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-synchronizationschema-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-synchronizationschema-csharp-snippets.md
@@ -6,8 +6,9 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var synchronizationSchema = await graphClient.ServicePrincipals["{id}"].Synchronization.Jobs["{jobId}"].Schema
+var synchronizationSchema = await graphClient.ServicePrincipals["{servicePrincipalId}"].Synchronization.Jobs["{jobId}"].Schema
.Request()
+ .Header("Authorization","Bearer {Token}")
.GetAsync(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-term-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-term-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var term = await graphClient.TermStore.Groups["{groupId}"].Sets["{setId}"].Terms["{termId}"]
+var children = await graphClient.TermStore.Sets["{setId}"].Children
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-todotask-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-todotask-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var todoTask = await graphClient.Me.Todo.Lists["AAMkADA1MTHgwAAA="].Tasks["721a35e2-35e2-721a-e235-1a72e2351a72"]
+var tasks = await graphClient.Me.Todo.Lists["35e2-35e2-721a-e235-1a72e2351a7"].Tasks
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-todotasklist-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-todotasklist-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var lists = await graphClient.Me.Todo.Lists
+var todoTaskList = await graphClient.Me.Todo.Lists["AAMkADIyAAAAABrJAAA="]
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-unifiedgroupsource-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-unifiedgroupsource-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var unifiedGroupSources = await graphClient.Compliance.Ediscovery.Cases["4c8f8f70-7785-4bd4-b296-c98376a2c5e1"].Custodians["2192ca408ea2410eba3bec8ae873be6b"].UnifiedGroupSources
+var unifiedGroupSource = await graphClient.Compliance.Ediscovery.Cases["4c8f8f70-7785-4bd4-b296-c98376a2c5e1"].Custodians["2192ca408ea2410eba3bec8ae873be6b"].UnifiedGroupSources["33434233-3030-3739-3043-393039324633"]
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-unifiedroleassignment-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-unifiedroleassignment-csharp-snippets.md
@@ -6,9 +6,9 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var unifiedRoleAssignment = await graphClient.RoleManagement.Directory.RoleAssignments["lAPpYvVpN0KRkAEhdxReEJC2sEqbR_9Hr48lds9SGHI-1"]
+var unifiedRoleAssignmentMultiple = await graphClient.RoleManagement.DeviceManagement.RoleAssignments["lAPpYvVpN0KRkAEhdxReEJC2sEqbR_9Hr48lds9SGHI-1"]
.Request()
- .Expand("directoryScope")
+ .Expand("directoryScopes")
.GetAsync(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-unifiedroleassignmentmultiple-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-unifiedroleassignmentmultiple-csharp-snippets.md
@@ -8,7 +8,6 @@ GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var roleAssignments = await graphClient.RoleManagement.DeviceManagement.RoleAssignments .Request()
- .Filter(" principalIds/any(x:x eq '564ae70c-73d9-476b-820b-fb61eb7384b9')")
.GetAsync(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-userflowlanguagepage-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-userflowlanguagepage-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var stream = await graphClient.Identity.B2cUserFlows["B2C_1_Customer"].Languages["en"].DefaultPages["idpselections"].Content
+var defaultPages = await graphClient.Identity.B2cUserFlows["B2C_1_Customer"].Languages["en"].DefaultPages
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-usersource-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-usersource-csharp-snippets.md
@@ -0,0 +1,13 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var userSources = await graphClient.Compliance.Ediscovery.Cases["4c8f8f70-7785-4bd4-b296-c98376a2c5e1"].Custodians["2192ca408ea2410eba3bec8ae873be6b"].UserSources
+ .Request()
+ .GetAsync();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/group-create-approleassignment-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/group-create-approleassignment-csharp-snippets.md
@@ -13,7 +13,7 @@ var appRoleAssignment = new AppRoleAssignment
AppRoleId = Guid.Parse("appRoleId-value") };
-await graphClient.ServicePrincipals["{id}"].AppRoleAssignments
+await graphClient.Groups["{id}"].AppRoleAssignments
.Request() .AddAsync(appRoleAssignment);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/list-accesspackageresourceenvironment-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/list-accesspackageresourceenvironment-csharp-snippets.md
@@ -0,0 +1,14 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var accessPackageResourceEnvironments = await graphClient.IdentityGovernance.EntitlementManagement.AccessPackageResourceEnvironments
+ .Request()
+ .Filter("originSystem eq 'SharePointOnline'")
+ .GetAsync();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/list-permission-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/list-permission-csharp-snippets.md
@@ -0,0 +1,13 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var permissions = await graphClient.Sites["{sitesId}"].Permissions
+ .Request()
+ .GetAsync();
+
+```
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
@@ -8,7 +8,7 @@ GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var teamsApps = await graphClient.AppCatalogs.TeamsApps .Request()
- .Filter("id eq '876df28f-2e78-423b-94a5-44181bd0e225',")
+ .Filter("id eq '876df28f-2e78-423b-94a5-44181bd0e225'")
.Expand("appDefinitions") .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/list-usageright-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/list-usageright-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var usageRights = await graphClient.Users["{userId}"].UsageRights
+var usageRights = await graphClient.Devices["{objectId}"].UsageRights
.Request() .Filter("state in ('active', 'suspended') and serviceIdentifier in ('ABCD')") .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/sendreminder-accessreview-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/sendreminder-accessreview-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-await graphClient.AccessReviews["2975E9B5-44CE-4E71-93D3-30F03B5AA992"]
+await graphClient.IdentityGovernance.AccessReviews.Definitions["04e5c3b2-9db2-40d3-a204-128f4956ae8e"].Instances["70463350-742e-4909-bfa5-bc23447bd002"]
.SendReminder() .Request() .PostAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/shift-get-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/shift-get-csharp-snippets.md
@@ -6,8 +6,43 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var shiftPreferences = await graphClient.Users["871dbd5c-3a6a-4392-bfe1-042452793a50"].ShiftPreferences
+var shiftPreferences = new ShiftPreferences
+{
+ Id = "SHPR_eeab4fb1-20e5-48ca-ad9b-98119d94bee7",
+ Availability = new List<ShiftAvailability>()
+ {
+ new ShiftAvailability
+ {
+ Recurrence = new PatternedRecurrence
+ {
+ Pattern = new RecurrencePattern
+ {
+ Type = RecurrencePatternType.Weekly,
+ DaysOfWeek = new List<DayOfWeek>()
+ {
+ DayOfWeek.Monday,
+ DayOfWeek.Wednesday,
+ DayOfWeek.Friday
+ },
+ Interval = 1
+ },
+ Range = new RecurrenceRange
+ {
+ Type = RecurrenceRangeType.NoEnd
+ }
+ },
+ TimeZone = "Pacific Standard Time",
+ TimeSlots = null
+ }
+ },
+ AdditionalData = new Dictionary<string, object>()
+ {
+ {"@odata.etag", "1a371e53-f0a6-4327-a1ee-e3c56e4b38aa"}
+ }
+};
+
+await graphClient.Users["871dbd5c-3a6a-4392-bfe1-042452793a50"].Settings.ShiftPreferences
.Request()
- .GetAsync();
+ .PutAsync(shiftPreferences);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-organizationalbrandingproperties-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/update-organizationalbrandingproperties-csharp-snippets.md
@@ -6,14 +6,13 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var organizationalBrandingLocalization = new OrganizationalBrandingLocalization
+var organizationalBranding = new OrganizationalBranding
{
- BackgroundColor = "#00000F",
- SignInPageText = "fr"
+ BackgroundColor = "#FFFF33"
};
-await graphClient.Organization["d69179bf-f4a4-41a9-a9de-249c0f2efb1d"].Branding.Localizations["fr"]
+await graphClient.Organization["d69179bf-f4a4-41a9-a9de-249c0f2efb1d"].Branding
.Request()
- .PutAsync(organizationalBrandingLocalization);
+ .PutAsync(organizationalBranding);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-page-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/update-page-csharp-snippets.md
@@ -6,27 +6,25 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var stream = new List<Stream>()
-{
- new Stream
- {
- Target = "#para-id",
- Action = "insert",
- Position = "before",
- Content = "<img src=\"image-url-or-part-name\" alt=\"image-alt-text\" />"
- },
- new Stream
- {
- Target = "#list-id",
- Action = "append",
- Content = "<li>new-page-content</li>"
- }
-};
+var stream = new System.IO.MemoryStream(Encoding.UTF8.GetBytes(@"[
+ {
+ 'target':'#para-id',
+ 'action':'insert',
+ 'position':'before',
+ 'content':'<img src=""image-url-or-part-name"" alt=""image-alt-text"" />'
+ },
+ {
+ 'target':'#list-id',
+ 'action':'append',
+ 'content':'<li>new-page-content</li>'
+ }
+]
+"));
var pages = new OnenotePage();
-pages.Content = content;
+pages.Content = stream;
-await graphClient.Me.Onenote.Pages["{id}"].Content
+await graphClient.Me.Onenote.Pages["{id}"]
.Request() .UpdateAsync(pages);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-permission-from--csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/update-permission-from--csharp-snippets.md
@@ -0,0 +1,21 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var permission = new Permission
+{
+ Roles = new List<String>()
+ {
+ "read"
+ }
+};
+
+await graphClient.Sites["{sitesId}"].Permissions["{permissionId}"]
+ .Request()
+ .UpdateAsync(permission);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/user-list-teamsapps-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/user-list-teamsapps-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var userScopeTeamsAppInstallation = await graphClient.Users["{id}"].Teamwork.InstalledApps["{id}"]
+var installedApps = await graphClient.Users["{id}"].Teamwork.InstalledApps
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/cloudpconpremisesconnection-runhealthcheck-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/cloudpconpremisesconnection-runhealthcheck-java-snippets.md
@@ -6,8 +6,8 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-graphClient.deviceManagement().virtualEndpoint().cloudPCs("{id}")
- .reprovision()
+graphClient.deviceManagement().virtualEndpoint().onPremisesConnections("{id}")
+ .runHealthChecks()
.buildRequest() .post();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-java-snippets.md
@@ -0,0 +1,25 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+AccessPackageResourceRequest accessPackageResourceRequest = new AccessPackageResourceRequest();
+accessPackageResourceRequest.catalogId = "de9315c1-272b-4905-924b-cc112ca180c7";
+AccessPackageResource accessPackageResource = new AccessPackageResource();
+accessPackageResource.displayName = "Community Outreach";
+accessPackageResource.description = "https://contoso.sharepoint.com/sites/CSR";
+accessPackageResource.resourceType = "SharePoint Online Site";
+accessPackageResource.originId = "https://contoso.sharepoint.com/sites/CSR";
+accessPackageResource.originSystem = "SharePointOnline";
+accessPackageResource.additionalDataManager().put("accessPackageResourceEnvironment@odata.bind", new JsonPrimitive("accessPackageResourceEnvironments/615f2218-678f-471f-a60a-02c2f4f80c57"));
+accessPackageResourceRequest.accessPackageResource = accessPackageResource;
+accessPackageResourceRequest.requestType = "AdminAdd";
+
+graphClient.identityGovernance().entitlementManagement().accessPackageResourceRequests()
+ .buildRequest()
+ .post(accessPackageResourceRequest);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-new-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-new-java-snippets.md
@@ -0,0 +1,27 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+AccessPackageResourceRequest accessPackageResourceRequest = new AccessPackageResourceRequest();
+accessPackageResourceRequest.catalogId = "de9315c1-272b-4905-924b-cc112ca180c7";
+AccessPackageResource accessPackageResource = new AccessPackageResource();
+accessPackageResource.displayName = "Community Outreach";
+accessPackageResource.description = "https://contoso.sharepoint.com/sites/CSR";
+accessPackageResource.resourceType = "SharePoint Online Site";
+accessPackageResource.originId = "https://contoso.sharepoint.com/sites/CSR";
+accessPackageResource.originSystem = "SharePointOnline";
+AccessPackageResourceEnvironment accessPackageResourceEnvironment = new AccessPackageResourceEnvironment();
+accessPackageResourceEnvironment.originId = "https://contoso-admin.sharepoint.com/";
+accessPackageResource.accessPackageResourceEnvironment = accessPackageResourceEnvironment;
+accessPackageResourceRequest.accessPackageResource = accessPackageResource;
+accessPackageResourceRequest.requestType = "AdminAdd";
+
+graphClient.identityGovernance().entitlementManagement().accessPackageResourceRequests()
+ .buildRequest()
+ .post(accessPackageResourceRequest);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-chatmessage-from-channel-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-chatmessage-from-channel-java-snippets.md
@@ -7,36 +7,9 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient(); ChatMessage chatMessage = new ChatMessage();
-chatMessage.subject = null;
ItemBody body = new ItemBody();
-body.contentType = BodyType.HTML;
-body.content = "<attachment id=\"74d20c7f34aa4a7fb74e2b30004247c5\"></attachment>";
+body.content = "Hello World";
chatMessage.body = body;
-LinkedList<ChatMessageAttachment> attachmentsList = new LinkedList<ChatMessageAttachment>();
-ChatMessageAttachment attachments = new ChatMessageAttachment();
-attachments.id = "74d20c7f34aa4a7fb74e2b30004247c5";
-attachments.contentType = "application/vnd.microsoft.card.adaptive";
-attachments.contentUrl = null;
-attachments.content = "{\r\n \"$schema\": \"http://adaptivecards.io/schemas/adaptive-card.json\",\r\n \"type\": \"AdaptiveCard\",\r\n \"version\": \"1.2\",\r\n \"speak\": \"The Seattle Seahawks beat the Carolina Panthers 40-7\",\r\n \"body\": [\r\n {\r\n \"type\": \"Container\",\r\n \"items\": [\r\n {\r\n \"type\": \"ColumnSet\",\r\n \"columns\": [\r\n {\r\n \"type\": \"Column\",\r\n \"width\": \"auto\",\r\n \"items\": [\r\n {\r\n \"type\": \"Image\",\r\n \"url\": \"../hostedContents/1/$value\",\r\n \"size\": \"Medium\"\r\n },\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"SHADES\",\r\n \"horizontalAlignment\": \"Center\",\r\n \"weight\": \"Bolder\"\r\n }\r\n ]\r\n },\r\n {\r\n \"type\": \"Column\",\r\n \"width\": \"stretch\",\r\n \"separator\": true,\r\n \"spacing\": \"Medium\",\r\n \"items\": [\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"2019-08-31T19:30:00Z\",\r\n \"horizontalAlignment\": \"Center\"\r\n },\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"Final\",\r\n \"spacing\": \"None\",\r\n \"horizontalAlignment\": \"Center\"\r\n },\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"40 - 7\",\r\n \"size\": \"ExtraLarge\",\r\n \"horizontalAlignment\": \"Center\"\r\n }\r\n ]\r\n },\r\n {\r\n \"type\": \"Column\",\r\n \"width\": \"auto\",\r\n \"separator\": true,\r\n \"spacing\": \"Medium\",\r\n \"items\": [\r\n {\r\n \"type\": \"Image\",\r\n \"url\": \"../hostedContents/2/$value\",\r\n \"size\": \"Medium\",\r\n \"horizontalAlignment\": \"Center\"\r\n },\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"SKINS\",\r\n \"horizontalAlignment\": \"Center\",\r\n \"weight\": \"Bolder\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}";
-attachments.name = null;
-attachments.thumbnailUrl = null;
-attachmentsList.add(attachments);
-chatMessage.attachments = attachmentsList;
-LinkedList<ChatMessageHostedContent> hostedContentsList = new LinkedList<ChatMessageHostedContent>();
-ChatMessageHostedContent hostedContents = new ChatMessageHostedContent();
-hostedContents.additionalDataManager().put("@microsoft.graph.temporaryId", new JsonPrimitive("1"));
-hostedContents.contentBytes = Base64.getDecoder().decode("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaK6UvXb169ToGNuA0Cp+oYVHlxsYGK2QVEFqnT5/eej8/+9nPtr73LwjvFZPxeK84GsMpJHueEniGFJ7785///Ox73/vell/84hcUaoSff/WrX92aOMeCz64UVo389eTJk//1ne98Z/OnP/3p22+99dZ7NlZpaORGw6Ure0Kk72GD73/vfFU0BjQ6KT5lI8UsRjiS6vNFpFibhecoKaBTh9QXv/jF2Y9+9KPZr371K1qDJkqs09jhL14cPLzxxhtudzhogoZNW/ZEe4zLYSECC4ViRRwCghODxWOFOsIO4YzOwV47lxQhdf/9928dCfUJ8GXwnDgiHbpOU4Ijfzu6+pDtD280dJqyJ0A4ud3sahE65pBhhXDKdUEyAnDIQdgnpBBOL774In1fqQ1dp6lBnXONgUU0fNaxB2KuCad09Ek94bA/53wOdgwGAtsWbxiEQwRz15DCkZPHEeY6eE0cgbL3IumhT7L94IWG0Cr2oGNm0HNUwCmX99+gmP/wOF1pC6e8Oefn2obUww8/3Gu+KRX8BVb6POZY4C8Ftg880CBi7JezrzRdx7NT5twJTeBoARP1bFtTaxNSJ0+epNs7lKGOPqco5aVjq9BAitkvIqCyrzRtAp0y9Sc+Q5x3N5VjADYNqVxzT13gFJ29N0kHZzI5Tu9pKC2yX8JSeJfveE8pxeBF0XP97dAHQpRtfypNQqrkgAq86yR55qdoMAX2C5ggH3z+qam+p0OY+2HPWyLPAbgupGoIqEBB5c/7aIqGE9gPiz3FW6bPqV/Jp3jLeJ36rQqpmgIq0KmfL3yIxeqeyCkaUGA/zLL+KTUEVdtP/YZaYpCCx3KMZSFV2iR5G7k+dJgi9EFW8wRwkLRrWUANdsVzCjhtY8VkHAucRZdQXoeFFJYZsNevBeqk5Ql+WM17wjTT1l1EWUBluW+xtyaL+zC4S1gH1VebUG6ChVQJ66D6Sl0nucVhHG3fnYGFVFXzUMs0+ZvT+Vw6q5SnM3FIYSU5e80aaWW6j8QfOp1azKQ4oHAHA/agKq36ZAcBxh5TK/xNlvK0LwQUrsVD4LPXrJHH6bEkDakdN+NbDCh8mlfNcoOmlk0s1/hp3jqpPsX68pe/vB1SNX6at44+7UsvUUjRu4Vu/4f9wqiOogIszowLOrajqABHCfF77eIHP/jB9lEUe53a6WgqPVbnlpbeznj7P+yXil9V3lU8NzXGo6ig79qpb3zjG9shdfbsWfoaY6C5qXSwNpHVuIWV91vf+of9Eu4LxR48CouH9/gbdExzLDFcdL3Ygdp64YUXtkNqzHXCHB57/9Jez4vxb5skZ7b+Yb9Y1N0NUlvskDmuNRpan/VAf/rTn7ZCCrf8Zc89JroVcRr4i5HVdw3Mf9MvgYht/WP+APZEoxE6ZA0XEPfV9VQGyxjwByE1xgnzmCbQ++u4GBrLnBp/3TsCahSLN9cJA3fMpzAB+7Cgibffftv6xEchNYZFruv0PTWWTp/q4VujWn2DMkIKd9pkTzYqGLgJJviq0OVTPsxFhT8XLlygzztGrBbSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==");
-hostedContents.contentType = "image/png";
-hostedContentsList.add(hostedContents);
-ChatMessageHostedContent hostedContents1 = new ChatMessageHostedContent();
-hostedContents1.additionalDataManager().put("@microsoft.graph.temporaryId", new JsonPrimitive("2"));
-hostedContents1.contentBytes = Base64.getDecoder().decode("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEar6WzSnk5E4cUVpKz16yRVqb7SPym08nFTIoDCncwYA+q0qp3dhBg7DG1wt9kKS/7QkDhs3gIfPaaNfK4PJakIbXrZnyLAYV386pZbtDUsonlGt/NWyfVu1hPPfXUTkjV+G7eOnq3L71EIUXvFrrzH/YLozqLCrA4My7o2M6iApwlxPvaxSuvvLJzFsVep3Y6m0qP1bmlpbcz3vkP+6XiV5V3Fc9NjfEsKui7duq5557bCakzZ87Q1xgDzU2lg7WJrMYtrLzf+vY/7JdwXyj24FFYPL3H36BjmmOJ4UPXix2orbfeemsnpMZcJ8zhsf2X9np+GP9Hk+TM9j/sF4u6u0Fqix0yx2eNhtZnPdBXX321HVK45S977jHRrYjTwF+MrL5rYP6bfglEbPsf8wewJxqN0CFr+ABxX10vZbCMAX8QUmOcMI9pAr2/jouhscyp8de9I6BGsXhznTBwx3wJE7A3C5r4/PPPrU/8EFJjWOS6Tt9LY+n0rh6+NarVNygjpHCnTfZko4KBm2CCrwpd3uXDXFT4c+7cOfq8Y8RqIc20nIvC2dN+6140iFYZ/XxUgDODKcxHBW3mW/CO3uKf9957jz7nGHl8QHsK0L8aXpVgKmnTuhUNoCYQUlXe7aCLmu920FbTj8kgoL7//nvrC9f//OlPf6LPOUZaitBew4BCOOFGBa0u7RiEFHuBUer4LkSVmkwKI8jigMKfTz75hD7nGGnyvB2cef71r3/9P1bLOay3xMLw3uEUKKRGatXge/LJJ2fvvvuuHX/+54svvqDPOUa6c2czWF+44koEZ02YNmr8jl0bCqmRwh0e4o6GcMIE+bfffmvHfvmfKYWUbt+yGsIJc7mfffbZf0e1w0Q43qnrNBnexqRC6uOPP6btY4RAxuUc4Kzpo48+suPd7I9CapqwCBiXc/DGG298+8EHH/yXXdr9zfrDv1utEEhYCeAeSj82+8n/A1GsifSVBvjAAAAAAElFTkSuQmCC");
-hostedContents1.contentType = "image/png";
-hostedContentsList.add(hostedContents1);
-ChatMessageHostedContentCollectionResponse chatMessageHostedContentCollectionResponse = new ChatMessageHostedContentCollectionResponse();
-chatMessageHostedContentCollectionResponse.value = hostedContentsList;
-ChatMessageHostedContentCollectionPage chatMessageHostedContentCollectionPage = new ChatMessageHostedContentCollectionPage(chatMessageHostedContentCollectionResponse, null);
-chatMessage.hostedContents = chatMessageHostedContentCollectionPage;
graphClient.teams("{id}").channels("{id}").messages() .buildRequest()
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-directoryobject-from-device-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-directoryobject-from-device-java-snippets.md
@@ -9,7 +9,7 @@ IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
DirectoryObject directoryObject = new DirectoryObject(); directoryObject.id = "{id}";
-graphClient.devices("{id}").registeredOwners().references()
+graphClient.devices("{id}").registeredUsers().references()
.buildRequest() .post(directoryObject);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-educationclass-from-educationschool-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-educationclass-from-educationschool-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-graphClient.education().schools("10001").users("13006")
+graphClient.education().classes("{id}").teachers("14012")
.buildRequest() .delete();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-identityuserflowattributeassignment-from--java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-identityuserflowattributeassignment-from--java-snippets.md
@@ -17,7 +17,7 @@ IdentityUserFlowAttribute userAttribute = new IdentityUserFlowAttribute();
userAttribute.id = "extension_guid_shoeSize"; identityUserFlowAttributeAssignment.userAttribute = userAttribute;
-graphClient.identity().b2cUserFlows("B2C_1_Consumer").userAttributeAssignments()
+graphClient.identity().b2xUserFlows("B2X_1_Partner").userAttributeAssignments()
.buildRequest() .post(identityUserFlowAttributeAssignment);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-permission-from--java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-permission-from--java-snippets.md
@@ -0,0 +1,26 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+Permission permission = new Permission();
+LinkedList<String> rolesList = new LinkedList<String>();
+rolesList.add("write");
+permission.roles = rolesList;
+LinkedList<IdentitySet> grantedToIdentitiesList = new LinkedList<IdentitySet>();
+IdentitySet grantedToIdentities = new IdentitySet();
+Identity application = new Identity();
+application.id = "89ea5c94-7736-4e25-95ad-3fa95f62b66e";
+application.displayName = "Foo App";
+grantedToIdentities.application = application;
+grantedToIdentitiesList.add(grantedToIdentities);
+permission.grantedToIdentities = grantedToIdentitiesList;
+
+graphClient.sites("{sitesId}").permissions()
+ .buildRequest()
+ .post(permission);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/delete-b2xuserflows-identityproviders-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/delete-b2xuserflows-identityproviders-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-graphClient.identity().b2xUserFlows("B2X_1_PartnerSignUp").identityProviders("Facebook-OAUTH").reference()
+graphClient.identity().b2cUserFlows("B2C_1_CustomerSignUp").identityProviders("Facebook-OAUTH").reference()
.buildRequest() .delete();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/delete-educationassignment-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/delete-educationassignment-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-graphClient.education().classes("11014").assignments("19002")
+graphClient.education().classes("11014").assignmentCategories("19002")
.buildRequest() .delete();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/delete-permission-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/delete-permission-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-graphClient.me().drive().root().items().{item-id}().permissions().{perm-id}()
+graphClient.sites("{sitesId}").permissions("{permissionId}")
.buildRequest() .delete();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-a-count-endswith-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-a-count-endswith-java-snippets.md
@@ -11,8 +11,8 @@ requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
IUserCollectionPage users = graphClient.users() .buildRequest( requestOptions )
- .filter("endswith(mail,'a@contoso.com'),")
- .orderBy("userPrincipalName ")
+ .filter("endswith(mail,'a@contoso.com')")
+ .orderBy("userPrincipalName")
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-accesspackageresourceenvironment-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-accesspackageresourceenvironment-java-snippets.md
@@ -0,0 +1,13 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+AccessPackageResourceEnvironment accessPackageResourceEnvironment = graphClient.identityGovernance().entitlementManagement().accessPackageResourceEnvironments("{accessPackageResourceEnvironmentId}")
+ .buildRequest()
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-accesspackageresourceroles-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-accesspackageresourceroles-java-snippets.md
@@ -8,7 +8,7 @@ IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
IAccessPackageResourceRoleCollectionPage accessPackageResourceRoles = graphClient.identityGovernance().entitlementManagement().accessPackageCatalogs("15d889df-3eb8-4e9b-bfb4-b1908849aec4").accessPackageResourceRoles() .buildRequest()
- .filter("(originSystem eq 'AadGroup' and accessPackageResource/id eq 'a35bef72-a8aa-4ca3-af30-f6b2ece7208f'),")
+ .filter("(originSystem eq 'AadGroup' and accessPackageResource/id eq 'a35bef72-a8aa-4ca3-af30-f6b2ece7208f')")
.expand("accessPackageResource/id%20eq%20'a35bef72-a8aa-4ca3-af30-f6b2ece7208f')") .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-accessreviews-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-accessreviews-java-snippets.md
@@ -8,7 +8,7 @@ IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
IAccessReviewCollectionPage accessReviews = graphClient.accessReviews() .buildRequest()
- .filter("businessFlowTemplateId eq '6e4f3d20-c5c3-407f-9695-8460952bcc68',")
+ .filter("businessFlowTemplateId eq '6e4f3d20-c5c3-407f-9695-8460952bcc68'")
.skip(0) .top(100) .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-bitlockerrecoverykey-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-bitlockerrecoverykey-java-snippets.md
@@ -6,13 +6,9 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-LinkedList<Option> requestOptions = new LinkedList<Option>();
-requestOptions.add(new HeaderOption("ocp-client-name", "\"My Friendly Client\""));
-requestOptions.add(new HeaderOption("ocp-client-version", "\"1.2\""));
-
-IBitlockerRecoveryKeyCollectionPage recoveryKeys = graphClient.bitlocker().recoveryKeys()
- .buildRequest( requestOptions )
- .filter("deviceId eq '1ab40ab2-32a8-4b00-b6b5-ba724e407de9'")
+BitlockerRecoveryKey bitlockerRecoveryKey = graphClient.bitlocker().recoveryKeys("b465e4e8-e4e8-b465-e8e4-65b4e8e465b4")
+ .buildRequest()
+ .select("key")
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-buckets-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-buckets-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IPlannerBucketCollectionPage buckets = graphClient.planner().plans("2txjA-BMZEq-bKi6Wfj5aGQAB1OJ").buckets()
+IPlannerBucketCollectionPage buckets = graphClient.planner().buckets()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-classes-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-classes-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IEducationClassCollectionPage classes = graphClient.education().classes()
+IEducationClassCollectionWithReferencesPage classes = graphClient.education().schools("10002").classes()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-cloudpconpremisesconnection-withdetails-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-cloudpconpremisesconnection-withdetails-java-snippets.md
@@ -8,7 +8,7 @@ IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
CloudPcOnPremisesConnection cloudPcOnPremisesConnection = graphClient.deviceManagement().virtualEndpoint().onPremisesConnections("{id}") .buildRequest()
- .select("id,displayName,subscriptionId,subscriptionName,adDomainName,adDomainUsername,organizationalUnit,virtualNetworkId,subnetId,healthCheckStatus,healthCheckStatusDetails,inUse")
+ .select("id,displayName,healthCheckStatus,healthCheckStatusDetails,inUse")
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-connectors-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-connectors-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IConnectorCollectionPage connectors = graphClient.onPremisesPublishingProfiles("applicationProxy").connectors()
+IPrintConnectorCollectionPage connectors = graphClient.print().connectors()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-contract-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-contract-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-Contract contract = graphClient.contracts("{id}")
+IContractCollectionPage contracts = graphClient.contracts()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-custodian-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-custodian-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-ICustodianCollectionPage custodians = graphClient.compliance().ediscovery().cases("2192ca408ea2410eba3bec8ae873be6b").custodians()
+Custodian custodian = graphClient.compliance().ediscovery().cases("2192ca408ea2410eba3bec8ae873be6b").custodians("45454331323337443946343043464239")
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-educationuser-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-educationuser-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-EducationUser educationUser = graphClient.education().users("13012")
+User user = graphClient.education().me().user()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-emailauthenticationmethod-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-emailauthenticationmethod-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-EmailAuthenticationMethod emailAuthenticationMethod = graphClient.me().authentication().emailMethods("3ddfcfc8-9383-446f-83cc-3ab9be4be18f")
+IEmailAuthenticationMethodCollectionPage emailMethods = graphClient.me().authentication().emailMethods()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-endpoints-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-endpoints-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-ReportRoot reportRoot = graphClient.print().reports("dailyPrintUsageSummariesByPrinter")
+IEndpointCollectionPage endpoints = graphClient.groups("{id}").endpoints()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-group-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-group-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IGroupCollectionPage groups = graphClient.termStore().groups()
+Group group = graphClient.groups("45b7d2e7-b882-4a80-ba97-10b7a63b8fa4")
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-grouplifecyclepolicy-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-grouplifecyclepolicy-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IGroupLifecyclePolicyCollectionPage groupLifecyclePolicies = graphClient.groupLifecyclePolicies()
+GroupLifecyclePolicy groupLifecyclePolicy = graphClient.groupLifecyclePolicies("{id}")
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-identityprovider-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-identityprovider-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IdentityProvider identityProvider = graphClient.identityProviders("{id}")
+IIdentityProviderCollectionPage identityProviders = graphClient.identityProviders()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-itemphone-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-itemphone-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IItemPhoneCollectionPage phones = graphClient.me().profile().phones()
+ItemPhone itemPhone = graphClient.me().profile().phones("{id}")
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-jobs-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-jobs-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IPrintJobCollectionPage jobs = graphClient.print().printers("{id}").jobs()
+ISynchronizationJobCollectionPage jobs = graphClient.servicePrincipals("{id}").synchronization().jobs()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-messages-with-mentions-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-messages-with-mentions-java-snippets.md
@@ -8,7 +8,7 @@ IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
IMessageCollectionPage messages = graphClient.me().messages() .buildRequest()
- .filter("MentionsPreview/IsMentioned eq true,")
+ .filter("MentionsPreview/IsMentioned eq true")
.select("subject,sender,receivedDateTime,mentionsPreview") .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-names-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-names-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IWorkbookNamedItemCollectionPage names = graphClient.me().drive().items("{id}").workbook().names()
+IPersonNameCollectionPage names = graphClient.me().profile().names()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-opentypeextension-3-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-opentypeextension-3-java-snippets.md
@@ -8,7 +8,6 @@ IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
Message message = graphClient.me().messages("AAMkAGE1M2IyNGNmLTI5MTktNDUyZi1iOTVl===") .buildRequest()
- .filter("id eq 'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')")
.expand("extensions($filter=id%20eq%20'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')") .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-passwordlessmicrosoftauthenticatorauthenticationmethod-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-passwordlessmicrosoftauthenticatorauthenticationmethod-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-PasswordlessMicrosoftAuthenticatorAuthenticationMethod passwordlessMicrosoftAuthenticatorAuthenticationMethod = graphClient.me().authentication().passwordlessMicrosoftAuthenticatorMethods("R18B3t8Ogh9XIOGmPt81d6p_KXJs1YTxfGgGqeVFJSM1")
+IPasswordlessMicrosoftAuthenticatorAuthenticationMethodCollectionPage passwordlessMicrosoftAuthenticatorMethods = graphClient.me().authentication().passwordlessMicrosoftAuthenticatorMethods()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-permission-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-permission-java-snippets.md
@@ -0,0 +1,13 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+Permission permission = graphClient.sites("{sitesId}").permissions("{permissionId}")
+ .buildRequest()
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-plans-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-plans-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IPlannerPlanCollectionPage plans = graphClient.planner().plans()
+IPlannerPlanCollectionPage plans = graphClient.me().planner().plans()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-privilegedapproval-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-privilegedapproval-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-PrivilegedApproval privilegedApproval = graphClient.privilegedApproval("{id}")
+IPrivilegedApprovalCollectionPage privilegedApproval = graphClient.privilegedApproval()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-replies-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-replies-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IWorkbookCommentReplyCollectionPage replies = graphClient.drive().items("{id}").workbook().comments("{id}").replies()
+IChatMessageCollectionPage replies = graphClient.chats("{id}").messages("{id}").replies()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-roleassignments-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-roleassignments-java-snippets.md
@@ -8,7 +8,6 @@ IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
IUnifiedRoleAssignmentCollectionPage roleAssignments = graphClient.roleManagement().directory().roleAssignments() .buildRequest()
- .filter(" principalId eq 'f1847572-48aa-47aa-96a3-2ec61904f41f'")
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-settings-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-settings-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-Settings settings = graphClient.customRequest("/me/analytics/settings", Settings.class)
+IDirectorySettingCollectionPage settings = graphClient.settings()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-signin-last-time-filter-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-signin-last-time-filter-java-snippets.md
@@ -8,7 +8,7 @@ IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
IUserCollectionPage users = graphClient.users() .buildRequest()
- .filter("startswith(displayName,'Eric'),")
+ .filter("startswith(displayName,'Eric')")
.select("displayName,signInActivity") .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-singlevaluelegacyextendedproperty-1-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-singlevaluelegacyextendedproperty-1-java-snippets.md
@@ -8,7 +8,6 @@ IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
Message message = graphClient.me().messages("AAMkAGE1M2_bs88AACHsLqWAAA=") .buildRequest()
- .filter("id eq 'String {66f5a359-4659-4830-9070-00047ec6ac6e} Name Color')")
.expand("singleValueExtendedProperties($filter=id%20eq%20'String%20%7B66f5a359-4659-4830-9070-00047ec6ac6e%7D%20Name%20Color')") .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-swapshiftschangerequest-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-swapshiftschangerequest-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-SwapShiftsChangeRequest swapShiftsChangeRequest = graphClient.teams("{teamId}").schedule().swapShiftsChangeRequests("{swapShiftsChangeRequestId}")
+ISwapShiftsChangeRequestCollectionPage swapShiftsChangeRequests = graphClient.teams("{teamId}").schedule().swapShiftsChangeRequests()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-synchronizationschema-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-synchronizationschema-java-snippets.md
@@ -6,8 +6,11 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-SynchronizationSchema synchronizationSchema = graphClient.servicePrincipals("{id}").synchronization().jobs("{jobId}").schema()
- .buildRequest()
+LinkedList<Option> requestOptions = new LinkedList<Option>();
+requestOptions.add(new HeaderOption("Authorization", "Bearer {Token}"));
+
+SynchronizationSchema synchronizationSchema = graphClient.servicePrincipals("{servicePrincipalId}").synchronization().jobs("{jobId}").schema()
+ .buildRequest( requestOptions )
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-term-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-term-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-Term term = graphClient.termStore().groups("{groupId}").sets("{setId}").terms("{termId}")
+ITermCollectionPage children = graphClient.termStore().sets("{setId}").children()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-todotask-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-todotask-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-TodoTask todoTask = graphClient.me().todo().lists("AAMkADA1MTHgwAAA=").tasks("721a35e2-35e2-721a-e235-1a72e2351a72")
+ITodoTaskCollectionPage tasks = graphClient.me().todo().lists("35e2-35e2-721a-e235-1a72e2351a7").tasks()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-todotasklist-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-todotasklist-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-ITodoTaskListCollectionPage lists = graphClient.me().todo().lists()
+TodoTaskList todoTaskList = graphClient.me().todo().lists("AAMkADIyAAAAABrJAAA=")
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-unifiedgroupsource-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-unifiedgroupsource-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IUnifiedGroupSourceCollectionPage unifiedGroupSources = graphClient.compliance().ediscovery().cases("4c8f8f70-7785-4bd4-b296-c98376a2c5e1").custodians("2192ca408ea2410eba3bec8ae873be6b").unifiedGroupSources()
+UnifiedGroupSource unifiedGroupSource = graphClient.compliance().ediscovery().cases("4c8f8f70-7785-4bd4-b296-c98376a2c5e1").custodians("2192ca408ea2410eba3bec8ae873be6b").unifiedGroupSources("33434233-3030-3739-3043-393039324633")
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-unifiedroleassignment-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-unifiedroleassignment-java-snippets.md
@@ -6,9 +6,9 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-UnifiedRoleAssignment unifiedRoleAssignment = graphClient.roleManagement().directory().roleAssignments("lAPpYvVpN0KRkAEhdxReEJC2sEqbR_9Hr48lds9SGHI-1")
+UnifiedRoleAssignmentMultiple unifiedRoleAssignmentMultiple = graphClient.roleManagement().deviceManagement().roleAssignments("lAPpYvVpN0KRkAEhdxReEJC2sEqbR_9Hr48lds9SGHI-1")
.buildRequest()
- .expand("directoryScope")
+ .expand("directoryScopes")
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-unifiedroleassignmentmultiple-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-unifiedroleassignmentmultiple-java-snippets.md
@@ -8,7 +8,6 @@ IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
IUnifiedRoleAssignmentMultipleCollectionPage roleAssignments = graphClient.roleManagement().deviceManagement().roleAssignments() .buildRequest()
- .filter(" principalIds/any(x:x eq '564ae70c-73d9-476b-820b-fb61eb7384b9')")
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-userflowlanguagepage-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-userflowlanguagepage-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-InputStream stream = graphClient.identity().b2cUserFlows("B2C_1_Customer").languages("en").defaultPages("idpselections").content()
+IUserFlowLanguagePageCollectionPage defaultPages = graphClient.identity().b2cUserFlows("B2C_1_Customer").languages("en").defaultPages()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-usersource-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-usersource-java-snippets.md
@@ -0,0 +1,13 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+IUserSourceCollectionPage userSources = graphClient.compliance().ediscovery().cases("4c8f8f70-7785-4bd4-b296-c98376a2c5e1").custodians("2192ca408ea2410eba3bec8ae873be6b").userSources()
+ .buildRequest()
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/group-create-approleassignment-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/group-create-approleassignment-java-snippets.md
@@ -11,7 +11,7 @@ appRoleAssignment.principalId = UUID.fromString("principalId-value");
appRoleAssignment.resourceId = UUID.fromString("resourceId-value"); appRoleAssignment.appRoleId = UUID.fromString("appRoleId-value");
-graphClient.servicePrincipals("{id}").appRoleAssignments()
+graphClient.groups("{id}").appRoleAssignments()
.buildRequest() .post(appRoleAssignment);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/list-accesspackageresourceenvironment-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/list-accesspackageresourceenvironment-java-snippets.md
@@ -0,0 +1,14 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+IAccessPackageResourceEnvironmentCollectionPage accessPackageResourceEnvironments = graphClient.identityGovernance().entitlementManagement().accessPackageResourceEnvironments()
+ .buildRequest()
+ .filter("originSystem eq 'SharePointOnline'")
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/list-permission-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/list-permission-java-snippets.md
@@ -0,0 +1,13 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+IPermissionCollectionPage permissions = graphClient.sites("{sitesId}").permissions()
+ .buildRequest()
+ .get();
+
+```
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
@@ -8,7 +8,7 @@ IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
ITeamsAppCollectionPage teamsApps = graphClient.appCatalogs().teamsApps() .buildRequest()
- .filter("id eq '876df28f-2e78-423b-94a5-44181bd0e225',")
+ .filter("id eq '876df28f-2e78-423b-94a5-44181bd0e225'")
.expand("appDefinitions") .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/list-usageright-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/list-usageright-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IUsageRightCollectionPage usageRights = graphClient.users("{userId}").usageRights()
+IUsageRightCollectionPage usageRights = graphClient.devices("{objectId}").usageRights()
.buildRequest() .filter("state in ('active', 'suspended') and serviceIdentifier in ('ABCD')") .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/sendreminder-accessreview-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/sendreminder-accessreview-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-graphClient.accessReviews("2975E9B5-44CE-4E71-93D3-30F03B5AA992")
+graphClient.identityGovernance().accessReviews().definitions("04e5c3b2-9db2-40d3-a204-128f4956ae8e").instances("70463350-742e-4909-bfa5-bc23447bd002")
.sendReminder() .buildRequest() .post();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/shift-get-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/shift-get-java-snippets.md
@@ -6,8 +6,32 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-Content shiftPreferences = graphClient.users("871dbd5c-3a6a-4392-bfe1-042452793a50").shiftPreferences()
+ShiftPreferences shiftPreferences = new ShiftPreferences();
+shiftPreferences.id = "SHPR_eeab4fb1-20e5-48ca-ad9b-98119d94bee7";
+shiftPreferences.additionalDataManager().put("@odata.etag", new JsonPrimitive("1a371e53-f0a6-4327-a1ee-e3c56e4b38aa"));
+LinkedList<ShiftAvailability> availabilityList = new LinkedList<ShiftAvailability>();
+ShiftAvailability availability = new ShiftAvailability();
+PatternedRecurrence recurrence = new PatternedRecurrence();
+RecurrencePattern pattern = new RecurrencePattern();
+pattern.type = RecurrencePatternType.WEEKLY;
+LinkedList<DayOfWeek> daysOfWeekList = new LinkedList<DayOfWeek>();
+daysOfWeekList.add(DayOfWeek.MONDAY);
+daysOfWeekList.add(DayOfWeek.WEDNESDAY);
+daysOfWeekList.add(DayOfWeek.FRIDAY);
+pattern.daysOfWeek = daysOfWeekList;
+pattern.interval = 1;
+recurrence.pattern = pattern;
+RecurrenceRange range = new RecurrenceRange();
+range.type = RecurrenceRangeType.NO_END;
+recurrence.range = range;
+availability.recurrence = recurrence;
+availability.timeZone = "Pacific Standard Time";
+availability.timeSlots = null;
+availabilityList.add(availability);
+shiftPreferences.availability = availabilityList;
+
+graphClient.users("871dbd5c-3a6a-4392-bfe1-042452793a50").settings().shiftPreferences()
.buildRequest()
- .get();
+ .put(shiftPreferences);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-organizationalbrandingproperties-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/update-organizationalbrandingproperties-java-snippets.md
@@ -6,12 +6,11 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-OrganizationalBrandingLocalization organizationalBrandingLocalization = new OrganizationalBrandingLocalization();
-organizationalBrandingLocalization.backgroundColor = "#00000F";
-organizationalBrandingLocalization.signInPageText = "fr";
+OrganizationalBranding organizationalBranding = new OrganizationalBranding();
+organizationalBranding.backgroundColor = "#FFFF33";
-graphClient.organization("d69179bf-f4a4-41a9-a9de-249c0f2efb1d").branding().localizations("fr")
+graphClient.organization("d69179bf-f4a4-41a9-a9de-249c0f2efb1d").branding()
.buildRequest()
- .put(organizationalBrandingLocalization);
+ .put(organizationalBranding);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-permission-from--java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/update-permission-from--java-snippets.md
@@ -0,0 +1,18 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+Permission permission = new Permission();
+LinkedList<String> rolesList = new LinkedList<String>();
+rolesList.add("read");
+permission.roles = rolesList;
+
+graphClient.sites("{sitesId}").permissions("{permissionId}")
+ .buildRequest()
+ .patch(permission);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/user-list-teamsapps-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/user-list-teamsapps-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-UserScopeTeamsAppInstallation userScopeTeamsAppInstallation = graphClient.users("{id}").teamwork().installedApps("{id}")
+IUserScopeTeamsAppInstallationCollectionPage installedApps = graphClient.users("{id}").teamwork().installedApps()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/cloudpconpremisesconnection-runhealthcheck-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/cloudpconpremisesconnection-runhealthcheck-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/deviceManagement/virtualEndpoint/cloudPCs/{id}/reprovision')
+let res = await client.api('/deviceManagement/virtualEndpoint/onPremisesConnections/{id}/runHealthChecks')
.version('beta') .post();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-javascript-snippets.md
@@ -0,0 +1,30 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const accessPackageResourceRequest = {
+ catalogId: "de9315c1-272b-4905-924b-cc112ca180c7",
+ accessPackageResource: {
+ displayName: "Community Outreach",
+ description: "https://contoso.sharepoint.com/sites/CSR",
+ resourceType: "SharePoint Online Site",
+ originId: "https://contoso.sharepoint.com/sites/CSR",
+ originSystem: "SharePointOnline",
+ accessPackageResourceEnvironment@odata.bind: "accessPackageResourceEnvironments/615f2218-678f-471f-a60a-02c2f4f80c57"
+ },
+ requestType: "AdminAdd"
+};
+
+let res = await client.api('/identityGovernance/entitlementManagement/accessPackageResourceRequests')
+ .version('beta')
+ .post(accessPackageResourceRequest);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-new-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-new-javascript-snippets.md
@@ -0,0 +1,32 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const accessPackageResourceRequest = {
+ catalogId: "de9315c1-272b-4905-924b-cc112ca180c7",
+ accessPackageResource: {
+ displayName: "Community Outreach",
+ description: "https://contoso.sharepoint.com/sites/CSR",
+ resourceType: "SharePoint Online Site",
+ originId: "https://contoso.sharepoint.com/sites/CSR",
+ originSystem: "SharePointOnline",
+ accessPackageResourceEnvironment: {
+ originId: "https://contoso-admin.sharepoint.com/"
+ }
+ },
+ requestType: "AdminAdd"
+};
+
+let res = await client.api('/identityGovernance/entitlementManagement/accessPackageResourceRequests')
+ .version('beta')
+ .post(accessPackageResourceRequest);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-chatmessage-from-channel-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-chatmessage-from-channel-javascript-snippets.md
@@ -11,28 +11,9 @@ const options = {
const client = Client.init(options); const chatMessage = {
- subject: null,
- body: {
- contentType: "html",
- content: "<attachment id=\"74d20c7f34aa4a7fb74e2b30004247c5\"></attachment>"
- },
- attachments: [{
- id: "74d20c7f34aa4a7fb74e2b30004247c5",
- contentType: "application/vnd.microsoft.card.adaptive",
- contentUrl: null,
- content: {\r\n \"$schema\: \http://adaptivecards.io/schemas/adaptive-card.json\",\r\n \"type\: \AdaptiveCard\",\r\n \"version\: \1.2\",\r\n \"speak\: \The Seattle Seahawks beat the Carolina Panthers 40-7\",\r\n \"body\: [\r\n {\r\n \type\: \Container\",\r\n \"items\: [\r\n {\r\n \type\: \ColumnSet\",\r\n \"columns\: [\r\n {\r\n \type\: \Column\",\r\n \"width\: \auto\",\r\n \"items\: [\r\n {\r\n \type\: \Image\",\r\n \"url\: \../hostedContents/1/$value\",\r\n \"size\: \Medium\"\r\n },\r\n {\r\n \"type\: \TextBlock\",\r\n \"text\: \SHADES\",\r\n \"horizontalAlignment\: \Center\",\r\n \"weight\: \Bolder\"\r\n }\r\n ]\r\n },\r\n {\r\n \"type\: \Column\",\r\n \"width\: \stretch\",\r\n \"separator\: true,\r\n \spacing\: \Medium\",\r\n \"items\: [\r\n {\r\n \type\: \TextBlock\",\r\n \"text\: \2019-08-31T19:30:00Z\",\r\n \"horizontalAlignment\: \Center\"\r\n },\r\n {\r\n \"type\: \TextBlock\",\r\n \"text\: \Final\",\r\n \"spacing\: \None\",\r\n \"horizontalAlignment\: \Center\"\r\n },\r\n {\r\n \"type\: \TextBlock\",\r\n \"text\: \40 - 7\",\r\n \"size\: \ExtraLarge\",\r\n \"horizontalAlignment\: \Center\"\r\n }\r\n ]\r\n },\r\n {\r\n \"type\: \Column\",\r\n \"width\: \auto\",\r\n \"separator\: true,\r\n \spacing\: \Medium\",\r\n \"items\: [\r\n {\r\n \type\: \Image\",\r\n \"url\: \../hostedContents/2/$value\",\r\n \"size\: \Medium\",\r\n \"horizontalAlignment\: \Center\"\r\n },\r\n {\r\n \"type\: \TextBlock\",\r\n \"text\: \SKINS\",\r\n \"horizontalAlignment\: \Center\",\r\n \"weight\: \"Bolder\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}",
- name: null,
- thumbnailUrl: null
- }],
- hostedContents: [{
- @microsoft.graph.temporaryId: "1",
- contentBytes: "iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaK6UvXb169ToGNuA0Cp+oYVHlxsYGK2QVEFqnT5/eej8/+9nPtr73LwjvFZPxeK84GsMpJHueEniGFJ7785///Ox73/vell/84hcUaoSff/WrX92aOMeCz64UVo389eTJk//1ne98Z/OnP/3p22+99dZ7NlZpaORGw6Ure0Kk72GD73/vfFU0BjQ6KT5lI8UsRjiS6vNFpFibhecoKaBTh9QXv/jF2Y9+9KPZr371K1qDJkqs09jhL14cPLzxxhtudzhogoZNW/ZEe4zLYSECC4ViRRwCghODxWOFOsIO4YzOwV47lxQhdf/9928dCfUJ8GXwnDgiHbpOU4Ijfzu6+pDtD280dJqyJ0A4ud3sahE65pBhhXDKdUEyAnDIQdgnpBBOL774In1fqQ1dp6lBnXONgUU0fNaxB2KuCad09Ek94bA/53wOdgwGAtsWbxiEQwRz15DCkZPHEeY6eE0cgbL3IumhT7L94IWG0Cr2oGNm0HNUwCmX99+gmP/wOF1pC6e8Oefn2obUww8/3Gu+KRX8BVb6POZY4C8Ftg880CBi7JezrzRdx7NT5twJTeBoARP1bFtTaxNSJ0+epNs7lKGOPqco5aVjq9BAitkvIqCyrzRtAp0y9Sc+Q5x3N5VjADYNqVxzT13gFJ29N0kHZzI5Tu9pKC2yX8JSeJfveE8pxeBF0XP97dAHQpRtfypNQqrkgAq86yR55qdoMAX2C5ggH3z+qam+p0OY+2HPWyLPAbgupGoIqEBB5c/7aIqGE9gPiz3FW6bPqV/Jp3jLeJ36rQqpmgIq0KmfL3yIxeqeyCkaUGA/zLL+KTUEVdtP/YZaYpCCx3KMZSFV2iR5G7k+dJgi9EFW8wRwkLRrWUANdsVzCjhtY8VkHAucRZdQXoeFFJYZsNevBeqk5Ql+WM17wjTT1l1EWUBluW+xtyaL+zC4S1gH1VebUG6ChVQJ66D6Sl0nucVhHG3fnYGFVFXzUMs0+ZvT+Vw6q5SnM3FIYSU5e80aaWW6j8QfOp1azKQ4oHAHA/agKq36ZAcBxh5TK/xNlvK0LwQUrsVD4LPXrJHH6bEkDakdN+NbDCh8mlfNcoOmlk0s1/hp3jqpPsX68pe/vB1SNX6at44+7UsvUUjRu4Vu/4f9wqiOogIszowLOrajqABHCfF77eIHP/jB9lEUe53a6WgqPVbnlpbeznj7P+yXil9V3lU8NzXGo6ig79qpb3zjG9shdfbsWfoaY6C5qXSwNpHVuIWV91vf+of9Eu4LxR48CouH9/gbdExzLDFcdL3Ygdp64YUXtkNqzHXCHB57/9Jez4vxb5skZ7b+Yb9Y1N0NUlvskDmuNRpan/VAf/rTn7ZCCrf8Zc89JroVcRr4i5HVdw3Mf9MvgYht/WP+APZEoxE6ZA0XEPfV9VQGyxjwByE1xgnzmCbQ++u4GBrLnBp/3TsCahSLN9cJA3fMpzAB+7Cgibffftv6xEchNYZFruv0PTWWTp/q4VujWn2DMkIKd9pkTzYqGLgJJviq0OVTPsxFhT8XLlygzztGrBbSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==",
- contentType: "image/png"
- }, {
- @microsoft.graph.temporaryId: "2",
- contentBytes: "iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEar6WzSnk5E4cUVpKz16yRVqb7SPym08nFTIoDCncwYA+q0qp3dhBg7DG1wt9kKS/7QkDhs3gIfPaaNfK4PJakIbXrZnyLAYV386pZbtDUsonlGt/NWyfVu1hPPfXUTkjV+G7eOnq3L71EIUXvFrrzH/YLozqLCrA4My7o2M6iApwlxPvaxSuvvLJzFsVep3Y6m0qP1bmlpbcz3vkP+6XiV5V3Fc9NjfEsKui7duq5557bCakzZ87Q1xgDzU2lg7WJrMYtrLzf+vY/7JdwXyj24FFYPL3H36BjmmOJ4UPXix2orbfeemsnpMZcJ8zhsf2X9np+GP9Hk+TM9j/sF4u6u0Fqix0yx2eNhtZnPdBXX321HVK45S977jHRrYjTwF+MrL5rYP6bfglEbPsf8wewJxqN0CFr+ABxX10vZbCMAX8QUmOcMI9pAr2/jouhscyp8de9I6BGsXhznTBwx3wJE7A3C5r4/PPPrU/8EFJjWOS6Tt9LY+n0rh6+NarVNygjpHCnTfZko4KBm2CCrwpd3uXDXFT4c+7cOfq8Y8RqIc20nIvC2dN+6140iFYZ/XxUgDODKcxHBW3mW/CO3uKf9957jz7nGHl8QHsK0L8aXpVgKmnTuhUNoCYQUlXe7aCLmu920FbTj8kgoL7//nvrC9f//OlPf6LPOUZaitBew4BCOOFGBa0u7RiEFHuBUer4LkSVmkwKI8jigMKfTz75hD7nGGnyvB2cef71r3/9P1bLOay3xMLw3uEUKKRGatXge/LJJ2fvvvuuHX/+54svvqDPOUa6c2czWF+44koEZ02YNmr8jl0bCqmRwh0e4o6GcMIE+bfffmvHfvmfKYWUbt+yGsIJc7mfffbZf0e1w0Q43qnrNBnexqRC6uOPP6btY4RAxuUc4Kzpo48+suPd7I9CapqwCBiXc/DGG298+8EHH/yXXdr9zfrDv1utEEhYCeAeSj82+8n/A1GsifSVBvjAAAAAAElFTkSuQmCC",
- contentType: "image/png"
- }]
+ body: {
+ content: "Hello World"
+ }
}; let res = await client.api('/teams/{id}/channels/{id}/messages')
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-directoryobject-from-device-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-directoryobject-from-device-javascript-snippets.md
@@ -14,7 +14,7 @@ const directoryObject = {
@odata.id: "https://graph.microsoft.com/beta/directoryObjects/{id}" };
-let res = await client.api('/devices/{id}/registeredOwners/$ref')
+let res = await client.api('/devices/{id}/registeredUsers/$ref')
.version('beta') .post(directoryObject);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-educationclass-from-educationschool-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-educationclass-from-educationschool-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/education/schools/10001/users/13006')
+let res = await client.api('/education/classes/{id}/teachers/14012')
.version('beta') .delete();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-identityuserflowattributeassignment-from--javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-identityuserflowattributeassignment-from--javascript-snippets.md
@@ -21,7 +21,7 @@ const identityUserFlowAttributeAssignment = {
} };
-let res = await client.api('/identity/b2cUserFlows/B2C_1_Consumer/userAttributeAssignments')
+let res = await client.api('/identity/b2xUserFlows/B2X_1_Partner/userAttributeAssignments')
.version('beta') .post(identityUserFlowAttributeAssignment);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-listitem-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-listitem-javascript-snippets.md
@@ -10,16 +10,13 @@ const options = {
const client = Client.init(options);
-const listItem = {
- fields: {
- Title: "Widget",
- Color: "Purple",
- Weight: 32
- }
+const fieldValueSet = {
+ Color: "Fuchsia",
+ Quantity: 934
};
-let res = await client.api('/sites/{site-id}/lists/{list-id}/items')
+let res = await client.api('/sites/{site-id}/lists/{list-id}/items/{item-id}/fields')
.version('beta')
- .post(listItem);
+ .update(fieldValueSet);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-permission-from--javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-permission-from--javascript-snippets.md
@@ -0,0 +1,27 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const permission = {
+ roles: ["write"],
+ grantedToIdentities: [{
+ application: {
+ id: "89ea5c94-7736-4e25-95ad-3fa95f62b66e",
+ displayName: "Foo App"
+ }
+ }]
+};
+
+let res = await client.api('/sites/{sitesId}/permissions')
+ .version('beta')
+ .post(permission);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/delete-b2xuserflows-identityproviders-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/delete-b2xuserflows-identityproviders-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/identity/b2xUserFlows/B2X_1_PartnerSignUp/identityProviders/Facebook-OAUTH/$ref')
+let res = await client.api('/identity/b2cUserFlows/B2C_1_CustomerSignUp/identityProviders/Facebook-OAUTH/$ref')
.version('beta') .delete();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/delete-educationassignment-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/delete-educationassignment-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/education/classes/11014/assignments/19002')
+let res = await client.api('/education/classes/11014/assignmentCategories/19002')
.version('beta') .delete();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/delete-permission-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/delete-permission-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/me/drive/root/items/{item-id}/permissions/{perm-id}')
+let res = await client.api('/sites/{sitesId}/permissions/{permissionId}')
.version('beta') .delete();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-a-count-endswith-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-a-count-endswith-javascript-snippets.md
@@ -13,8 +13,8 @@ const client = Client.init(options);
let res = await client.api('/users') .version('beta') .header('ConsistencyLevel','eventual')
- .filter('endswith(mail,'a@contoso.com'),')
- .orderby('userPrincipalName ')
+ .filter('endswith(mail,'a@contoso.com')')
+ .orderby('userPrincipalName')
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-accesspackageresourceenvironment-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-accesspackageresourceenvironment-javascript-snippets.md
@@ -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('/identityGovernance/entitlementManagement/accessPackageResourceEnvironments/{accessPackageResourceEnvironmentId}')
+ .version('beta')
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-accesspackageresourceroles-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-accesspackageresourceroles-javascript-snippets.md
@@ -12,7 +12,7 @@ const client = Client.init(options);
let res = await client.api('/identityGovernance/entitlementManagement/accessPackageCatalogs/15d889df-3eb8-4e9b-bfb4-b1908849aec4/accessPackageResourceRoles') .version('beta')
- .filter('(originSystem eq 'AadGroup' and accessPackageResource/id eq 'a35bef72-a8aa-4ca3-af30-f6b2ece7208f'),')
+ .filter('(originSystem eq 'AadGroup' and accessPackageResource/id eq 'a35bef72-a8aa-4ca3-af30-f6b2ece7208f')')
.expand('accessPackageResource/id%20eq%20'a35bef72-a8aa-4ca3-af30-f6b2ece7208f')') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-accessreviews-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-accessreviews-javascript-snippets.md
@@ -12,7 +12,7 @@ const client = Client.init(options);
let res = await client.api('/accessReviews') .version('beta')
- .filter('businessFlowTemplateId eq '6e4f3d20-c5c3-407f-9695-8460952bcc68',')
+ .filter('businessFlowTemplateId eq '6e4f3d20-c5c3-407f-9695-8460952bcc68'')
.skip(0) .top(100) .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-bitlockerrecoverykey-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-bitlockerrecoverykey-javascript-snippets.md
@@ -10,11 +10,9 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/bitlocker/recoveryKeys')
+let res = await client.api('/bitlocker/recoveryKeys/b465e4e8-e4e8-b465-e8e4-65b4e8e465b4')
.version('beta')
- .header('ocp-client-name','"My Friendly Client"')
- .header('ocp-client-version','"1.2"')
- .filter('deviceId eq '1ab40ab2-32a8-4b00-b6b5-ba724e407de9'')
+ .select('key')
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-buckets-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-buckets-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/planner/plans/2txjA-BMZEq-bKi6Wfj5aGQAB1OJ/buckets')
+let res = await client.api('/planner/buckets')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-classes-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-classes-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/education/classes')
+let res = await client.api('/education/schools/10002/classes')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-cloudpconpremisesconnection-withdetails-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-cloudpconpremisesconnection-withdetails-javascript-snippets.md
@@ -12,7 +12,7 @@ const client = Client.init(options);
let res = await client.api('/deviceManagement/virtualEndpoint/onPremisesConnections/{id}') .version('beta')
- .select('id,displayName,subscriptionId,subscriptionName,adDomainName,adDomainUsername,organizationalUnit,virtualNetworkId,subnetId,healthCheckStatus,healthCheckStatusDetails,inUse')
+ .select('id,displayName,healthCheckStatus,healthCheckStatusDetails,inUse')
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-connectors-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-connectors-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/onPremisesPublishingProfiles/applicationProxy/connectors')
+let res = await client.api('/print/connectors')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-contract-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-contract-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/contracts/{id}')
+let res = await client.api('/contracts')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-custodian-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-custodian-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/compliance/ediscovery/cases/2192ca408ea2410eba3bec8ae873be6b/custodians')
+let res = await client.api('/compliance/ediscovery/cases/2192ca408ea2410eba3bec8ae873be6b/custodians/45454331323337443946343043464239')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-educationuser-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-educationuser-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/education/users/13012')
+let res = await client.api('/education/me/user')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-emailauthenticationmethod-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-emailauthenticationmethod-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/me/authentication/emailMethods/3ddfcfc8-9383-446f-83cc-3ab9be4be18f')
+let res = await client.api('/me/authentication/emailMethods')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-endpoints-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-endpoints-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/print/reports/dailyPrintUsageSummariesByPrinter')
+let res = await client.api('/groups/{id}/endpoints')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-group-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-group-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/termStore/groups')
+let res = await client.api('/groups/45b7d2e7-b882-4a80-ba97-10b7a63b8fa4')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-grouplifecyclepolicy-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-grouplifecyclepolicy-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/groupLifecyclePolicies')
+let res = await client.api('/groupLifecyclePolicies/{id}')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-identityprovider-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-identityprovider-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/identityProviders/{id}')
+let res = await client.api('/identityProviders')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-itemphone-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-itemphone-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/me/profile/phones')
+let res = await client.api('/me/profile/phones/{id}')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-jobs-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-jobs-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/print/printers/{id}/jobs')
+let res = await client.api('/servicePrincipals/{id}/synchronization/jobs/')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-messages-with-mentions-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-messages-with-mentions-javascript-snippets.md
@@ -12,7 +12,7 @@ const client = Client.init(options);
let res = await client.api('/me/messages') .version('beta')
- .filter('MentionsPreview/IsMentioned eq true,')
+ .filter('MentionsPreview/IsMentioned eq true')
.select('subject,sender,receivedDateTime,mentionsPreview') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-names-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-names-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/me/drive/items/{id}/workbook/names')
+let res = await client.api('/me/profile/names')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-opentypeextension-3-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-opentypeextension-3-javascript-snippets.md
@@ -12,7 +12,6 @@ const client = Client.init(options);
let res = await client.api('/me/messages/AAMkAGE1M2IyNGNmLTI5MTktNDUyZi1iOTVl===/') .version('beta')
- .filter('id eq 'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')')
.expand('extensions($filter=id%20eq%20'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-passwordlessmicrosoftauthenticatorauthenticationmethod-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-passwordlessmicrosoftauthenticatorauthenticationmethod-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/me/authentication/passwordlessMicrosoftAuthenticatorMethods/R18B3t8Ogh9XIOGmPt81d6p_KXJs1YTxfGgGqeVFJSM1')
+let res = await client.api('/me/authentication/passwordlessMicrosoftAuthenticatorMethods')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-permission-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-permission-javascript-snippets.md
@@ -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('/sites/{sitesId}/permissions/{permissionId}')
+ .version('beta')
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-plans-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-plans-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/planner/plans')
+let res = await client.api('/me/planner/plans')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-privilegedapproval-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-privilegedapproval-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/privilegedApproval/{id}')
+let res = await client.api('/privilegedApproval')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-replies-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-replies-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/drive/items/{id}/workbook/comments/{id}/replies')
+let res = await client.api('/chats/{id}/messages/{id}/replies')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-roleassignments-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-roleassignments-javascript-snippets.md
@@ -12,7 +12,6 @@ const client = Client.init(options);
let res = await client.api('/roleManagement/directory/roleAssignments') .version('beta')
- .filter(' principalId eq 'f1847572-48aa-47aa-96a3-2ec61904f41f'')
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-settings-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-settings-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/me/analytics/settings')
+let res = await client.api('/settings')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-signin-last-time-filter-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-signin-last-time-filter-javascript-snippets.md
@@ -12,7 +12,7 @@ const client = Client.init(options);
let res = await client.api('/users') .version('beta')
- .filter('startswith(displayName,'Eric'),')
+ .filter('startswith(displayName,'Eric')')
.select('displayName,signInActivity') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-singlevaluelegacyextendedproperty-1-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-singlevaluelegacyextendedproperty-1-javascript-snippets.md
@@ -12,7 +12,6 @@ const client = Client.init(options);
let res = await client.api('/me/messages/AAMkAGE1M2_bs88AACHsLqWAAA=/') .version('beta')
- .filter('id eq 'String {66f5a359-4659-4830-9070-00047ec6ac6e} Name Color')')
.expand('singleValueExtendedProperties($filter=id%20eq%20'String%20%7B66f5a359-4659-4830-9070-00047ec6ac6e%7D%20Name%20Color')') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-swapshiftschangerequest-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-swapshiftschangerequest-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/teams/{teamId}/schedule/swapShiftsChangeRequests/{swapShiftsChangeRequestId}')
+let res = await client.api('/teams/{teamId}/schedule/swapShiftsChangeRequests')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-synchronizationschema-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-synchronizationschema-javascript-snippets.md
@@ -10,8 +10,9 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/servicePrincipals/{id}/synchronization/jobs/{jobId}/schema')
+let res = await client.api('/servicePrincipals/{servicePrincipalId}/synchronization/jobs/{jobId}/schema')
.version('beta')
+ .header('Authorization','Bearer {Token}')
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-term-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-term-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/termStore/groups/{groupId}/sets/{setId}/terms/{termId}')
+let res = await client.api('/termStore/sets/{setId}/children')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-todotask-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-todotask-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/me/todo/lists/AAMkADA1MTHgwAAA=/tasks/721a35e2-35e2-721a-e235-1a72e2351a72')
+let res = await client.api('/me/todo/lists/35e2-35e2-721a-e235-1a72e2351a7/tasks')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-todotasklist-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-todotasklist-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/me/todo/lists')
+let res = await client.api('/me/todo/lists/AAMkADIyAAAAABrJAAA=')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-unifiedgroupsource-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-unifiedgroupsource-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/compliance/ediscovery/cases/4c8f8f70-7785-4bd4-b296-c98376a2c5e1/custodians/2192ca408ea2410eba3bec8ae873be6b/unifiedGroupSources')
+let res = await client.api('/compliance/ediscovery/cases/4c8f8f70-7785-4bd4-b296-c98376a2c5e1/custodians/2192ca408ea2410eba3bec8ae873be6b/unifiedGroupSources/33434233-3030-3739-3043-393039324633')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-unifiedroleassignment-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-unifiedroleassignment-javascript-snippets.md
@@ -10,9 +10,9 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/roleManagement/directory/roleAssignments/lAPpYvVpN0KRkAEhdxReEJC2sEqbR_9Hr48lds9SGHI-1')
+let res = await client.api('/roleManagement/deviceManagement/roleAssignments/lAPpYvVpN0KRkAEhdxReEJC2sEqbR_9Hr48lds9SGHI-1')
.version('beta')
- .expand('directoryScope')
+ .expand('directoryScopes')
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-unifiedroleassignmentmultiple-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-unifiedroleassignmentmultiple-javascript-snippets.md
@@ -12,7 +12,6 @@ const client = Client.init(options);
let res = await client.api('/roleManagement/deviceManagement/roleAssignments') .version('beta')
- .filter(' principalIds/any(x:x eq '564ae70c-73d9-476b-820b-fb61eb7384b9')')
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-userflowlanguagepage-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-userflowlanguagepage-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/identity/b2cUserFlows/B2C_1_Customer/languages/en/defaultPages/idpselections/$value')
+let res = await client.api('/identity/b2cUserFlows/B2C_1_Customer/languages/en/defaultPages')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-usersource-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-usersource-javascript-snippets.md
@@ -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('/compliance/ediscovery/cases/4c8f8f70-7785-4bd4-b296-c98376a2c5e1/custodians/2192ca408ea2410eba3bec8ae873be6b/userSources')
+ .version('beta')
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/group-create-approleassignment-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/group-create-approleassignment-javascript-snippets.md
@@ -16,7 +16,7 @@ const appRoleAssignment = {
appRoleId: "appRoleId-value" };
-let res = await client.api('/servicePrincipals/{id}/appRoleAssignments')
+let res = await client.api('/groups/{id}/appRoleAssignments')
.version('beta') .post(appRoleAssignment);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/list-accesspackageresourceenvironment-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/list-accesspackageresourceenvironment-javascript-snippets.md
@@ -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('/identityGovernance/entitlementManagement/accessPackageResourceEnvironments')
+ .version('beta')
+ .filter('originSystem eq 'SharePointOnline'')
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/list-permission-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/list-permission-javascript-snippets.md
@@ -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('/sites/{sitesId}/permissions')
+ .version('beta')
+ .get();
+
+```
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
@@ -12,7 +12,7 @@ const client = Client.init(options);
let res = await client.api('/appCatalogs/teamsApps') .version('beta')
- .filter('id eq '876df28f-2e78-423b-94a5-44181bd0e225',')
+ .filter('id eq '876df28f-2e78-423b-94a5-44181bd0e225'')
.expand('appDefinitions') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/list-usageright-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/list-usageright-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/users/{userId}/usageRights')
+let res = await client.api('/devices/{objectId}/usageRights')
.version('beta') .filter('state in ('active', 'suspended') and serviceIdentifier in ('ABCD')') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/sendreminder-accessreview-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/sendreminder-accessreview-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/accessReviews/2975E9B5-44CE-4E71-93D3-30F03B5AA992/sendReminder')
+let res = await client.api('/identityGovernance/accessReviews/definitions/04e5c3b2-9db2-40d3-a204-128f4956ae8e/instances/70463350-742e-4909-bfa5-bc23447bd002/sendReminder')
.version('beta') .post();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/shift-get-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/shift-get-javascript-snippets.md
@@ -10,8 +10,29 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/users/871dbd5c-3a6a-4392-bfe1-042452793a50/shiftPreferences')
+const shiftPreferences = {
+ id: "SHPR_eeab4fb1-20e5-48ca-ad9b-98119d94bee7",
+ @odata.etag: "1a371e53-f0a6-4327-a1ee-e3c56e4b38aa",
+ availability: [
+ {
+ recurrence: {
+ pattern: {
+ type: "Weekly",
+ daysOfWeek: ["Monday", "Wednesday", "Friday"],
+ interval: 1
+ },
+ range: {
+ type: "noEnd"
+ }
+ },
+ timeZone: "Pacific Standard Time",
+ timeSlots: null
+ }
+ ]
+};
+
+let res = await client.api('/users/871dbd5c-3a6a-4392-bfe1-042452793a50/settings/shiftPreferences')
.version('beta')
- .get();
+ .put(shiftPreferences);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-organizationalbrandingproperties-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/update-organizationalbrandingproperties-javascript-snippets.md
@@ -10,13 +10,12 @@ const options = {
const client = Client.init(options);
-const organizationalBrandingLocalization = {
- backgroundColor:"#00000F",
- signInPageText: "fr"
+const organizationalBranding = {
+ backgroundColor:"#FFFF33"
};
-let res = await client.api('/organization/d69179bf-f4a4-41a9-a9de-249c0f2efb1d/branding/localizations/fr')
+let res = await client.api('/organization/d69179bf-f4a4-41a9-a9de-249c0f2efb1d/branding')
.version('beta')
- .put(organizationalBrandingLocalization);
+ .put(organizationalBranding);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-permission-from--javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/update-permission-from--javascript-snippets.md
@@ -0,0 +1,21 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const permission = {
+ roles: ["read"]
+};
+
+let res = await client.api('/sites/{sitesId}/permissions/{permissionId}')
+ .version('beta')
+ .update(permission);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/user-list-teamsapps-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/user-list-teamsapps-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/users/{id}/teamwork/installedApps/{id}')
+let res = await client.api('/users/{id}/teamwork/installedApps')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/cloudpconpremisesconnection-runhealthcheck-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/cloudpconpremisesconnection-runhealthcheck-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:@"/deviceManagement/virtualEndpoint/cloudPCs/{id}/reprovision"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/deviceManagement/virtualEndpoint/onPremisesConnections/{id}/runHealthChecks"]]];
[urlRequest setHTTPMethod:@"POST"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-new-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-new-objc-snippets.md
@@ -0,0 +1,41 @@
+
+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/accessPackageResourceRequests"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphAccessPackageResourceRequest *accessPackageResourceRequest = [[MSGraphAccessPackageResourceRequest alloc] init];
+[accessPackageResourceRequest setCatalogId:@"de9315c1-272b-4905-924b-cc112ca180c7"];
+MSGraphAccessPackageResource *accessPackageResource = [[MSGraphAccessPackageResource alloc] init];
+[accessPackageResource setDisplayName:@"Community Outreach"];
+[accessPackageResource setDescription:@"https://contoso.sharepoint.com/sites/CSR"];
+[accessPackageResource setResourceType:@"SharePoint Online Site"];
+[accessPackageResource setOriginId:@"https://contoso.sharepoint.com/sites/CSR"];
+[accessPackageResource setOriginSystem:@"SharePointOnline"];
+MSGraphAccessPackageResourceEnvironment *accessPackageResourceEnvironment = [[MSGraphAccessPackageResourceEnvironment alloc] init];
+[accessPackageResourceEnvironment setOriginId:@"https://contoso-admin.sharepoint.com/"];
+[accessPackageResource setAccessPackageResourceEnvironment:accessPackageResourceEnvironment];
+[accessPackageResourceRequest setAccessPackageResource:accessPackageResource];
+[accessPackageResourceRequest setRequestType:@"AdminAdd"];
+
+NSError *error;
+NSData *accessPackageResourceRequestData = [accessPackageResourceRequest getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:accessPackageResourceRequestData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-objc-snippets.md
@@ -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:@"/identityGovernance/entitlementManagement/accessPackageResourceRequests"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphAccessPackageResourceRequest *accessPackageResourceRequest = [[MSGraphAccessPackageResourceRequest alloc] init];
+[accessPackageResourceRequest setCatalogId:@"de9315c1-272b-4905-924b-cc112ca180c7"];
+MSGraphAccessPackageResource *accessPackageResource = [[MSGraphAccessPackageResource alloc] init];
+[accessPackageResource setDisplayName:@"Community Outreach"];
+[accessPackageResource setDescription:@"https://contoso.sharepoint.com/sites/CSR"];
+[accessPackageResource setResourceType:@"SharePoint Online Site"];
+[accessPackageResource setOriginId:@"https://contoso.sharepoint.com/sites/CSR"];
+[accessPackageResource setOriginSystem:@"SharePointOnline"];
+[accessPackageResourceRequest setAccessPackageResource:accessPackageResource];
+[accessPackageResourceRequest setRequestType:@"AdminAdd"];
+
+NSError *error;
+NSData *accessPackageResourceRequestData = [accessPackageResourceRequest getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:accessPackageResourceRequestData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-chatmessage-from-channel-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-chatmessage-from-channel-objc-snippets.md
@@ -12,33 +12,9 @@ NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URL
[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"]; MSGraphChatMessage *chatMessage = [[MSGraphChatMessage alloc] init];
-[chatMessage setSubject: null];
MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
-[body setContentType: [MSGraphBodyType html]];
-[body setContent:@"<attachment id=\"74d20c7f34aa4a7fb74e2b30004247c5\"></attachment>"];
+[body setContent:@"Hello World"];
[chatMessage setBody:body];
-NSMutableArray *attachmentsList = [[NSMutableArray alloc] init];
-MSGraphChatMessageAttachment *attachments = [[MSGraphChatMessageAttachment alloc] init];
-[attachments setId:@"74d20c7f34aa4a7fb74e2b30004247c5"];
-[attachments setContentType:@"application/vnd.microsoft.card.adaptive"];
-[attachments setContentUrl: null];
-[attachments setContent:@"{\r\n \"$schema\": \"http://adaptivecards.io/schemas/adaptive-card.json\",\r\n \"type\": \"AdaptiveCard\",\r\n \"version\": \"1.2\",\r\n \"speak\": \"The Seattle Seahawks beat the Carolina Panthers 40-7\",\r\n \"body\": [\r\n {\r\n \"type\": \"Container\",\r\n \"items\": [\r\n {\r\n \"type\": \"ColumnSet\",\r\n \"columns\": [\r\n {\r\n \"type\": \"Column\",\r\n \"width\": \"auto\",\r\n \"items\": [\r\n {\r\n \"type\": \"Image\",\r\n \"url\": \"../hostedContents/1/$value\",\r\n \"size\": \"Medium\"\r\n },\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"SHADES\",\r\n \"horizontalAlignment\": \"Center\",\r\n \"weight\": \"Bolder\"\r\n }\r\n ]\r\n },\r\n {\r\n \"type\": \"Column\",\r\n \"width\": \"stretch\",\r\n \"separator\": true,\r\n \"spacing\": \"Medium\",\r\n \"items\": [\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"2019-08-31T19:30:00Z\",\r\n \"horizontalAlignment\": \"Center\"\r\n },\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"Final\",\r\n \"spacing\": \"None\",\r\n \"horizontalAlignment\": \"Center\"\r\n },\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"40 - 7\",\r\n \"size\": \"ExtraLarge\",\r\n \"horizontalAlignment\": \"Center\"\r\n }\r\n ]\r\n },\r\n {\r\n \"type\": \"Column\",\r\n \"width\": \"auto\",\r\n \"separator\": true,\r\n \"spacing\": \"Medium\",\r\n \"items\": [\r\n {\r\n \"type\": \"Image\",\r\n \"url\": \"../hostedContents/2/$value\",\r\n \"size\": \"Medium\",\r\n \"horizontalAlignment\": \"Center\"\r\n },\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"SKINS\",\r\n \"horizontalAlignment\": \"Center\",\r\n \"weight\": \"Bolder\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}"];
-[attachments setName: null];
-[attachments setThumbnailUrl: null];
-[attachmentsList addObject: attachments];
-[chatMessage setAttachments:attachmentsList];
-NSMutableArray *hostedContentsList = [[NSMutableArray alloc] init];
-MSGraphChatMessageHostedContent *hostedContents = [[MSGraphChatMessageHostedContent alloc] init];
-[hostedContents set@microsoft.graph.temporaryId:@"1"];
-[hostedContents setContentBytes:@"iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaK6UvXb169ToGNuA0Cp+oYVHlxsYGK2QVEFqnT5/eej8/+9nPtr73LwjvFZPxeK84GsMpJHueEniGFJ7785///Ox73/vell/84hcUaoSff/WrX92aOMeCz64UVo389eTJk//1ne98Z/OnP/3p22+99dZ7NlZpaORGw6Ure0Kk72GD73/vfFU0BjQ6KT5lI8UsRjiS6vNFpFibhecoKaBTh9QXv/jF2Y9+9KPZr371K1qDJkqs09jhL14cPLzxxhtudzhogoZNW/ZEe4zLYSECC4ViRRwCghODxWOFOsIO4YzOwV47lxQhdf/9928dCfUJ8GXwnDgiHbpOU4Ijfzu6+pDtD280dJqyJ0A4ud3sahE65pBhhXDKdUEyAnDIQdgnpBBOL774In1fqQ1dp6lBnXONgUU0fNaxB2KuCad09Ek94bA/53wOdgwGAtsWbxiEQwRz15DCkZPHEeY6eE0cgbL3IumhT7L94IWG0Cr2oGNm0HNUwCmX99+gmP/wOF1pC6e8Oefn2obUww8/3Gu+KRX8BVb6POZY4C8Ftg880CBi7JezrzRdx7NT5twJTeBoARP1bFtTaxNSJ0+epNs7lKGOPqco5aVjq9BAitkvIqCyrzRtAp0y9Sc+Q5x3N5VjADYNqVxzT13gFJ29N0kHZzI5Tu9pKC2yX8JSeJfveE8pxeBF0XP97dAHQpRtfypNQqrkgAq86yR55qdoMAX2C5ggH3z+qam+p0OY+2HPWyLPAbgupGoIqEBB5c/7aIqGE9gPiz3FW6bPqV/Jp3jLeJ36rQqpmgIq0KmfL3yIxeqeyCkaUGA/zLL+KTUEVdtP/YZaYpCCx3KMZSFV2iR5G7k+dJgi9EFW8wRwkLRrWUANdsVzCjhtY8VkHAucRZdQXoeFFJYZsNevBeqk5Ql+WM17wjTT1l1EWUBluW+xtyaL+zC4S1gH1VebUG6ChVQJ66D6Sl0nucVhHG3fnYGFVFXzUMs0+ZvT+Vw6q5SnM3FIYSU5e80aaWW6j8QfOp1azKQ4oHAHA/agKq36ZAcBxh5TK/xNlvK0LwQUrsVD4LPXrJHH6bEkDakdN+NbDCh8mlfNcoOmlk0s1/hp3jqpPsX68pe/vB1SNX6at44+7UsvUUjRu4Vu/4f9wqiOogIszowLOrajqABHCfF77eIHP/jB9lEUe53a6WgqPVbnlpbeznj7P+yXil9V3lU8NzXGo6ig79qpb3zjG9shdfbsWfoaY6C5qXSwNpHVuIWV91vf+of9Eu4LxR48CouH9/gbdExzLDFcdL3Ygdp64YUXtkNqzHXCHB57/9Jez4vxb5skZ7b+Yb9Y1N0NUlvskDmuNRpan/VAf/rTn7ZCCrf8Zc89JroVcRr4i5HVdw3Mf9MvgYht/WP+APZEoxE6ZA0XEPfV9VQGyxjwByE1xgnzmCbQ++u4GBrLnBp/3TsCahSLN9cJA3fMpzAB+7Cgibffftv6xEchNYZFruv0PTWWTp/q4VujWn2DMkIKd9pkTzYqGLgJJviq0OVTPsxFhT8XLlygzztGrBbSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg=="];
-[hostedContents setContentType:@"image/png"];
-[hostedContentsList addObject: hostedContents];
-MSGraphChatMessageHostedContent *hostedContents = [[MSGraphChatMessageHostedContent alloc] init];
-[hostedContents set@microsoft.graph.temporaryId:@"2"];
-[hostedContents setContentBytes:@"iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEar6WzSnk5E4cUVpKz16yRVqb7SPym08nFTIoDCncwYA+q0qp3dhBg7DG1wt9kKS/7QkDhs3gIfPaaNfK4PJakIbXrZnyLAYV386pZbtDUsonlGt/NWyfVu1hPPfXUTkjV+G7eOnq3L71EIUXvFrrzH/YLozqLCrA4My7o2M6iApwlxPvaxSuvvLJzFsVep3Y6m0qP1bmlpbcz3vkP+6XiV5V3Fc9NjfEsKui7duq5557bCakzZ87Q1xgDzU2lg7WJrMYtrLzf+vY/7JdwXyj24FFYPL3H36BjmmOJ4UPXix2orbfeemsnpMZcJ8zhsf2X9np+GP9Hk+TM9j/sF4u6u0Fqix0yx2eNhtZnPdBXX321HVK45S977jHRrYjTwF+MrL5rYP6bfglEbPsf8wewJxqN0CFr+ABxX10vZbCMAX8QUmOcMI9pAr2/jouhscyp8de9I6BGsXhznTBwx3wJE7A3C5r4/PPPrU/8EFJjWOS6Tt9LY+n0rh6+NarVNygjpHCnTfZko4KBm2CCrwpd3uXDXFT4c+7cOfq8Y8RqIc20nIvC2dN+6140iFYZ/XxUgDODKcxHBW3mW/CO3uKf9957jz7nGHl8QHsK0L8aXpVgKmnTuhUNoCYQUlXe7aCLmu920FbTj8kgoL7//nvrC9f//OlPf6LPOUZaitBew4BCOOFGBa0u7RiEFHuBUer4LkSVmkwKI8jigMKfTz75hD7nGGnyvB2cef71r3/9P1bLOay3xMLw3uEUKKRGatXge/LJJ2fvvvuuHX/+54svvqDPOUa6c2czWF+44koEZ02YNmr8jl0bCqmRwh0e4o6GcMIE+bfffmvHfvmfKYWUbt+yGsIJc7mfffbZf0e1w0Q43qnrNBnexqRC6uOPP6btY4RAxuUc4Kzpo48+suPd7I9CapqwCBiXc/DGG298+8EHH/yXXdr9zfrDv1utEEhYCeAeSj82+8n/A1GsifSVBvjAAAAAAElFTkSuQmCC"];
-[hostedContents setContentType:@"image/png"];
-[hostedContentsList addObject: hostedContents];
-[chatMessage setHostedContents:hostedContentsList];
NSError *error; NSData *chatMessageData = [chatMessage getSerializedDataWithError:&error];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-directoryobject-from-device-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-directoryobject-from-device-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:@"/devices/{id}/registeredOwners/$ref"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/devices/{id}/registeredUsers/$ref"]]];
[urlRequest setHTTPMethod:@"POST"]; [urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-educationclass-from-educationschool-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-educationclass-from-educationschool-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:@"/education/schools/10001/users/13006"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/education/classes/{id}/teachers/14012"]]];
[urlRequest setHTTPMethod:@"DELETE"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-identityuserflowattributeassignment-from--objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-identityuserflowattributeassignment-from--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:@"/identity/b2cUserFlows/B2C_1_Consumer/userAttributeAssignments"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identity/b2xUserFlows/B2X_1_Partner/userAttributeAssignments"]]];
[urlRequest setHTTPMethod:@"POST"]; [urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-listitem-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-listitem-objc-snippets.md
@@ -7,20 +7,17 @@ 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:@"/sites/{site-id}/lists/{list-id}/items"]]];
-[urlRequest setHTTPMethod:@"POST"];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/sites/{site-id}/lists/{list-id}/items/{item-id}/fields"]]];
+[urlRequest setHTTPMethod:@"PATCH"];
[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
-MSGraphListItem *listItem = [[MSGraphListItem alloc] init];
-MSGraphFieldValueSet *fields = [[MSGraphFieldValueSet alloc] init];
-[fields setTitle:@"Widget"];
-[fields setColor:@"Purple"];
-[fields setWeight: 32];
-[listItem setFields:fields];
+MSGraphFieldValueSet *fieldValueSet = [[MSGraphFieldValueSet alloc] init];
+[fieldValueSet setColor:@"Fuchsia"];
+[fieldValueSet setQuantity: 934];
NSError *error;
-NSData *listItemData = [listItem getSerializedDataWithError:&error];
-[urlRequest setHTTPBody:listItemData];
+NSData *fieldValueSetData = [fieldValueSet getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:fieldValueSetData];
MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-permission-from--objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-permission-from--objc-snippets.md
@@ -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:@"/sites/{sitesId}/permissions"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphPermission *permission = [[MSGraphPermission alloc] init];
+NSMutableArray *rolesList = [[NSMutableArray alloc] init];
+[rolesList addObject: @"write"];
+[permission setRoles:rolesList];
+NSMutableArray *grantedToIdentitiesList = [[NSMutableArray alloc] init];
+MSGraphIdentitySet *grantedToIdentities = [[MSGraphIdentitySet alloc] init];
+MSGraphIdentity *application = [[MSGraphIdentity alloc] init];
+[application setId:@"89ea5c94-7736-4e25-95ad-3fa95f62b66e"];
+[application setDisplayName:@"Foo App"];
+[grantedToIdentities setApplication:application];
+[grantedToIdentitiesList addObject: grantedToIdentities];
+[permission setGrantedToIdentities:grantedToIdentitiesList];
+
+NSError *error;
+NSData *permissionData = [permission getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:permissionData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/delete-b2xuserflows-identityproviders-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/delete-b2xuserflows-identityproviders-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:@"/identity/b2xUserFlows/B2X_1_PartnerSignUp/identityProviders/Facebook-OAUTH/$ref"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identity/b2cUserFlows/B2C_1_CustomerSignUp/identityProviders/Facebook-OAUTH/$ref"]]];
[urlRequest setHTTPMethod:@"DELETE"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/delete-educationassignment-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/delete-educationassignment-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:@"/education/classes/11014/assignments/19002"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/education/classes/11014/assignmentCategories/19002"]]];
[urlRequest setHTTPMethod:@"DELETE"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/delete-permission-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/delete-permission-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/drive/root/items/{item-id}/permissions/{perm-id}"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/sites/{sitesId}/permissions/{permissionId}"]]];
[urlRequest setHTTPMethod:@"DELETE"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-accesspackageresourceenvironment-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-accesspackageresourceenvironment-objc-snippets.md
@@ -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:@"/identityGovernance/entitlementManagement/accessPackageResourceEnvironments/{accessPackageResourceEnvironmentId}"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ MSGraphAccessPackageResourceEnvironment *accessPackageResourceEnvironment = [[MSGraphAccessPackageResourceEnvironment alloc] initWithData:data error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-bitlockerrecoverykey-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-bitlockerrecoverykey-objc-snippets.md
@@ -7,17 +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:@"/bitlocker/recoveryKeys?$filter=deviceId%20eq%20'1ab40ab2-32a8-4b00-b6b5-ba724e407de9'"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/bitlocker/recoveryKeys/b465e4e8-e4e8-b465-e8e4-65b4e8e465b4?$select=key"]]];
[urlRequest setHTTPMethod:@"GET"];
-[urlRequest setValue:@"\"My Friendly Client\"" forHTTPHeaderField:@"ocp-client-name"];
-[urlRequest setValue:@"\"1.2\"" forHTTPHeaderField:@"ocp-client-version"];
MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphBitlockerRecoveryKey *bitlockerRecoveryKey = [[MSGraphBitlockerRecoveryKey alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+ MSGraphBitlockerRecoveryKey *bitlockerRecoveryKey = [[MSGraphBitlockerRecoveryKey alloc] initWithData:data error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-buckets-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-buckets-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:@"/planner/plans/2txjA-BMZEq-bKi6Wfj5aGQAB1OJ/buckets"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/planner/buckets"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-classes-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-classes-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:@"/education/classes"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/education/schools/10002/classes"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-cloudpconpremisesconnection-withdetails-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-cloudpconpremisesconnection-withdetails-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:@"/deviceManagement/virtualEndpoint/onPremisesConnections/{id}?$select=id,displayName,subscriptionId,subscriptionName,adDomainName,adDomainUsername,organizationalUnit,virtualNetworkId,subnetId,healthCheckStatus,healthCheckStatusDetails,inUse"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/deviceManagement/virtualEndpoint/onPremisesConnections/{id}?$select=id,displayName,healthCheckStatus,healthCheckStatusDetails,inUse"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-connectors-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-connectors-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:@"/onPremisesPublishingProfiles/applicationProxy/connectors"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/print/connectors"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
@@ -15,7 +15,7 @@ MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
NSError *jsonError = nil; MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphConnector *connector = [[MSGraphConnector alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+ MSGraphPrintConnector *printConnector = [[MSGraphPrintConnector alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-contract-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-contract-objc-snippets.md
@@ -7,13 +7,15 @@ 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:@"/contracts/{id}"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/contracts"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphContract *contract = [[MSGraphContract alloc] initWithData:data error:&nserror];
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphContract *contract = [[MSGraphContract alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-custodian-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-custodian-objc-snippets.md
@@ -7,15 +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:@"/compliance/ediscovery/cases/2192ca408ea2410eba3bec8ae873be6b/custodians"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/compliance/ediscovery/cases/2192ca408ea2410eba3bec8ae873be6b/custodians/45454331323337443946343043464239"]]];
[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];
- MSGraphCustodian *custodian = [[MSGraphCustodian alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+ MSGraphCustodian *custodian = [[MSGraphCustodian alloc] initWithData:data error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-educationuser-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-educationuser-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:@"/education/users/13012"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/education/me/user"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphEducationUser *educationUser = [[MSGraphEducationUser alloc] initWithData:data error:&nserror];
+ MSGraphUser *user = [[MSGraphUser alloc] initWithData:data error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-emailauthenticationmethod-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-emailauthenticationmethod-objc-snippets.md
@@ -7,13 +7,15 @@ 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/authentication/emailMethods/3ddfcfc8-9383-446f-83cc-3ab9be4be18f"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/authentication/emailMethods"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphEmailAuthenticationMethod *emailAuthenticationMethod = [[MSGraphEmailAuthenticationMethod alloc] initWithData:data error:&nserror];
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphEmailAuthenticationMethod *emailAuthenticationMethod = [[MSGraphEmailAuthenticationMethod alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-endpoints-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-endpoints-objc-snippets.md
@@ -7,13 +7,15 @@ 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:@"/print/reports/dailyPrintUsageSummariesByPrinter"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groups/{id}/endpoints"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphReportRoot *reportRoot = [[MSGraphReportRoot alloc] initWithData:data error:&nserror];
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphEndpoint *endpoint = [[MSGraphEndpoint alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-group-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-group-objc-snippets.md
@@ -7,15 +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:@"/termStore/groups"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groups/45b7d2e7-b882-4a80-ba97-10b7a63b8fa4"]]];
[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];
+ MSGraphGroup *group = [[MSGraphGroup alloc] initWithData:data error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-grouplifecyclepolicy-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-grouplifecyclepolicy-objc-snippets.md
@@ -7,15 +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:@"/groupLifecyclePolicies"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groupLifecyclePolicies/{id}"]]];
[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];
- MSGraphGroupLifecyclePolicy *groupLifecyclePolicy = [[MSGraphGroupLifecyclePolicy alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+ MSGraphGroupLifecyclePolicy *groupLifecyclePolicy = [[MSGraphGroupLifecyclePolicy alloc] initWithData:data error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-identityprovider-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-identityprovider-objc-snippets.md
@@ -7,13 +7,15 @@ 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:@"/identityProviders/{id}"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identityProviders"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphIdentityProvider *identityProvider = [[MSGraphIdentityProvider alloc] initWithData:data error:&nserror];
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphIdentityProvider *identityProvider = [[MSGraphIdentityProvider alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-itemphone-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-itemphone-objc-snippets.md
@@ -7,15 +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:@"/me/profile/phones"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/profile/phones/{id}"]]];
[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];
- MSGraphItemPhone *itemPhone = [[MSGraphItemPhone alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+ MSGraphItemPhone *itemPhone = [[MSGraphItemPhone alloc] initWithData:data error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-jobs-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-jobs-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:@"/print/printers/{id}/jobs"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/servicePrincipals/{id}/synchronization/jobs/"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
@@ -15,7 +15,7 @@ MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
NSError *jsonError = nil; MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphPrintJob *printJob = [[MSGraphPrintJob alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+ MSGraphSynchronizationJob *synchronizationJob = [[MSGraphSynchronizationJob alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-names-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-names-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/drive/items/{id}/workbook/names"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/profile/names"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
@@ -15,7 +15,7 @@ MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
NSError *jsonError = nil; MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphWorkbookNamedItem *workbookNamedItem = [[MSGraphWorkbookNamedItem alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+ MSGraphPersonName *personName = [[MSGraphPersonName alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-passwordlessmicrosoftauthenticatorauthenticationmethod-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-passwordlessmicrosoftauthenticatorauthenticationmethod-objc-snippets.md
@@ -7,13 +7,15 @@ 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/authentication/passwordlessMicrosoftAuthenticatorMethods/R18B3t8Ogh9XIOGmPt81d6p_KXJs1YTxfGgGqeVFJSM1"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/authentication/passwordlessMicrosoftAuthenticatorMethods"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphPasswordlessMicrosoftAuthenticatorAuthenticationMethod *passwordlessMicrosoftAuthenticatorAuthenticationMethod = [[MSGraphPasswordlessMicrosoftAuthenticatorAuthenticationMethod alloc] initWithData:data error:&nserror];
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphPasswordlessMicrosoftAuthenticatorAuthenticationMethod *passwordlessMicrosoftAuthenticatorAuthenticationMethod = [[MSGraphPasswordlessMicrosoftAuthenticatorAuthenticationMethod alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-permission-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-permission-objc-snippets.md
@@ -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:@"/sites/{sitesId}/permissions/{permissionId}"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ MSGraphPermission *permission = [[MSGraphPermission alloc] initWithData:data error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-plans-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-plans-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:@"/planner/plans"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/planner/plans"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-privilegedapproval-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-privilegedapproval-objc-snippets.md
@@ -7,13 +7,15 @@ 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:@"/privilegedApproval/{id}"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/privilegedApproval"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphPrivilegedApproval *privilegedApproval = [[MSGraphPrivilegedApproval alloc] initWithData:data error:&nserror];
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphPrivilegedApproval *privilegedApproval = [[MSGraphPrivilegedApproval alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-replies-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-replies-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:@"/drive/items/{id}/workbook/comments/{id}/replies"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/chats/{id}/messages/{id}/replies"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
@@ -15,7 +15,7 @@ MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
NSError *jsonError = nil; MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphWorkbookCommentReply *workbookCommentReply = [[MSGraphWorkbookCommentReply alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+ MSGraphChatMessage *chatMessage = [[MSGraphChatMessage alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-settings-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-settings-objc-snippets.md
@@ -7,13 +7,15 @@ 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/analytics/settings"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/settings"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphSettings *settings = [[MSGraphSettings alloc] initWithData:data error:&nserror];
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphDirectorySetting *directorySetting = [[MSGraphDirectorySetting alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-swapshiftschangerequest-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-swapshiftschangerequest-objc-snippets.md
@@ -7,13 +7,15 @@ 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/{teamId}/schedule/swapShiftsChangeRequests/{swapShiftsChangeRequestId}"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/teams/{teamId}/schedule/swapShiftsChangeRequests"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphSwapShiftsChangeRequest *swapShiftsChangeRequest = [[MSGraphSwapShiftsChangeRequest alloc] initWithData:data error:&nserror];
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphSwapShiftsChangeRequest *swapShiftsChangeRequest = [[MSGraphSwapShiftsChangeRequest alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-synchronizationschema-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-synchronizationschema-objc-snippets.md
@@ -7,8 +7,9 @@ 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:@"/servicePrincipals/{id}/synchronization/jobs/{jobId}/schema"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/servicePrincipals/{servicePrincipalId}/synchronization/jobs/{jobId}/schema"]]];
[urlRequest setHTTPMethod:@"GET"];
+[urlRequest setValue:@"Bearer {Token}" forHTTPHeaderField:@"Authorization"];
MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-term-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-term-objc-snippets.md
@@ -7,13 +7,15 @@ 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:@"/termStore/groups/{groupId}/sets/{setId}/terms/{termId}"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/termStore/sets/{setId}/children"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphTerm *term = [[MSGraphTerm alloc] initWithData:data error:&nserror];
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphTerm *term = [[MSGraphTerm alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-todotask-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-todotask-objc-snippets.md
@@ -7,13 +7,15 @@ 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/todo/lists/AAMkADA1MTHgwAAA=/tasks/721a35e2-35e2-721a-e235-1a72e2351a72"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/todo/lists/35e2-35e2-721a-e235-1a72e2351a7/tasks"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphTodoTask *todoTask = [[MSGraphTodoTask alloc] initWithData:data error:&nserror];
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphTodoTask *todoTask = [[MSGraphTodoTask alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-todotasklist-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-todotasklist-objc-snippets.md
@@ -7,15 +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:@"/me/todo/lists"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/todo/lists/AAMkADIyAAAAABrJAAA="]]];
[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];
- MSGraphTodoTaskList *todoTaskList = [[MSGraphTodoTaskList alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+ MSGraphTodoTaskList *todoTaskList = [[MSGraphTodoTaskList alloc] initWithData:data error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-unifiedgroupsource-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-unifiedgroupsource-objc-snippets.md
@@ -7,15 +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:@"/compliance/ediscovery/cases/4c8f8f70-7785-4bd4-b296-c98376a2c5e1/custodians/2192ca408ea2410eba3bec8ae873be6b/unifiedGroupSources"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/compliance/ediscovery/cases/4c8f8f70-7785-4bd4-b296-c98376a2c5e1/custodians/2192ca408ea2410eba3bec8ae873be6b/unifiedGroupSources/33434233-3030-3739-3043-393039324633"]]];
[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];
- MSGraphUnifiedGroupSource *unifiedGroupSource = [[MSGraphUnifiedGroupSource alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+ MSGraphUnifiedGroupSource *unifiedGroupSource = [[MSGraphUnifiedGroupSource alloc] initWithData:data error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-unifiedroleassignment-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-unifiedroleassignment-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:@"/roleManagement/directory/roleAssignments/lAPpYvVpN0KRkAEhdxReEJC2sEqbR_9Hr48lds9SGHI-1?$expand=roleDefinition,principal,directoryScope"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/roleManagement/deviceManagement/roleAssignments/lAPpYvVpN0KRkAEhdxReEJC2sEqbR_9Hr48lds9SGHI-1?$expand=roleDefinition,principals,directoryScopes"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphUnifiedRoleAssignment *unifiedRoleAssignment = [[MSGraphUnifiedRoleAssignment alloc] initWithData:data error:&nserror];
+ MSGraphUnifiedRoleAssignmentMultiple *unifiedRoleAssignmentMultiple = [[MSGraphUnifiedRoleAssignmentMultiple alloc] initWithData:data error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-userflowlanguagepage-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-userflowlanguagepage-objc-snippets.md
@@ -7,13 +7,15 @@ 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:@"/identity/b2cUserFlows/B2C_1_Customer/languages/en/defaultPages/idpselections/$value"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identity/b2cUserFlows/B2C_1_Customer/languages/en/defaultPages"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphStream *stream = [[MSGraphStream alloc] initWithData:data error:&nserror];
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphUserFlowLanguagePage *userFlowLanguagePage = [[MSGraphUserFlowLanguagePage alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-usersource-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-usersource-objc-snippets.md
@@ -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:@"/compliance/ediscovery/cases/4c8f8f70-7785-4bd4-b296-c98376a2c5e1/custodians/2192ca408ea2410eba3bec8ae873be6b/userSources"]]];
+[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];
+ MSGraphUserSource *userSource = [[MSGraphUserSource alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/group-create-approleassignment-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/group-create-approleassignment-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:@"/servicePrincipals/{id}/appRoleAssignments"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groups/{id}/appRoleAssignments"]]];
[urlRequest setHTTPMethod:@"POST"]; [urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/list-accesspackageresourceenvironment-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/list-accesspackageresourceenvironment-objc-snippets.md
@@ -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:@"/identityGovernance/entitlementManagement/accessPackageResourceEnvironments?$filter=originSystem%20eq%20'SharePointOnline'"]]];
+[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];
+ MSGraphAccessPackageResourceEnvironment *accessPackageResourceEnvironment = [[MSGraphAccessPackageResourceEnvironment alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/list-permission-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/list-permission-objc-snippets.md
@@ -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:@"/sites/{sitesId}/permissions"]]];
+[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];
+ MSGraphPermission *permission = [[MSGraphPermission alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/list-usageright-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/list-usageright-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:@"/users/{userId}/usageRights?$filter=state%20in%20('active',%20'suspended')%20and%20serviceIdentifier%20in%20('ABCD')"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/devices/{objectId}/usageRights?$filter=state%20in%20('active',%20'suspended')%20and%20serviceIdentifier%20in%20('ABCD')"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/sendreminder-accessreview-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/sendreminder-accessreview-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:@"/accessReviews/2975E9B5-44CE-4E71-93D3-30F03B5AA992/sendReminder"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identityGovernance/accessReviews/definitions/04e5c3b2-9db2-40d3-a204-128f4956ae8e/instances/70463350-742e-4909-bfa5-bc23447bd002/sendReminder"]]];
[urlRequest setHTTPMethod:@"POST"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/shift-get-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/shift-get-objc-snippets.md
@@ -7,13 +7,41 @@ 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/871dbd5c-3a6a-4392-bfe1-042452793a50/shiftPreferences"]]];
-[urlRequest setHTTPMethod:@"GET"];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/users/871dbd5c-3a6a-4392-bfe1-042452793a50/settings/shiftPreferences"]]];
+[urlRequest setHTTPMethod:@"PUT"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphShiftPreferences *shiftPreferences = [[MSGraphShiftPreferences alloc] init];
+[shiftPreferences setId:@"SHPR_eeab4fb1-20e5-48ca-ad9b-98119d94bee7"];
+NSMutableArray *availabilityList = [[NSMutableArray alloc] init];
+MSGraphShiftAvailability *availability = [[MSGraphShiftAvailability alloc] init];
+MSGraphPatternedRecurrence *recurrence = [[MSGraphPatternedRecurrence alloc] init];
+MSGraphRecurrencePattern *pattern = [[MSGraphRecurrencePattern alloc] init];
+[pattern setType: [MSGraphRecurrencePatternType weekly]];
+NSMutableArray *daysOfWeekList = [[NSMutableArray alloc] init];
+[daysOfWeekList addObject: @"Monday"];
+[daysOfWeekList addObject: @"Wednesday"];
+[daysOfWeekList addObject: @"Friday"];
+[pattern setDaysOfWeek:daysOfWeekList];
+[pattern setInterval: 1];
+[recurrence setPattern:pattern];
+MSGraphRecurrenceRange *range = [[MSGraphRecurrenceRange alloc] init];
+[range setType: [MSGraphRecurrenceRangeType noEnd]];
+[recurrence setRange:range];
+[availability setRecurrence:recurrence];
+[availability setTimeZone:@"Pacific Standard Time"];
+[availability setTimeSlots: null];
+[availabilityList addObject: availability];
+[shiftPreferences setAvailability:availabilityList];
+
+NSError *error;
+NSData *shiftPreferencesData = [shiftPreferences getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:shiftPreferencesData];
MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphShiftPreferences *shiftPreferences = [[MSGraphShiftPreferences alloc] initWithData:data error:&nserror];
+ //Request Completed
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-organizationalbrandingproperties-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/update-organizationalbrandingproperties-objc-snippets.md
@@ -7,17 +7,16 @@ 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:@"/organization/d69179bf-f4a4-41a9-a9de-249c0f2efb1d/branding/localizations/fr"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/organization/d69179bf-f4a4-41a9-a9de-249c0f2efb1d/branding"]]];
[urlRequest setHTTPMethod:@"PUT"]; [urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
-MSGraphOrganizationalBrandingLocalization *organizationalBrandingLocalization = [[MSGraphOrganizationalBrandingLocalization alloc] init];
-[organizationalBrandingLocalization setBackgroundColor:@"#00000F"];
-[organizationalBrandingLocalization setSignInPageText:@"fr"];
+MSGraphOrganizationalBranding *organizationalBranding = [[MSGraphOrganizationalBranding alloc] init];
+[organizationalBranding setBackgroundColor:@"#FFFF33"];
NSError *error;
-NSData *organizationalBrandingLocalizationData = [organizationalBrandingLocalization getSerializedDataWithError:&error];
-[urlRequest setHTTPBody:organizationalBrandingLocalizationData];
+NSData *organizationalBrandingData = [organizationalBranding getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:organizationalBrandingData];
MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-permission-from--objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/update-permission-from--objc-snippets.md
@@ -0,0 +1,32 @@
+
+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:@"/sites/{sitesId}/permissions/{permissionId}"]]];
+[urlRequest setHTTPMethod:@"PATCH"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphPermission *permission = [[MSGraphPermission alloc] init];
+NSMutableArray *rolesList = [[NSMutableArray alloc] init];
+[rolesList addObject: @"read"];
+[permission setRoles:rolesList];
+
+NSError *error;
+NSData *permissionData = [permission getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:permissionData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/user-list-teamsapps-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/user-list-teamsapps-objc-snippets.md
@@ -7,13 +7,15 @@ 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}/teamwork/installedApps/{id}"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/users/{id}/teamwork/installedApps"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphUserScopeTeamsAppInstallation *userScopeTeamsAppInstallation = [[MSGraphUserScopeTeamsAppInstallation alloc] initWithData:data error:&nserror];
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphUserScopeTeamsAppInstallation *userScopeTeamsAppInstallation = [[MSGraphUserScopeTeamsAppInstallation alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/resources/accesspackageresourceenvironment https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/accesspackageresourceenvironment.md
@@ -13,7 +13,7 @@ Namespace: microsoft.graph
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
-In [Azure AD Entitlement Management](entitlementmanagement-root.md), an access package resource environment is a reference to the geolocation environment in which a resource is located. This environment is automatically provided as part of Azure AD Entilement Management. The API is only applicable to Multi-Geo SharePoint Online sites.
+In [Azure AD Entitlement Management](entitlementmanagement-root.md), an access package resource environment is a reference to the geolocation environment in which a resource is located. This environment is automatically provided as part of Azure AD Entitlement Management. The API is only applicable to Multi-Geo SharePoint Online sites.
## Methods |Method|Return type|Description|
v1.0 https://docs.microsoft.com/en-us/graph/resources/album https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/album.md
@@ -1,6 +1,5 @@
- Title: album resource type description: Facet describing a bundle which is a photo album. localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/resources/authenticationmethodspolicies-overview https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/authenticationmethodspolicies-overview.md
@@ -24,6 +24,7 @@ The authentication method policies APIs are used to manage policy settings. For
|Authentication method policy | Description | |:|:|:|
+|[smsAuthenticationMethodConfiguration](smsAuthenticationMethodConfiguration.md)| Define users who can use Text Message on the Azure AD tenant.|
|[fido2authenticationmethodconfiguration](fido2authenticationmethodconfiguration.md)| Define FIDO2 security key restrictions and users who can use them to sign in to Azure AD.| |[microsoftauthenticatorauthenticationmethodconfiguration](microsoftauthenticatorauthenticationmethodconfiguration.md)|Define users who can use Microsoft Authenticator on the Azure AD tenant.| |[emailauthenticationmethodconfiguration](emailauthenticationmethodconfiguration.md)|Define users who can use email OTP on the Azure AD tenant.|
v1.0 https://docs.microsoft.com/en-us/graph/resources/bundle https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/bundle.md
@@ -1,6 +1,5 @@
- Title: bundle resource type description: Facet describing a driveItem that is a logical grouping of other driveItems localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/resources/calendarpermission https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/calendarpermission.md
@@ -40,7 +40,7 @@ Once a sharee or delegate has been set up for a calendar, you can [update](../ap
### calendarRoleType values
-| Values | Description |
+| Member | Description |
|:--|:| | none | Calendar is not shared with the user. | | freeBusyRead | User is a sharee who can view free/busy status of the owner on the calendar. |
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
@@ -44,13 +44,20 @@ This resource lets you add your own data to custom properties using [extensions]
|alternativeSecurityIds|alternativeSecurityId collection| For internal use only. Not nullable. | |approximateLastSignInDateTime|DateTimeOffset| 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'`. Read-only. | |complianceExpirationDateTime|DateTimeOffset| The timestamp when the device is no longer deemed compliant. 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'`. Read-only. |
+|deviceCategory|String|User-defined property set by Intune to automatically add devices to groups and simplify managing devices.|
|deviceId|Guid| Unique identifier set by Azure Device Registration Service at the time of registration. | |deviceMetadata|String| For internal use only. Set to null. |
+|deviceOwnership|String|Ownership of the device. This property is set by Intune. Possible values are: unknown, company, personal.|
|deviceVersion|Int32| For internal use only. | |displayName|String| The display name for the device. Required. |
+|domainName|String|The on-premises domain name of Hybrid Azure AD joined devices. This property is set by Intune.|
+|enrollmentProfileName|String|Enrollment profile applied to the device. For example, Apple Device Enrollment Profile, Device enrollment - Corporate device identifiers, or Windows Autopilot profile name. This property is set by Intune.|
+|enrollmentType|String|Enrollment type of the device. This property is set by Intune. Possible values are: unknown, userEnrollment, deviceEnrollmentManager, appleBulkWithUser, appleBulkWithoutUser, windowsAzureADJoin, windowsBulkUserless, windowsAutoEnrollment, windowsBulkAzureDomainJoin, windowsCoManagement.|
|id|String|The unique identifier for the device. Inherited from [directoryObject](directoryobject.md). Key, Not nullable. Read-only.| |isCompliant|Boolean|**true** if the device complies with Mobile Device Management (MDM) policies; otherwise, **false**. Read-only. This can only be updated by Intune for any device OS type or by an [approved MDM app](/windows/client-management/mdm/azure-active-directory-integration-with-mdm) for Windows OS devices.| |isManaged|Boolean|**true** if the device is managed by a Mobile Device Management (MDM) app; otherwise, **false**. This can only be updated by Intune for any device OS type or by an [approved MDM app](/windows/client-management/mdm/azure-active-directory-integration-with-mdm) for Windows OS devices. |
+|isRooted|Boolean|**true** if device is rooted; **false** if device is jail-broken. This can only be updated by Intune.|
+|managementType|String|Management channel of the device. This property is set by Intune. Possible values are: eas, mdm, easMdm, intuneClient, easIntuneClient, configurationManagerClient, configurationManagerClientMdm, configurationManagerClientMdmEas, unknown, jamf, googleCloudDevicePolicyController.|
|manufacturer|String| Manufacturer of the device. Read-only. | |mdmAppId|String|Application identifier used to register device into MDM. <br><br>Read-only. Supports $filter.| |model|String| Model of the device. Read-only. |
@@ -60,6 +67,7 @@ This resource lets you add your own data to custom properties using [extensions]
|operatingSystemVersion|String| Operating system version of the device. Required. | |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**|
+|registrationDateTime|DateTimeOffset|Date and time of when the device was registered. 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'`. Read-only.|
|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) |
@@ -77,8 +85,6 @@ This resource lets you add your own data to custom properties using [extensions]
|registeredOwners|[directoryObject](directoryobject.md) collection| The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Currently, there can be only one owner. Read-only. Nullable.| |registeredUsers|[directoryObject](directoryobject.md) collection| Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable.| |extensions|[extension](extension.md) collection|The collection of open extensions defined for the device. Nullable.|
-|registeredOwners|[directoryObject](directoryobject.md) collection|Users that are registered owners of the device. Read-only. Nullable.|
-|registeredUsers|[directoryObject](directoryobject.md) collection|Users that are registered users of the device. Read-only. Nullable.|
|commands | [command](command.md) collection | Set of commands sent to this device| |usageRight|[usageRight](usageright.md) collection|Represents the usage rights a device has been granted. |
@@ -102,13 +108,19 @@ The following is a JSON representation of the resource.
"accountEnabled": true, "approximateLastSignInDateTime": "String (timestamp)", "complianceExpirationDateTime": "String (timestamp)",
+ "deviceCategory": "string",
"deviceId": "string", "deviceMetadata": "string",
+ "deviceOwnership": "string",
"deviceVersion": 1024, "displayName": "string",
+ "domainName": "string",
+ "enrollmentProfileName": "string",
+ "enrollmentType": "string",
"id": "string (identifier)", "isCompliant": true, "isManaged": true,
+ "isRooted": true,
"mdmAppId": "string", "onPremisesLastSyncDateTime": "String (timestamp)", "onPremisesSyncEnabled": true,
@@ -116,6 +128,7 @@ The following is a JSON representation of the resource.
"operatingSystemVersion": "string", "physicalIds": ["string"], "profileType": "string",
+ "registrationDateTime": "String (timestamp)",
"systemLabels": ["string"], "hostNames" : ["string"], "trustType": "string",
@@ -124,6 +137,7 @@ The following is a JSON representation of the resource.
"Platform": "string", "Kind": "string", "Model": "string",
+ "managementType": "string",
"Manufacturer": "string" } ```
v1.0 https://docs.microsoft.com/en-us/graph/resources/drive https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/drive.md
@@ -1,6 +1,5 @@
- Title: drive resource type description: drive resource representing a user's onedrive or a document library in SharePoint localization_priority: Priority
v1.0 https://docs.microsoft.com/en-us/graph/resources/educationassignment https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/educationassignment.md
@@ -84,7 +84,7 @@ The following is a JSON representation of the resource.
```json { "id": "String (identifier)",
- "addedStudentAction": "string",
+ "addedStudentAction": "none",
"allowLateSubmissions": true, "allowStudentsToAddResourcesToSubmission": true, "assignDateTime": "String (timestamp)",
@@ -100,7 +100,7 @@ The following is a JSON representation of the resource.
"instructions": {"@odata.type": "microsoft.graph.itemBody"}, "lastModifiedBy": {"@odata.type": "microsoft.graph.identitySet"}, "lastModifiedDateTime": "String (timestamp)",
- "notificationChannelUrl": "string",
+ "notificationChannelUrl": null,
"status": "string" } ```
v1.0 https://docs.microsoft.com/en-us/graph/resources/educationassignmentdefaults https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/educationassignmentdefaults.md
@@ -0,0 +1,50 @@
+
+ Title: "educationAssignmentDefaults resource type"
+description: "Specifies class-level defaults respected by new assignments created in the class"
+
+localization_priority: Normal
++
+# educationAssignmentDefaults resource type
+
+Namespace: microsoft.graph
++
+Specifies class-level defaults respected by new assignments created in the class. Callers can continue to specify custom values on each assignment creation if they do not want the default behaviors.
+
+## Methods
+|Method|Return type|Description|
+|:|:|:|
+|[Get educationAssignmentDefaults](../api/educationassignmentdefaults-get.md)|[educationAssignmentDefaults](../resources/educationassignmentdefaults.md)|Read the properties and relationships of an [educationAssignmentDefaults](../resources/educationassignmentdefaults.md) object.|
+|[Update educationAssignmentDefaults](../api/educationassignmentdefaults-update.md)|[educationAssignmentDefaults](../resources/educationassignmentdefaults.md)|Update the properties of an [educationAssignmentDefaults](../resources/educationassignmentdefaults.md) object.|
+
+## Properties
+|Property|Type|Description|
+|:|:|:|
+|addedStudentAction|educationAddedStudentAction|Class-level default behavior for handling students who are added after the assignment is published. Possible values are: `none`, `assignIfOpen`.|
+|dueTime|TimeOfDay|Class-level default value for due time field. Default value is `23:59:00`.|
+|notificationChannelUrl|String|Default Teams channel to which notifications will be sent. Default value is `null`.|
+
+## Relationships
+None.
+
+## JSON representation
+The following is a JSON representation of the resource.
+<!-- {
+ "blockType": "resource",
+ "keyProperty": "id",
+ "@odata.type": "microsoft.graph.educationAssignmentDefaults",
+ "openType": false
+}
+-->
+``` json
+{
+ "addedStudentAction": "none",
+ "dueTime": "23:59:00",
+ "notificationChannelUrl": "https://graph.microsoft.com/beta/teams('id')/channels('id')"
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/resources/enums-termstore https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/enums-termstore.md
@@ -15,7 +15,7 @@ Namespace: microsoft.graph.termstore
Specifies the value types relations can take in a termstore
-|Members|
+|Member|
|:| |pin| |reuse|
@@ -24,7 +24,7 @@ Specifies the value types relations can take in a termstore
Specifies the values different group types can take within the termstore
-|Members|
+|Member|
|:| |global| |system|
v1.0 https://docs.microsoft.com/en-us/graph/resources/enums https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/enums.md
@@ -1873,9 +1873,29 @@ Possible values for user account types (group membership), per Windows definitio
|meeting | 2 | Indicates that the chat is a Meeting chat, which is created as a side effect of creation of an OnlineMeeting. | |unknownFutureValue | 3 | Sentinel value to indicate future values. |
+### singleSignOnMode values
+
+|Member|
+|:|
+|none|
+|onPremisesKerberos|
+|aadHeaderBased|
+|pingHeaderBased|
+ ### plannerContainerType values |Member| |:| |group|
-|unknownFutureValue|
+|unknownFutureValue|
+
+### plannerPlanContextType values
+
+|Member|
+|:|
+|teamsTab|
+|sharePointPage|
+|meetingNotes|
+|other|
+|unknownFutureValue|
+
v1.0 https://docs.microsoft.com/en-us/graph/resources/group https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/group.md
@@ -154,7 +154,7 @@ This resource supports:
|unseenConversationsCount|Int32|Count of conversations that have been delivered one or more new posts since the signed-in user's last visit to the group. This property is the same as **unseenCount**. <br><br>Returned only on $select.| |unseenCount|Int32|Count of conversations that have received new posts since the signed-in user last visited the group. This property is the same as **unseenConversationsCount**.<br><br>Returned only on $select. | |unseenMessagesCount|Int32|Count of new posts that have been delivered to the group's conversations since the signed-in user's last visit to the group. <br><br>Returned only on $select.|
-|visibility|String| Specifies the visibility of a Microsoft 365 group. Possible values are: `Private`, `Public`, or `Hiddenmembership`; blank values are treated as public. See [group visibility options](#group-visibility-options) to learn more.<br>Visibility can be set only when a group is created; it is not editable.<br>Visibility is supported only for unified groups; it is not supported for security groups. <br><br>Returned by default.|
+|visibility|String| Specifies the group join policy and group content visibility for groups. Possible values are: `Private`, `Public`, or `Hiddenmembership`. `Hiddenmembership` can be set only for Microsoft 365 groups, when the groups are created. It can't be updated later. Other values of visibility can be updated after group creation.<br> If visibility value is not specified during group creation on Microsoft Graph, a security group is created as `Private` by default and Microsoft 365 group is `Public`. See [group visibility options](#group-visibility-options) to learn more. <br><br>Returned by default.|
### Group visibility options
v1.0 https://docs.microsoft.com/en-us/graph/resources/identityuserflow https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/identityuserflow.md
@@ -28,7 +28,7 @@ User Flows enable you to define predefined, configurable policies for sign in, s
| Property | Type | Description | |:-|:|:|
-|id|String| Read-only.|
+|id|String| The identifier of the user flow. The prefix of **B2C_1_** is added to the value that you provide.|
|userFlowType|string| Possible values are: `signUp`, `signIn`, `signUpOrSignIn`, `passwordReset`, `profileUpdate`, `resourceOwner`, `unknownFutureValue`.| |userFlowTypeVersion|Single| This is the version of the user flow type. Each user flow type can have different possible versions such as 1, 1.1 or 2. |
v1.0 https://docs.microsoft.com/en-us/graph/resources/onpremisespublishingsinglesignon https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/onpremisespublishingsinglesignon.md
@@ -1,5 +1,5 @@
Title: "kerberosSignOnSettings resource type"
+ Title: "onPremisesPublishingSingleSignOn resource type"
description: "Represents the single-sign on settings for an on-premises application published via Application Proxy." localization_priority: Normal
@@ -24,7 +24,7 @@ If you are configuring password-based single-sign this must be set using [create
| Property | Type | Description | |:-|:|:| |kerberosSignOnSettings| [kerberosSignOnSettings](kerberossignonsettings.md)| The Kerberos Constrained Delegation settings for applications that use Integrated Window Authentication. |
-|singleSignOnMode|String| The preferred single-sign on mode for the application. Possible values are: `none`, `onPremisesKerberos`, `headerBased`.|
+|singleSignOnMode|singleSignOnMode| The preferred single-sign on mode for the application. Possible values are: `none`, `onPremisesKerberos`, `aadHeaderBased`,`pingHeaderBased`. |
## JSON representation
v1.0 https://docs.microsoft.com/en-us/graph/resources/permission https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/permission.md
@@ -1,6 +1,5 @@
- Title: permission resource type description: permission resource representing a sharing permission granted for a driveItem localization_priority: Normal
@@ -73,7 +72,7 @@ Here is a JSON representation of the resource.
### Roles property values
-| Role | Details |
+| Value | Description |
|:|:-| | read | Provides the ability to read the metadata and contents of the item. | | write | Provides the ability to read and modify the metadata and contents of the item. |
v1.0 https://docs.microsoft.com/en-us/graph/resources/personOrGroupColumn https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/personOrGroupColumn.md
@@ -36,9 +36,9 @@ Here is a JSON representation of a **personOrGroupColumn** resource.
| **displayAs** | string | How to display the information about the person or group chosen. See below. | **chooseFromType** | string | Whether to allow selection of people only, or people and groups. Must be one of `peopleAndGroups` or `peopleOnly`.
-## DisplayAs values
+## displayAs values
-| DisplayAs value | Description |
+| Value | Description |
|:|:| | **account** | The raw SharePoint encoded claim string for the person or group (eg. `i:0#.f|membership|jane@contoso.com`). | | **department** | The person or group's department. |
v1.0 https://docs.microsoft.com/en-us/graph/resources/planner https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/planner.md
@@ -22,6 +22,7 @@ The **planner** resource is the entry point for the Planner object model. It ret
|:|:--|:-| |[Create plannerBucket](../api/planner-post-buckets.md) |[plannerBucket](plannerbucket.md)| Create a new **plannerBucket** by posting to the buckets collection.| |[Create plannerPlan](../api/planner-post-plans.md) |[plannerPlan](plannerplan.md)| Create a new **plannerPlan** by posting to the plans collection.|
+|[Create plannerRoster](../api/planner-post-rosters.md)|[plannerRoster](plannerroster.md)|Create a new **plannerRoster** by posting to rosters collection.|
|[Create plannerTask](../api/planner-post-tasks.md) |[plannerTask](plannertask.md)| Create a new **plannerTask** by posting to the tasks collection.| ## Properties
@@ -34,6 +35,7 @@ The **planner** resource is the entry point for the Planner object model. It ret
|:|:--|:-| |buckets|[plannerBucket](plannerbucket.md) collection| Read-only. Nullable. Returns a collection of the specified buckets| |plans|[plannerPlan](plannerplan.md) collection| Read-only. Nullable. Returns a collection of the specified plans|
+|rosters|[plannerRoster](plannerroster.md) collection|Read-only. Nullable. Returns a collection of the specified rosters|
|tasks|[plannerTask](plannertask.md) collection| Read-only. Nullable. Returns a collection of the specified tasks| ## JSON representation
v1.0 https://docs.microsoft.com/en-us/graph/resources/plannerappliedcategories https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/plannerappliedcategories.md
@@ -1,6 +1,6 @@
Title: "plannerAppliedCategories resource type"
-description: "The **AppliedCategoriesCollection** resource represents the collection of categories (or labels) that have been applied to a task. It is part of the plannerTask object."
+description: "Represents the collection of categories (or labels) that have been applied to a task, which is part of the plannerTask object."
localization_priority: Normal ms.prod: "planner"
@@ -13,15 +13,24 @@ Namespace: microsoft.graph
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
-The **AppliedCategoriesCollection** resource represents the collection of categories (or labels) that have been applied to a task. It is part of the [plannerTask](plannertask.md) object.
-There can be up to 6 categories applied to a task. Category descriptions, e.g. `category1`, `category2` etc., are part of the [plan details](plannerplandetails.md) object. This is an open type.
+Represents the collection of categories (or labels) that have been applied to a task, which is part of the [plannerTask](plannertask.md) object.
+Up to 25 categories can be applied to a task. Category descriptions, are part of the [plan details](plannerplandetails.md) object. This is an open type.
## Properties
-Properties of an Open Type can be defined by the client. In this case though, the client must provide `category1`, `category2`, `category3`, `category4`, `category5` and/or `category6` as properties with their values being the `true` boolean when the corresponding categories are applied on the task. Example is shown below. When they do not apply, properties are automatically removed by setting their values to the `false` boolean.
+Properties of an open type can be defined by the client. In this case, the client must provide **category1**, **category2**, **category3**, **category4**, **category5**, and so on up to **category25** as properties with their values being `true` when the corresponding categories are applied on the task. When they do not apply, properties are automatically removed by setting their values to `false`, as shown in the following example.
+
+```json
+{
+ "category1": true,
+ "category3": true,
+ "category5": true,
+ "category21": true
+}
+```
## JSON representation
-Here is a JSON representation of the resource
+The following is a JSON representation of the resource.
<!-- { "blockType": "resource",
@@ -37,16 +46,6 @@ Here is a JSON representation of the resource
} ```
-Example:
-
-```json
-{
- "category1": true,
- "category3": true,
- "category5": true
-}
-```
- <!-- uuid: 8fcb5dbc-d5aa-4681-8e31-b001d5168d79 2015-10-25 14:57:30 UTC --> <!--
v1.0 https://docs.microsoft.com/en-us/graph/resources/plannercategorydescriptions https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/plannercategorydescriptions.md
@@ -1,6 +1,6 @@
Title: "plannerCategoryDescriptions resource type"
-description: "The **plannerCategoryDescriptions** resource represents the descriptive labels for the categories that have been defined for a plan. It belongs to the plan details object. There can be up to 6 categories defined. "
+description: "Represents the descriptive labels for the categories that have been defined for a plan."
localization_priority: Normal ms.prod: "planner"
@@ -13,22 +13,39 @@ Namespace: microsoft.graph
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
-The **plannerCategoryDescriptions** resource represents the descriptive labels for the categories that have been defined for a plan. It belongs to the [plan details](plannerplandetails.md) object. There can be up to 6 categories defined.
-
+Represents the descriptive labels for the categories that have been defined for a plan. This resource is associated with the [plan details](plannerplandetails.md) object. Up to 25 categories can be defined.
## Properties
-| Property | Type |Description|
-|:|:--|:-|
+|Property|Type|Description|
+|:|:|:|
|category1|String|The label associated with Category 1| |category2|String|The label associated with Category 2| |category3|String|The label associated with Category 3| |category4|String|The label associated with Category 4| |category5|String|The label associated with Category 5| |category6|String|The label associated with Category 6|
+|category7|String|The label associated with Category 7|
+|category8|String|The label associated with Category 8|
+|category9|String|The label associated with Category 9|
+|category10|String|The label associated with Category 10|
+|category11|String|The label associated with Category 11|
+|category12|String|The label associated with Category 12|
+|category13|String|The label associated with Category 13|
+|category14|String|The label associated with Category 14|
+|category15|String|The label associated with Category 15|
+|category16|String|The label associated with Category 16|
+|category17|String|The label associated with Category 17|
+|category18|String|The label associated with Category 18|
+|category19|String|The label associated with Category 19|
+|category20|String|The label associated with Category 20|
+|category21|String|The label associated with Category 21|
+|category22|String|The label associated with Category 22|
+|category23|String|The label associated with Category 23|
+|category24|String|The label associated with Category 24|
+|category25|String|The label associated with Category 25|
## JSON representation
-Here is a JSON representation of the resource.
-
+The following is a JSON representation of the resource.
<!-- { "blockType": "resource", "optionalProperties": [
@@ -39,12 +56,32 @@ Here is a JSON representation of the resource.
```json {
+ "@odata.type": "#microsoft.graph.plannerCategoryDescriptions",
"category1": "String", "category2": "String", "category3": "String", "category4": "String", "category5": "String",
- "category6": "String"
+ "category6": "String",
+ "category7": "String",
+ "category8": "String",
+ "category9": "String",
+ "category10": "String",
+ "category11": "String",
+ "category12": "String",
+ "category13": "String",
+ "category14": "String",
+ "category15": "String",
+ "category16": "String",
+ "category17": "String",
+ "category18": "String",
+ "category19": "String",
+ "category20": "String",
+ "category21": "String",
+ "category22": "String",
+ "category23": "String",
+ "category24": "String",
+ "category25": "String"
} ```
v1.0 https://docs.microsoft.com/en-us/graph/resources/plannerplancontainer https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/plannerplancontainer.md
@@ -11,19 +11,22 @@ doc_type: resourcePageType
Namespace: microsoft.graph + Represents a container for a [plannerPlan](plannerPlan.md). The container is a resource that specifies authorization rules and the lifetime of the plan. This means that only the people who are authorized to work with the resource containing the plan will be able to work with the plan and the tasks within it. When the containing resource is deleted, the contained plans are also deleted. Properties of **plannerPlanContainer** cannot be changed after the plan is created. Planner currently supports the container types listed in the following table. When creating a plan, the **containerUrl** property must be specified with the path of the resource identified in the table. |Type|Description|Path to the resource| |-|--|--|
-|group| Plan is contained by a group.| https://graph.microsoft.com/v1.0/groups/&lt;id&gt;|
+|group| Plan is contained by a [group](group.md).| https://graph.microsoft.com/beta/groups/&lt;id&gt;|
+|roster| Plan is container by a [plannerRoster](plannerroster.md) | https://graph.microsoft.com/beta/planner/rosters/&lt;id&gt;|
## Properties |Property|Type|Description| |:|:|:| |containerId|String|The identifier of the resource that contains the plan.|
-|type|plannerContainerType| The type of the resource that contains the plan. See the previous table for supported types. Possible values are: `group`, `unknownFutureValue`.|
+|type|plannerContainerType| The type of the resource that contains the plan. See the previous table for supported types. Possible values are: `group`, `roster`, `unknownFutureValue`.|
|url|String|The full canonical URL of the container.| ## Relationships
v1.0 https://docs.microsoft.com/en-us/graph/resources/plannerplancontext https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/plannerplancontext.md
@@ -13,10 +13,8 @@ Namespace: microsoft.graph
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
-The **plannerPlanContext** resource represents the relationship of a [plannerPlan](plannerplan.md) to a user experience outside of Planner. Plans in Planner can be surfaced in other experiences, such as Microsoft Teams, to track work in the context of that experience.
-The experience the **plannerPlanContext** entry reresents can be identified based on the **ownerAppId** property:
-- 5e3ce6c0-2b1f-4285-8d4b-75ee78787346 : The context entry belongs to Microsoft Teams.-- 00000003-0000-0ff1-ce00-000000000000 : The context entry belongs to SharePoint.
+The **plannerPlanContext** resource represents the relationship of a [plannerPlan](plannerplan.md) to a user experience outside of Planner. Plans in Planner can be surfaced in other experiences, such as Microsoft Teams, to track work in the context of that experience. Experiences that have external links in the [plannerPlanContextDetails](plannerplancontextdetails.md) can be displayed in a user interface, allowing users to visit these experiences.
+ ## Properties | Property | Type |Description|
@@ -24,6 +22,7 @@ The experience the **plannerPlanContext** entry reresents can be identified base
|associationType|String|Nullable. An app-defined type of association between the [plannerPlan](plannerplan.md) and the app. The app can use this information to track different kinds of relationships to the same [plannerPlan](plannerplan.md).| |createdDateTime|DateTimeOffset|Read-only. The date and time when the **plannerPlanContext** was created. 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'`.| |displayNameSegments|String collection|The segments of the name of the external experience. Segments represent a hierarchical structure that allows other apps to display the relationship.|
+|isCreationContext|Boolean|Read-only. Indicates whether the plan is created from the specified context. Auto-generated based on whether the context is specified as part of plan creation.|
|ownerAppId|String|Read-only. ID of the app that created the **plannerPlanContext**.| ## JSON representation
@@ -46,6 +45,7 @@ The following is a JSON representation of the resource.
"Finance Team", "Budget Plans" ],
+ "isCreationContext": false,
"ownerAppId": "5e3ce6c0-2b1f-4285-8d4b-75ee78787346" }
v1.0 https://docs.microsoft.com/en-us/graph/resources/plannerplancontextdetails https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/plannerplancontextdetails.md
@@ -18,7 +18,9 @@ The **plannerPlanContextDetails** resource contains additional information about
## Properties | Property | Type |Description| |:|:--|:-|
-|url|String|URL of the user experience represented by the associated [plannerPlanContext](plannerplancontext.md). |
+|customLinkText|String|Nullable. Specifies the text to use in a user experience to display a link the the associated [plannerPlanContext](plannerplancontext.md). If null, applications should display the link with a custom text based on the **displayLinkType** property.|
+|displayLinkType|plannerPlanContextType|Specifies how an application should display the link to the associated **plannerPlanContext**. Applications may choose to provide customized text, description, icons, or other experiences based on the type of the link. Possible values are: `teamsTab`, `sharePointPage`, `meetingNotes`, `other`, `unknownFutureValue`.|
+|url|String|URL of the user experience represented by the associated **plannerPlanContext**. |
## JSON representation
@@ -34,7 +36,9 @@ The following is a JSON representation of the resource.
```json {
- "url": "String"
+ "url": "http://www.microsoft.com",
+ "customLinkText": "Visit Microsoft's home page.",
+ "displayLinkType": "other"
} ```
v1.0 https://docs.microsoft.com/en-us/graph/resources/plannerplandetails https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/plannerplandetails.md
@@ -26,7 +26,7 @@ The **plannerPlanDetails** resource represents the additional information about
## Properties | Property | Type |Description| |:|:--|:-|
-|categoryDescriptions|[plannerCategoryDescriptions](plannercategorydescriptions.md)|An object that specifies the descriptions of the six categories that can be associated with tasks in the plan|
+|categoryDescriptions|[plannerCategoryDescriptions](plannercategorydescriptions.md)|An object that specifies the descriptions of the 25 categories that can be associated with tasks in the plan|
|id|String| Read-only. The ID of the plan details. It is 28 characters long and case-sensitive. [Format validation](tasks-identifiers-disclaimer.md) is done on the service.| |sharedWith|[plannerUserIds](planneruserids.md)|The set of user IDs that this plan is shared with. If you are using Microsoft 365 groups, use the groups API to manage group membership to share the [group's](group.md) plan. You can also add existing members of the group to this collection, although it is not required in order for them to access the plan owned by the group. | |contextDetails|[plannerPlanContextDetailsCollection](plannerplancontextdetailscollection.md)|Read-only. A collection of additional information associated with [plannerPlanContext](plannerplancontext.md) entries that are defined for the [plannerPlan](plannerplan.md) container. |
v1.0 https://docs.microsoft.com/en-us/graph/resources/plannerroster https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/plannerroster.md
@@ -0,0 +1,63 @@
+
+ Title: "plannerRoster resource type"
+description: "The **plannerRoster** resource represents a collection of users who are collaborating on a plannerPlan."
+
+localization_priority: Normal
++
+# plannerRoster resource type
+
+Namespace: microsoft.graph
++
+The **plannerRoster** resource represents a collection of users who are collaborating on a [plannerPlan](plannerplan.md). A **plannerRoster** is a simple set of users, where everyone has the same level of permissions and they can be created by everyone, unless disabled by the tenant administrator. A **plannerRoster** can contain one plan.
+
+Deleting a **plannerRoster** will also delete the plan and all tasks in the plan. A **plannerRoster** will also be automatically deleted under the following conditions:
+
+* The **plannerRoster** doesn't contain a plan 24 hours after its creation. Membership information will be completely erased within 30 days of this deletion.
+* The **plannerRoster** doesn't have any users remaining in the membership list because the last user removed themselves. Roster, its plan and all contained tasks will be deleted within 30 days of this operation.
+* The **plannerRoster** doesn't have any users remaining in the membership list because the last user was permanently deleted. Roster, its plan and all contained tasks will be deleted immediately. Deleted users are permanently erased wihtin 30 days of their deletion; however, tenant administrators can also choose to permanently delete users without this delay.
++
+## Methods
+|Method|Return type|Description|
+|:|:|:|
+|[Create plannerRoster](../api/planner-post-rosters.md)|[plannerRoster](../resources/plannerroster.md)|Create a new [plannerRoster](../resources/plannerroster.md) object.|
+|[Get plannerRoster](../api/plannerroster-get.md)|[plannerRoster](../resources/plannerroster.md)|Read the properties and relationships of a [plannerRoster](../resources/plannerroster.md) object.|
+|[Delete plannerRoster](../api/plannerroster-delete.md)|None|Deletes a [plannerRoster](../resources/plannerroster.md) object.|
+|[List members](../api/plannerroster-list-members.md)|[plannerRosterMember](../resources/plannerrostermember.md) collection|Get the plannerRosterMember resources from the members navigation property.|
+|[Create plannerRosterMember](../api/plannerroster-post-members.md)|[plannerRosterMember](../resources/plannerrostermember.md)|Create a new plannerRosterMember object.|
+|[List plans](../api/plannerroster-list-plans.md)|[plannerPlan](../resources/plannerplan.md) collection|Get the plannerPlan resources from the plans navigation property.|
+|[List user's rosterPlans](../api/planneruser-list-rosterplans.md)|[plannerPlan](plannerplan.md) collection| Get the [plannerPlans](plannerplan.md) contained by the [plannerRosters](plannerroster.md) that the user is a member.|
+
+## Properties
+|Property|Type|Description|
+|:|:|:|
+|id|String|Read only. Identifier of the **plannerRoster**. Inherited from [entity](../resources/entity.md)|
+
+## Relationships
+|Relationship|Type|Description|
+|:|:|:|
+|members|[plannerRosterMember](../resources/plannerrostermember.md) collection|Retrieves the members of the **plannerRoster**.|
+|plans|[plannerPlan](../resources/plannerplan.md) collection|Retrieves the plans contained by the **plannerRoster**.|
+
+## JSON representation
+The following is a JSON representation of the resource.
+<!-- {
+ "blockType": "resource",
+ "keyProperty": "id",
+ "@odata.type": "microsoft.graph.plannerRoster",
+ "baseType": "microsoft.graph.entity",
+ "openType": false
+}
+-->
+``` json
+{
+ "@odata.type": "#microsoft.graph.plannerRoster",
+ "id": "String (identifier)"
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/resources/plannerrostermember https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/plannerrostermember.md
@@ -0,0 +1,59 @@
+
+ Title: "plannerRosterMember resource type"
+description: "Represents a member of a plannerRoster."
+
+localization_priority: Normal
++
+# plannerRosterMember resource type
+
+Namespace: microsoft.graph
++
+Represents a member of a [plannerRoster](plannerRoster.md).
++
+Inherits from [entity](../resources/entity.md).
+
+## Methods
+|Method|Return type|Description|
+|:|:|:|
+|[List plannerRosterMembers](../api/plannerroster-list-members.md)|[plannerRosterMember](../resources/plannerrostermember.md) collection|Get a list of the [plannerRosterMember](../resources/plannerrostermember.md) objects and their properties.|
+|[Create plannerRosterMember](../api/plannerroster-post-members.md)|[plannerRosterMember](../resources/plannerrostermember.md)|Create a new [plannerRosterMember](../resources/plannerrostermember.md) object.|
+|[Get plannerRosterMember](../api/plannerrostermember-get.md)|[plannerRosterMember](../resources/plannerrostermember.md)|Read the properties and relationships of a [plannerRosterMember](../resources/plannerrostermember.md) object.|
+|[Delete plannerRosterMember](../api/plannerrostermember-delete.md)|None|Deletes a [plannerRosterMember](../resources/plannerrostermember.md) object.|
+
+## Properties
+|Property|Type|Description|
+|:|:|:|
+|id|String|The identifier of the **plannerRosterMember**. Inherited from [entity](../resources/entity.md)|
+|roles|String collection|Additional roles associated with the **PlannerRosterMember**, which determines permissions of the member in the **plannerRoster**. Currently there are no available roles to assign, and every member has full control over the contents of the **plannerRoster**.|
+|tenantId|String|Identifier of the tenant the user belongs to. Currently only the users from the same tenant can be added to a **plannerRoster**. |
+|userId|String|Identifier of the [user](user.md).|
+
+## Relationships
+None.
+
+## JSON representation
+The following is a JSON representation of the resource.
+<!-- {
+ "blockType": "resource",
+ "keyProperty": "id",
+ "@odata.type": "microsoft.graph.plannerRosterMember",
+ "baseType": "microsoft.graph.entity",
+ "openType": false
+}
+-->
+``` json
+{
+ "@odata.type": "#microsoft.graph.plannerRosterMember",
+ "id": "String (identifier)",
+ "userId": "String",
+ "tenantId": "String",
+ "roles": []
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/resources/planneruser https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/planneruser.md
@@ -23,6 +23,7 @@ The **plannerUser** resource provides access to Planner resources for a [user](u
|[List tasks](../api/planneruser-list-tasks.md) |[plannerTask](plannertask.md) collection| Get the [plannerTasks](plannertask.md) assigned to the user.| |[List favoritePlans](../api/planneruser-list-favoriteplans.md) |[plannerPlan](plannerplan.md) collection| Get the [plannerPlans](plannerplan.md) marked as favorite by the user.| |[List recentPlans](../api/planneruser-list-recentplans.md) |[plannerPlan](plannerplan.md) collection| Get the [plannerPlans](plannerplan.md) recently viewed by the user.|
+|[List rosterPlans](../api/planneruser-list-rosterplans.md)|[plannerPlan](plannerplan.md) collection| Get the [plannerPlans](plannerplan.md) contained by the [plannerRosters](plannerroster.md) that the user is a member.|
|[Update](../api/planneruser-update.md) | [plannerUser](planneruser.md)| Update a **plannerUser** object. |
@@ -39,6 +40,7 @@ The **plannerUser** resource provides access to Planner resources for a [user](u
|tasks|[plannerTask](plannertask.md) collection| Read-only. Nullable. Returns the [plannerTasks](plannertask.md) assigned to the user.| |favoritePlans|[plannerPlan](plannerplan.md) collection| Read-only. Nullable. Returns the [plannerPlans](plannerplan.md) that the user marked as favorites.| |recentPlans|[plannerPlan](plannerplan.md) collection| Read-only. Nullable. Returns the [plannerPlans](plannerplan.md) that have been recently viewed by the user in apps that support recent plans. |
+|rosterPlans|[plannerPlan](../resources/plannerplan.md) collection|Read-only. Nullable. Returns the [plannerPlans](plannerplan.md) contained by the [plannerRosters](plannerroster.md) the user is a member.|
## JSON representation The following is a JSON representation of the resource.
v1.0 https://docs.microsoft.com/en-us/graph/resources/projectrome-notification https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/projectrome-notification.md
@@ -66,7 +66,7 @@ The following is a JSON representation of the resource.
"displayTimeToLive": 1024, "expirationDateTime": "String (timestamp)", "priority": "string",
- "fallbackPolicy": {"@odata.type": "microsoft.graph.fallbackpolicy"},
+ "fallbackPolicy": {"@odata.type": "microsoft.graph.fallbackpolicy"}
} ```
v1.0 https://docs.microsoft.com/en-us/graph/resources/smsauthenticationmethodconfiguration https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/smsauthenticationmethodconfiguration.md
@@ -0,0 +1,52 @@
+
+ Title: "smsAuthenticationMethodConfiguration resource type"
+description: "Represents a Text Message authentication methods policy."
+
+localization_priority: Normal
++
+# smsAuthenticationMethodConfiguration resource type
+Namespace: microsoft.graph
++
+Represents a Text Message authentication methods policy. Authentication methods policies define configuration settings and users or groups that are enabled to use the authentication method.
+
+## Methods
+|Method|Return type|Description|
+|:|:|:|
+|[Get](../api/smsauthenticationmethodconfiguration-get.md)|[smsAuthenticationMethodConfiguration](../resources/smsauthenticationmethodconfiguration.md)|Read the properties and relationships of a smsAuthenticationMethodConfiguration object.|
+|[Update](../api/smsauthenticationmethodconfiguration-update.md)|[smsAuthenticationMethodConfiguration](../resources/smsauthenticationmethodconfiguration.md)|Update the properties of a smsAuthenticationMethodConfiguration object.|
+|[Delete](../api/smsauthenticationmethodconfiguration-delete.md)|None|Reverts the smsAuthenticationMethodConfiguration object to its default configuration.|
+
+## Properties
+|Property|Type|Description|
+|:|:|:|
+|id|String|The authentication method policy identifier.|
+|state|authenticationMethodState|Possible values are: `enabled`, `disabled`.|
+
+## Relationships
+|Relationship|Type|Description|
+|:|:|:|
+|includeTargets|[smsAuthenticationMethodTarget](../resources/smsauthenticationmethodtarget.md) collection|A collection of users or groups who are enabled to use the authentication method.|
+
+## JSON representation
+The following is a JSON representation of the resource.
+<!-- {
+ "blockType": "resource",
+ "keyProperty": "id",
+ "@odata.type": "microsoft.graph.smsAuthenticationMethodConfiguration",
+ "baseType": "microsoft.graph.authenticationMethodConfiguration",
+ "openType": false
+}
+-->
+``` json
+{
+ "@odata.type": "#microsoft.graph.smsAuthenticationMethodConfiguration",
+ "id": "String (identifier)",
+ "state": "String"
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/resources/smsauthenticationmethodtarget https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/smsauthenticationmethodtarget.md
@@ -0,0 +1,46 @@
+
+ Title: "smsAuthenticationMethodTarget resource type"
+description: "A collection of users or groups enabled to use Text Message authentication methods policy."
+
+localization_priority: Normal
++
+# smsAuthenticationMethodTarget resource type
+Namespace: microsoft.graph
++
+A collection of users or groups enabled to use [Text Message authentication methods policy](../resources/smsAuthenticationMethodConfiguration.md) in Azure AD.
+
+## Properties
+|Property|Type|Description|
+|:|:|:|
+|id|String|Object ID of an Azure AD user or group.|
+|isRegistrationRequired|Boolean|Determines whether the user is enforced to register the authentication method. **Not supported**.|
+|isUsableForSignIn|Boolean|Determines if the users or groups can use this authentication method to sign in to Azure AD. The value is always `true`.|
+|targetType|authenticationMethodTargetType| Possible values are: `user`, `group`.|
+
+## Relationships
+None.
+
+## JSON representation
+The following is a JSON representation of the resource.
+<!-- {
+ "blockType": "resource",
+ "keyProperty": "id",
+ "@odata.type": "microsoft.graph.smsAuthenticationMethodTarget",
+ "baseType": "microsoft.graph.authenticationMethodTarget",
+ "openType": false
+}
+-->
+``` json
+{
+ "@odata.type": "#microsoft.graph.smsAuthenticationMethodTarget",
+ "targetType": "String",
+ "id": "String (identifier)",
+ "isRegistrationRequired": "Boolean",
+ "isUsableForSignIn": "Boolean"
+}
+```
v1.0 https://docs.microsoft.com/en-us/graph/resources/termstore-localizedname https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/termstore-localizedname.md
@@ -2,7 +2,6 @@
Title: "localizedName resource type" description: "Represents the localized name used in the term store, which identifies the name in the localized language." - localization_priority: Normal ms.prod: "sharepoint-taxonomy" doc_type: resourcePageType
v1.0 https://docs.microsoft.com/en-us/graph/api/application-post-calls https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/application-post-calls.md
@@ -896,6 +896,309 @@ Content-Type: application/json
} ```
+### Example 7: Create peer-to-peer PSTN call with service hosted media
+
+> **Note:** This call requires the Calls.Initiate.All permission.
+
+This call requires an application instance with a PSTN number assigned.
+
+#### Step 1: Create application instance
+Using tenant admin credentials, call the following cmdlets on the tenant remote PowerShell to create the application instance. For more information, see [New-CsOnlineApplicationInstance](/powershell/module/skype/new-csonlineapplicationinstance?view=skype-ps&preserve-view=true) and [Sync-CsOnlineApplicationInstance](/powershell/module/skype/sync-csonlineapplicationinstance?view=skype-ps&preserve-view=true).
+```
+PS C:\> New-CsOnlineApplicationInstance -UserPrincipalName <UPN> -DisplayName <DisplayName> -ApplicationId <AppId>
+PS C:\> Sync-CsOnlineApplicationInstance -ObjectId <ObjectId>
+```
+#### Step 2: Assign Microsoft 365 licenses
+1. Use tenant admin credentials to sign in to https://admin.microsoft.com/ and go to the **Users -> Active users** tab.
+2. Select the application instance, assign **Microsoft 365 Domestic and International Calling Plan** and **Microsoft 365 Phone System - Virtual User** licenses, and click **Save changes**. If the required licenses are not available in the tenant, you can get them from the **Billing -> Purchase services** tab.
+#### Step 3: Acquire PSTN number
+1. Use tenant admin credentials to sign in to https://admin.teams.microsoft.com/ and click the **Legacy portal** tab on the left panel.
+2. In the new page, go to the **voice -> phone numbers** tab.
+3. Click the **+** button, select **New Service Numbers**, and go to the **Add new service numbers** page.
+4. Select **Country/Region**, **State/Region**, **City**, input **Quantity**, and click **add** to search. Click **acquire numbers**. The newly acquired number will show on the **phone numbers** tab.
+#### Step 4: Assign PSTN number to application instance
+With tenant admin credentials, call the following cmdlets on the tenant remote PowerShell to assign the PSTN number to the application instance. For more information, see [Set-CsOnlineVoiceApplicationInstance](https://docs.microsoft.com/powershell/module/skype/set-csonlinevoiceapplicationinstance?view=skype-ps&preserve-view=true) and [Sync-CsOnlineApplicationInstance](https://docs.microsoft.com/powershell/module/skype/sync-csonlineapplicationinstance?view=skype-ps&preserve-view=true).
+```
+PS C:\> Set-CsOnlineVoiceApplicationInstance -Identity <UPN> -TelephoneNumber <TelephoneNumber>
+PS C:\> Sync-CsOnlineApplicationInstance -ObjectId <ObjectId>
+```
+
+#### Request
+The following example shows the request to make a peer-to-peer call between the bot and a PSTN number. In this example, the media is hosted by the service. The values of authorization token, callback URL, application ID, application name, user ID, user name, and tenant ID must be replaced with actual values to make the example work.
+
+<!-- {
+ "blockType": "request",
+ "name": "create-call-service-hosted-media",
+ "@odata.type": "microsoft.graph.call"
+}-->
+```http
+POST https://graph.microsoft.com/v1.0/communications/calls
+Content-Type: application/json
+
+{
+ "@odata.type": "#microsoft.graph.call",
+ "callbackUri": "https://bot.contoso.com/callback",
+ "source": {
+ "@odata.type": "#microsoft.graph.participantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "applicationInstance": {
+ "@odata.type": "#microsoft.graph.identity",
+ "displayName": "Calling Bot",
+ "id": "3d913abb-aec0-4964-8fa6-3c6850c4f278"
+ },
+ },
+ "countryCode": null,
+ "endpointType": null,
+ "region": null,
+ "languageId": null
+ },
+ "targets": [
+ {
+ "@odata.type": "#microsoft.graph.invitationParticipantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "phone": {
+ "@odata.type": "#microsoft.graph.identity",
+ "id": "+12345678901"
+ }
+ }
+ }
+ ],
+ "requestedModalities": [
+ "audio"
+ ],
+ "mediaConfig": {
+ "@odata.type": "#microsoft.graph.serviceHostedMediaConfig"
+ }
+}
+```
+
+#### Response
+
+> **Note:** The response object shown here might be shortened for readability.
+
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.call"
+} -->
+```http
+HTTP/1.1 201 Created
+Location: https://graph.microsoft.com/v1.0/communications/calls/2e1a0b00-2db4-4022-9570-243709c565ab
+Content-Type: application/json
+
+{
+ "@odata.type": "#microsoft.graph.call",
+ "state": "establishing",
+ "direction": "outgoing",
+ "callbackUri": "https://bot.contoso.com/callback",
+ "callChainId": "d8217646-3110-40b1-bae6-e9ac6c3a9f74",
+ "callRoutes": [],
+ "source": {
+ "@odata.type": "#microsoft.graph.participantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "applicationInstance": {
+ "@odata.type": "#microsoft.graph.identity",
+ "displayName": "Calling Bot",
+ "id": "3d913abb-aec0-4964-8fa6-3c6850c4f278"
+ },
+ },
+ "countryCode": null,
+ "endpointType": null,
+ "region": null,
+ "languageId": null
+ },
+ "targets": [
+ {
+ "@odata.type": "#microsoft.graph.invitationParticipantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "phone": {
+ "@odata.type": "#microsoft.graph.identity",
+ "id": "+12345678901"
+ }
+ },
+ "endpointType": null,
+ "region": null,
+ "replacesCallId": null,
+ "languageId": null
+ }
+ ],
+ "requestedModalities": [
+ "audio"
+ ],
+ "activeModalities": [],
+ "mediaConfig": {
+ "@odata.type": "#microsoft.graph.serviceHostedMediaConfig",
+ "preFetchMedia": [
+ {
+ "uri": "https://cdn.contoso.com/beep.wav",
+ "resourceId": "f8971b04-b53e-418c-9222-c82ce681a582"
+ },
+ {
+ "uri": "https://cdn.contoso.com/cool.wav",
+ "resourceId": "86dc814b-c172-4428-9112-60f8ecae1edb"
+ }
+ ],
+ },
+ "routingPolicies": [],
+ "tenantId": "aa67bd4c-8475-432d-bd41-39f255720e0a",
+ "myParticipantId": "499ff390-7a72-40e8-83a0-8fac6295ae7e",
+ "id": "2e1a0b00-2db4-4022-9570-243709c565ab",
+ "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#app/calls/$entity",
+ "subject": null,
+ "terminationReason": null,
+ "ringingTimeoutInSeconds": null,
+ "mediaState": null,
+ "resultInfo": null,
+ "answeredBy": null,
+ "chatInfo": null,
+ "meetingInfo": null,
+ "transcription": null,
+ "meetingCapability": null,
+ "toneInfo": null
+}
+```
+
+### Example 8: Create peer-to-peer PSTN call with application hosted media
+
+> **Note**: This example requires Calls.Initiate.All and Calls.AccessMedia.All permissions.
+
+This call needs application instance with PSTN number assigned, as described in Example 7.
+
+#### Request
+The following example shows a request to make a peer-to-peer call between the bot and a PSTN number. In this example, the media is hosted locally by the application. Replace the values for authorization token, callback URL, application ID, application name, user ID, user name, and tenant ID to make the example work.
+
+<!-- {
+ "blockType": "request",
+ "name": "create-call-service-hosted-media",
+ "@odata.type": "microsoft.graph.call"
+}-->
+```http
+POST https://graph.microsoft.com/v1.0/communications/calls
+Content-Type: application/json
+
+{
+ "@odata.type": "#microsoft.graph.call",
+ "callbackUri": "https://bot.contoso.com/callback",
+ "source": {
+ "@odata.type": "#microsoft.graph.participantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "applicationInstance": {
+ "@odata.type": "#microsoft.graph.identity",
+ "displayName": "Calling Bot",
+ "id": "3d913abb-aec0-4964-8fa6-3c6850c4f278"
+ },
+ },
+ "countryCode": null,
+ "endpointType": null,
+ "region": null,
+ "languageId": null
+ },
+ "targets": [
+ {
+ "@odata.type": "#microsoft.graph.invitationParticipantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "phone": {
+ "@odata.type": "#microsoft.graph.identity",
+ "id": "+12345678901"
+ }
+ }
+ }
+ ],
+ "requestedModalities": [
+ "audio"
+ ],
+ "mediaConfig": {
+ "@odata.type": "#microsoft.graph.appHostedMediaConfig",
+ "blob": "<Media Session Configuration>"
+ }
+}
+```
+
+#### Response
+
+> **Note:** The response object shown here might be shortened for readability.
+
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.call"
+} -->
+```http
+HTTP/1.1 201 Created
+Location: https://graph.microsoft.com/v1.0/communications/calls/2e1a0b00-2db4-4022-9570-243709c565ab
+Content-Type: application/json
+
+{
+ "@odata.type": "#microsoft.graph.call",
+ "state": "establishing",
+ "direction": "outgoing",
+ "callbackUri": "https://bot.contoso.com/callback",
+ "callChainId": "d8217646-3110-40b1-bae6-e9ac6c3a9f74",
+ "callRoutes": [],
+ "source": {
+ "@odata.type": "#microsoft.graph.participantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "applicationInstance": {
+ "@odata.type": "#microsoft.graph.identity",
+ "displayName": "Calling Bot",
+ "id": "3d913abb-aec0-4964-8fa6-3c6850c4f278"
+ },
+ },
+ "countryCode": null,
+ "endpointType": null,
+ "region": null,
+ "languageId": null
+ },
+ "targets": [
+ {
+ "@odata.type": "#microsoft.graph.invitationParticipantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "phone": {
+ "@odata.type": "#microsoft.graph.identity",
+ "id": "+12345678901"
+ }
+ },
+ "endpointType": null,
+ "region": null,
+ "replacesCallId": null,
+ "languageId": null
+ }
+ ],
+ "requestedModalities": [
+ "audio"
+ ],
+ "activeModalities": [],
+ "mediaConfig": {
+ "@odata.type": "#microsoft.graph.appHostedMediaConfig",
+ "blob": "<Media Session Configuration>",
+ },
+ "routingPolicies": [],
+ "tenantId": "aa67bd4c-8475-432d-bd41-39f255720e0a",
+ "myParticipantId": "499ff390-7a72-40e8-83a0-8fac6295ae7e",
+ "id": "2e1a0b00-2db4-4022-9570-243709c565ab",
+ "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#app/calls/$entity",
+ "subject": null,
+ "terminationReason": null,
+ "ringingTimeoutInSeconds": null,
+ "mediaState": null,
+ "resultInfo": null,
+ "answeredBy": null,
+ "chatInfo": null,
+ "meetingInfo": null,
+ "transcription": null,
+ "meetingCapability": null,
+ "toneInfo": null
+}
+```
+ <!-- uuid: 8fcb5dbc-d5aa-4681-8e31-b001d5168d79 2015-10-25 14:57:30 UTC --> <!--
v1.0 https://docs.microsoft.com/en-us/graph/api/attachment-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/attachment-get.md
@@ -15,24 +15,24 @@ Read the properties, relationships, or raw contents of an attachment that is att
An attachment can be one of the following types:
-* A file. Programmatically, this is a [fileAttachment](../resources/fileattachment.md) resource.
-* An Outlook item (contact, event or message). Programmatically, an item attachment is an [itemAttachment](../resources/itemattachment.md) resource. You can use `$expand` to further get the properties of that item. See an [example](#request-2) below.
-* A link to a file stored in the cloud. Programmatically, this is a [referenceAttachment](../resources/referenceattachment.md) resource.
+* A file. Programmatically, this is a [fileAttachment](../resources/fileattachment.md) resource. See [example 1](#example-1-get-the-properties-of-a-file-attachment).
+* An Outlook item (contact, event or message). Programmatically, an item attachment is an [itemAttachment](../resources/itemattachment.md) resource. You can use `$expand` to further get the properties of that item, including any nested attachments up to 30 levels. See [example 3](#example-3-expand-and-get-the-properties-of-the-item-attached-to-a-message) and [example 4](#example-4-expand-and-get-the-properties-of-an-item-attached-to-a-message-including-any-attachment-to-the-item).
+* A link to a file stored in the cloud. Programmatically, this is a [referenceAttachment](../resources/referenceattachment.md) resource. See [example 5](#example-5-get-the-properties-of-a-reference-attachment).
All these types of attachments are derived from the [attachment](../resources/attachment.md) resource. ### Get the raw contents of a file or item attachment You can append the path segment `/$value` to get the raw contents of a file or item attachment.
-For a file attachment, the content type is based on its original content type. See an [example](#example-5-get-the-raw-contents-of-a-file-attachment-on-a-message) below.
+For a file attachment, the content type is based on its original content type. See [example 6](#example-6-get-the-raw-contents-of-a-file-attachment-on-a-message).
For an item attachment that is a [contact](../resources/contact.md), [event](../resources/event.md), or [message](../resources/message.md), the raw contents returned is in MIME format. | Item attachment type | Raw contents returned | |:--|:-|
-| **contact** | [vCard](http://www.faqs.org/rfcs/rfc2426.html) MIME format. See [example](#example-6-get-the-mime-raw-contents-of-a-contact-attachment-on-a-message). |
-| **event** | iCal MIME format. See [example](#example-7-get-the-mime-raw-contents-of-an-event-attachment-on-a-message). |
-| **message** | MIME format. See [example](#example-8-get-the-mime-raw-contents-of-a-meeting-invitation-item-attachment-on-a-message). |
+| **contact** | [vCard](http://www.faqs.org/rfcs/rfc2426.html) MIME format. See [example](#example-7-get-the-mime-raw-contents-of-a-contact-attachment-on-a-message). |
+| **event** | iCal MIME format. See [example](#example-8-get-the-mime-raw-contents-of-an-event-attachment-on-a-message). |
+| **message** | MIME format. See [example](#example-9-get-the-mime-raw-contents-of-a-meeting-invitation-item-attachment-on-a-message). |
Attempting to get the `$value` of a reference attachment returns HTTP 405.
@@ -142,7 +142,10 @@ GET /groups/{id}/threads/{id}/posts/{id}/attachments/{id}/$value
GET /groups/{id}/conversations/{id}/threads/{id}/posts/{id}/attachments/{id}/$value ``` ## Optional query parameters
-This method supports the [OData Query Parameters](/graph/query-parameters) to help customize the response.
+This method supports some of the [OData Query Parameters](/graph/query-parameters) to help customize the response.
+
+Use `$expand` to get the properties of an item attachment (contact, event, or message). See [example 3](#example-3-expand-and-get-the-properties-of-the-item-attached-to-a-message) and [example 4](#example-4-expand-and-get-the-properties-of-an-item-attached-to-a-message-including-any-attachment-to-the-item).
+ ## Request headers | Name | Type | Description| |:--|:|:-|
@@ -344,6 +347,7 @@ Content-type: application/json
"hasAttachments":false, "internetMessageId":"<BY2PR15MB05189A084C01F466709E414F9CA40@BY2PR15MB0518.namprd15.prod.outlook.com>", "subject":"Reminder - please bring laptop",
+ "bodyPreview": "PFA\r\n\r\nThanks,\r\nRob",
"importance":"normal", "conversationId":"AAQkADA1MzMyOGI4LTlkZDctNDkzYy05M2RiLTdiN2E1NDE3MTRkOQAQAMG_NSCMBqdKrLa2EmR-lO0=", "conversationIndex":"AQHTAbcSwb41IIwGp0qstrYSZH+U7Q==",
@@ -352,6 +356,7 @@ Content-type: application/json
"isRead":false, "isDraft":false, "webLink":"https://outlook.office365.com/owa/?ItemID=AAMkADA1M3MTRkOQAAAA%3D%3D&exvsurl=1&viewmodel=ReadMessageItem",
+ "internetMessageHeaders": [ ],
"body":{ "contentType":"html", "content":"<html><head>\r\n</head>\r\n<body>\r\n</body>\r\n</html>"
@@ -383,14 +388,117 @@ Content-type: application/json
"address":"AdeleV@contoso.onmicrosoft.com" } }
- ]
+ ],
+ "flag":{
+ "flagStatus":"notFlagged"
+ }
} } ```
+### Example 4: Expand and get the properties of an item attached to a message, including any attachment to the item
+#### Request
+The next example uses the same request as in [example 3](#example-3-expand-and-get-the-properties-of-the-item-attached-to-a-message) to get the properties of an item attachment on a message by using `$expand`. In this case, because the attached item also has a file attachment, the response includes the properties of the file attachment as well.
+
+<!-- {
+ "blockType": "request",
+ "sampleKeys": ["AAMkADA1M-zAAA=", "AAMkADA1M-CJKtzmnlcqVgqI="],
+ "name": "get_and_expand_nested_item_attachment"
+}-->
+```msgraph-interactive
+GET https://graph.microsoft.com/v1.0/me/messages/AAMkADA1M-zAAA=/attachments/AAMkADA1M-CJKtzmnlcqVgqI=/?$expand=microsoft.graph.itemattachment/item
+```
+#### Response
+<!-- {
+ "blockType": "response",
+ "name": "get_and_expand_nested_item_attachment",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.itemAttachment"
+} -->
+
+```http
+HTTP/1.1 200 OK
+Content-type: application/json
+
+{
+ "@odata.context": "https://graph.microsoft.com/beta/$metadata#users('d1a2fae9-db66-4cc9-8133-2184c77af1b8')/messages('AAMkADA1M-zAAA%3D')/attachments(microsoft.graph.itemAttachment/item())/$entity",
+ "@odata.type": "#microsoft.graph.itemAttachment",
+ "id": "AAMkADA1MCJKtzmnlcqVgqI=",
+ "lastModifiedDateTime": "2021-01-06T13:28:11Z",
+ "name": "Nested Message With Attachment",
+ "contentType": null,
+ "size": 465916,
+ "isInline": false,
+ "item@odata.context": "https://graph.microsoft.com/beta/$metadata#users('d1a2fae9-db66-4cc9-8133-2184c77af1b8')/messages('AAMkADA1M-zAAA%3D')/attachments('AAMkADA1M-CJKtzmnlcqVgqI%3D')/microsoft.graph.itemAttachment/item/$entity",
+ "item": {
+ "@odata.type": "#microsoft.graph.message",
+ "id": "",
+ "createdDateTime": "2021-01-06T13:28:30Z",
+ "lastModifiedDateTime": "2021-01-06T13:27:40Z",
+ "receivedDateTime": "2021-01-06T13:27:25Z",
+ "sentDateTime": "2021-01-06T13:27:04Z",
+ "hasAttachments": true,
+ "internetMessageId": "<BY2PR15MB05189A084C01F466709E414F9CA40@BY2PR15MB0518.namprd15.prod.outlook.com>",
+ "subject": "Nested Message With Attachment",
+ "bodyPreview": "PFAThanks,Adele",
+ "importance": "normal",
+ "conversationId": "AAQkADg3NTY5MDg4LWMzYmQtNDQzNi05OTgwLWQyZjg2YWQwMTNkZAAQAO6hkp84oMdGm6ZBsSH72sE=",
+ "conversationIndex": "AQHW5C+U7qGSnzigx0abpkGxIfvawQ==",
+ "isDeliveryReceiptRequested": false,
+ "isReadReceiptRequested": false,
+ "isRead": true,
+ "isDraft": false,
+ "webLink": "https://outlook.office365.com/owa/?ItemID=AAMkADA1M3MTRkOQAAAA%3D%3D&exvsurl=1&viewmodel=ItemAttachment",
+ "internetMessageHeaders": [],
+ "body": {
+ "contentType": "html",
+ "content": "<html><head>\r\n</head>\r\n<body>\r\n</body>\r\n</html>"
+ },
+ "sender": {
+ "emailAddress": {
+ "name": "Adele Vance",
+ "address": "Adele.Vance@microsoft.com"
+ }
+ },
+ "from": {
+ "emailAddress": {
+ "name": "Adele Vance",
+ "address": "Adele.Vance@microsoft.com"
+ }
+ },
+ "toRecipients": [
+ {
+ "emailAddress": {
+ "name": "Adele Vance",
+ "address": "Adele.Vance@microsoft.com"
+ }
+ }
+ ],
+ "flag": {
+ "flagStatus": "notFlagged"
+ },
+ "attachments@odata.context": "https://graph.microsoft.com/beta/$metadata#users('d1a2fae9-db66-4cc9-8133-2184c77af1b8')/messages('AAMkADA1M-zAAA%3D')/attachments('AAMkADA1M-CJKtzmnlcqVgqI%3D')/microsoft.graph.itemAttachment/microsoft.graph.itemAttachment/item/microsoft.graph.message/microsoft.graph.message/microsoft.graph.message/microsoft.graph.message/microsoft.graph.message/microsoft.graph.message/microsoft.graph.message/attachments",
+ "attachments": [
+ {
+ "@odata.type": "#microsoft.graph.fileAttachment",
+ "@odata.mediaContentType": "application/pdf",
+ "id": "AAMkADg3NTYULmbsDYNg==",
+ "lastModifiedDateTime": "2021-01-21T14:56:18Z",
+ "name": "Info.pdf",
+ "contentType": "application/pdf",
+ "size": 417351,
+ "isInline": false,
+ "contentId": null,
+ "contentLocation": null,
+ "contentBytes": "JVBERi0xLjUNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFuZyhlbi1JTikgL1N0cnVjdFRyZWVSb29"
+ }
+ ]
+ }
+}
+```
-### Example 4: Get the properties of a reference attachment
+### Example 5: Get the properties of a reference attachment
#### Request Here is an example of the request to get a reference attachment on a message.
@@ -446,7 +554,7 @@ Content-type: application/json
} ```
-### Example 5: Get the raw contents of a file attachment on a message
+### Example 6: Get the raw contents of a file attachment on a message
#### Request
@@ -478,7 +586,7 @@ HTTP/1.1 200 OK
```
-### Example 6: Get the MIME raw contents of a contact attachment on a message
+### Example 7: Get the MIME raw contents of a contact attachment on a message
#### Request
@@ -527,7 +635,7 @@ END:VCARD
```
-### Example 7: Get the MIME raw contents of an event attachment on a message
+### Example 8: Get the MIME raw contents of an event attachment on a message
#### Request
@@ -607,7 +715,7 @@ END:VCALENDAR
```
-### Example 8: Get the MIME raw contents of a meeting invitation item attachment on a message
+### Example 9: Get the MIME raw contents of a meeting invitation item attachment on a message
#### Request
v1.0 https://docs.microsoft.com/en-us/graph/api/call-redirect https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/call-redirect.md
@@ -395,6 +395,201 @@ Content-Type: application/json
} ```
+### Example 3: Forward a call to a PSTN number
+
+This call requires an application instance with a PSTN number assigned.
+
+#### Step 1: Create application instance
+Using tenant admin credentials, call the following cmdlets on the tenant remote PowerShell to create the application instance. For more information, see [New-CsOnlineApplicationInstance](/powershell/module/skype/new-csonlineapplicationinstance?view=skype-ps&preserve-view=true) and [Sync-CsOnlineApplicationInstance](/powershell/module/skype/sync-csonlineapplicationinstance?view=skype-ps&preserve-view=true).
+```
+PS C:\> New-CsOnlineApplicationInstance -UserPrincipalName <UPN> -DisplayName <DisplayName> -ApplicationId <AppId>
+PS C:\> Sync-CsOnlineApplicationInstance -ObjectId <ObjectId>
+```
+#### Step 2: Assign Microsoft 365 licenses
+1. Use tenant admin credentials to sign in to https://admin.microsoft.com/ and go to the **Users -> Active users** tab.
+2. Select the application instance, assign **Microsoft 365 Domestic and International Calling Plan** and **Microsoft 365 Phone System - Virtual User** licenses, and click **Save changes**. If the required licenses are not available in the tenant, you can get them from the **Billing -> Purchase services** tab.
+#### Step 3: Acquire PSTN number
+1. Use tenant admin credentials to sign in to https://admin.teams.microsoft.com/ and click the **Legacy portal** tab on the left panel.
+2. In the new page, go to the **voice -> phone numbers** tab.
+3. Click the **+** button, select **New Service Numbers**, and go to the **Add new service numbers** page.
+4. Select **Country/Region**, **State/Region**, **City**, input **Quantity**, and click **add** to search. Click **acquire numbers**. The newly acquired number will show on the **phone numbers** tab.
+#### Step 4: Assign PSTN number to application instance
+With tenant admin credentials, call the following cmdlets on the tenant remote PowerShell to assign the PSTN number to the application instance. For more information, see [Set-CsOnlineVoiceApplicationInstance](https://docs.microsoft.com/powershell/module/skype/set-csonlinevoiceapplicationinstance?view=skype-ps&preserve-view=true) and [Sync-CsOnlineApplicationInstance](https://docs.microsoft.com/powershell/module/skype/sync-csonlineapplicationinstance?view=skype-ps&preserve-view=true).
+```
+PS C:\> Set-CsOnlineVoiceApplicationInstance -Identity <UPN> -TelephoneNumber <TelephoneNumber>
+PS C:\> Sync-CsOnlineApplicationInstance -ObjectId <ObjectId>
+```
+
+#### Notification - incoming
+<!-- {
+ "blockType": "example",
+ "@odata.type": "microsoft.graph.commsNotifications"
+}-->
+``` json
+{
+ "@odata.type": "#microsoft.graph.commsNotifications",
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.commsNotification",
+ "changeType": "created",
+ "resourceUrl": "/communications/calls/491f0b00-ffff-4bc9-a43e-b226498ec22a",
+ "resourceData": {
+ "@odata.type": "#microsoft.graph.call",
+ "state": "incoming",
+ "direction": "incoming",
+ "callbackUri": "https://bot.contoso.com/api/calls/24701998-1a73-4d42-8085-bf46ed0ae039",
+ "source": {
+ "@odata.type": "#microsoft.graph.participantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "user": {
+ "@odata.type": "#microsoft.graph.identity",
+ "id": "8d1e6ab6-26c5-4e22-a1bc-06ea7343958e",
+ "tenantId": "632899f8-2ea1-4604-8413-27bd2892079f"
+ }
+ },
+ "region": "amer",
+ },
+ "targets": [
+ {
+ "@odata.type": "#microsoft.graph.invitationParticipantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "applicationInstance": {
+ "@odata.type": "#microsoft.graph.identity",
+ "displayName": "PstnAppInstance",
+ "id": "7629bdce-046c-4903-86b4-a8f718277e1a",
+ "tenantId": "632899f8-2ea1-4604-8413-27bd2892079f"
+ }
+ },
+ "endpointType": "default",
+ "id": "c339cede-4bd6-4f20-ab9f-3a13e65f6d00",
+ "region": "amer",
+ "languageId": null
+ }
+ ],
+ "tenantId": "632899f8-2ea1-4604-8413-27bd2892079f",
+ "myParticipantId": "c339cede-4bd6-4f20-ab9f-3a13e65f6d00",
+ "id": "491f0b00-ffff-4bc9-a43e-b226498ec22a"
+ }
+ }
+ ]
+}
+```
+
+#### Request
+
+<!-- {
+ "blockType": "request",
+ "name": "call-redirect"
+} -->
+``` http
+POST https://graph.microsoft.com/v1.0/communications/calls/491f0b00-ffff-4bc9-a43e-b226498ec22a/redirect
+Content-Type: application/json
+
+{
+ "targets": [
+ {
+ "@odata.type": "#microsoft.graph.invitationParticipantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "phone": {
+ "@odata.type": "#microsoft.graph.identity",
+ "id": "+12345678901"
+ }
+ }
+ }
+ ],
+ "callbackUri": "https://bot.contoso.com/api/calls/24701998-1a73-4d42-8085-bf46ed0ae039"
+}
+```
+#### Response
+
+<!-- {
+ "blockType": "response",
+ "@odata.type": "microsoft.graph.None"
+} -->
+```http
+HTTP/1.1 202 Accepted
+```
+#### Notification - terminated
+
+<!-- {
+ "blockType": "example",
+ "name": "call-redirect"
+} -->
+``` http
+POST https://bot.contoso.com/api/calls/24701998-1a73-4d42-8085-bf46ed0ae039
+Content-Type: application/json
+```
+
+<!-- {
+ "blockType": "example",
+ "@odata.type": "microsoft.graph.commsNotifications"
+} -->
+``` json
+{
+ "@odata.type": "#microsoft.graph.commsNotifications",
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.commsNotification",
+ "changeType": "deleted",
+ "resourceUrl": "/communications/calls/491f0b00-ffff-4bc9-a43e-b226498ec22a",
+ "resourceData": {
+ "@odata.type": "#microsoft.graph.call",
+ "state": "terminated",
+ "direction": "incoming",
+ "callbackUri": "https://bot.contoso.com/api/calls/24701998-1a73-4d42-8085-bf46ed0ae039",
+ "source": {
+ "@odata.type": "#microsoft.graph.participantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "user": {
+ "@odata.type": "#microsoft.graph.identity",
+ "id": "8d1e6ab6-26c5-4e22-a1bc-06ea7343958e",
+ "tenantId": "632899f8-2ea1-4604-8413-27bd2892079f"
+ }
+ },
+ "region": "amer",
+ },
+ "targets": [
+ {
+ "@odata.type": "#microsoft.graph.invitationParticipantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "applicationInstance": {
+ "@odata.type": "#microsoft.graph.identity",
+ "displayName": "PstnAppInstance",
+ "id": "7629bdce-046c-4903-86b4-a8f718277e1a",
+ "tenantId": "632899f8-2ea1-4604-8413-27bd2892079f"
+ }
+ },
+ "endpointType": "default",
+ "id": "c339cede-4bd6-4f20-ab9f-3a13e65f6d00",
+ "region": "amer",
+ "languageId": null
+ }
+ ],
+ "answeredBy": {
+ "@odata.type": "#microsoft.graph.participantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "encrypted": {
+ "@odata.type": "#microsoft.graph.identity",
+ "id": "1xt4uextl99sdzwdxuvdxrvgrv8gehcq7jdgf9yhzeto"
+ }
+ },
+ "endpointType": "default"
+ },
+ "tenantId": "632899f8-2ea1-4604-8413-27bd2892079f",
+ "myParticipantId": "c339cede-4bd6-4f20-ab9f-3a13e65f6d00",
+ "id": "491f0b00-ffff-4bc9-a43e-b226498ec22a"
+ }
+ }
+ ]
+}
+```
+ <!-- uuid: 8fcb5dbc-d5aa-4681-8e31-b001d5168d79 2015-10-25 14:57:30 UTC --> <!--
v1.0 https://docs.microsoft.com/en-us/graph/api/call-transfer https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/call-transfer.md
@@ -13,7 +13,7 @@ Namespace: microsoft.graph
Transfer an active peer-to-peer call.
-> **Note:** This is only supported if both the transferee and transfer target are Microsoft Teams users that belong to the same tenant. Transfer to PSTN number is not supported. To learn more about transferor, transferee and transfer target, see [RFC 5589](https://tools.ietf.org/html/rfc5589#section-2).
+> **Note:** This is only supported if both the transferee and transfer target are Microsoft Teams users that belong to the same tenant. Transfer to PSTN number is supported only for application instance. To learn more about transferor, transferee and transfer target, see [RFC 5589](https://tools.ietf.org/html/rfc5589#section-2).
A consultative transfer means that the transferor can inform the person they want to transfer the call to (the transferee), before the transfer is made. This is opposed to transfering the call directly.
@@ -412,6 +412,370 @@ Content-Type: application/json
} ```
+### Example 3: Call transfer to PSTN number
+
+This call requires an application instance with a PSTN number assigned.
+
+#### Step 1: Create application instance
+Using tenant admin credentials, call the following cmdlets on the tenant remote PowerShell to create the application instance. For more information, see [New-CsOnlineApplicationInstance](/powershell/module/skype/new-csonlineapplicationinstance?view=skype-ps&preserve-view=true) and [Sync-CsOnlineApplicationInstance](/powershell/module/skype/sync-csonlineapplicationinstance?view=skype-ps&preserve-view=true).
+```
+PS C:\> New-CsOnlineApplicationInstance -UserPrincipalName <UPN> -DisplayName <DisplayName> -ApplicationId <AppId>
+PS C:\> Sync-CsOnlineApplicationInstance -ObjectId <ObjectId>
+```
+#### Step 2: Assign Microsoft 365 licenses
+1. Use tenant admin credentials to sign in to https://admin.microsoft.com/ and go to the **Users -> Active users** tab.
+2. Select the application instance, assign **Microsoft 365 Domestic and International Calling Plan** and **Microsoft 365 Phone System - Virtual User** licenses, and click **Save changes**. If the required licenses are not available in the tenant, you can get them from the **Billing -> Purchase services** tab.
+#### Step 3: Acquire PSTN number
+1. Use tenant admin credentials to sign in to https://admin.teams.microsoft.com/ and click the **Legacy portal** tab on the left panel.
+2. In the new page, go to the **voice -> phone numbers** tab.
+3. Click the **+** button, select **New Service Numbers**, and go to the **Add new service numbers** page.
+4. Select **Country/Region**, **State/Region**, **City**, input **Quantity**, and click **add** to search. Click **acquire numbers**. The newly acquired number will show on the **phone numbers** tab.
+#### Step 4: Assign PSTN number to application instance
+With tenant admin credentials, call the following cmdlets on the tenant remote PowerShell to assign the PSTN number to the application instance. For more information, see [Set-CsOnlineVoiceApplicationInstance](https://docs.microsoft.com/powershell/module/skype/set-csonlinevoiceapplicationinstance?view=skype-ps&preserve-view=true) and [Sync-CsOnlineApplicationInstance](https://docs.microsoft.com/powershell/module/skype/sync-csonlineapplicationinstance?view=skype-ps&preserve-view=true).
+```
+PS C:\> Set-CsOnlineVoiceApplicationInstance -Identity <UPN> -TelephoneNumber <TelephoneNumber>
+PS C:\> Sync-CsOnlineApplicationInstance -ObjectId <ObjectId>
+```
+
+#### Request
+The following example shows the request.
+
+<!-- {
+ "blockType": "request",
+ "name": "call-transfer"
+}-->
+```http
+POST https://graph.microsoft.com/v1.0/communications/calls/{id}/transfer
+Content-Type: application/json
+Content-Length: 430
+
+{
+ "transferTarget": {
+ "endpointType": "default",
+ "identity": {
+ "phone": {
+ "@odata.type": "#microsoft.graph.identity",
+ "id": "+12345678901"
+ }
+ },
+ "languageId": "languageId-value",
+ "region": "region-value"
+ },
+ "clientContext": "9e90d1c1-f61e-43e7-9f75-d420159aae08"
+}
+```
+
+#### Response
+
+> **Note:** The response object shown here might be shortened for readability. All the properties will be returned from an actual call.
+
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.None"
+}-->
+```http
+HTTP/1.1 202 Accepted
+```
+
+#### Notification - transferring
+
+```http
+POST https://bot.contoso.com/api/calls
+Content-Type: application/json
+```
+
+<!-- {
+ "blockType": "example",
+ "@odata.type": "microsoft.graph.commsNotifications"
+}-->
+```json
+{
+ "@odata.type": "#microsoft.graph.commsNotifications",
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.commsNotification",
+ "changeType": "updated",
+ "resourceUrl": "/communications/calls/341a0500-d4bf-4224-8b19-1581168d328b",
+ "resourceData": {
+ "@odata.type": "#microsoft.graph.call",
+ "state": "transferring"
+ }
+ }
+ ]
+}
+```
+
+#### Notification - transfer accepted
+
+> **Note:** Transfer accepted may happen after or before media state audio inactive.
+
+```http
+POST https://bot.contoso.com/api/calls
+Content-Type: application/json
+```
+
+<!-- {
+ "blockType": "example",
+ "@odata.type": "microsoft.graph.commsNotifications"
+}-->
+```json
+{
+ "@odata.type": "#microsoft.graph.commsNotifications",
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.commsNotification",
+ "changeType": "updated",
+ "resourceUrl": "/communications/calls/341a0500-d4bf-4224-8b19-1581168d328b",
+ "resourceData": {
+ "@odata.type": "#microsoft.graph.call",
+ "state": "transferAccepted"
+ }
+ }
+ ]
+}
+```
+
+#### Notification - transfer completed
+
+```http
+POST https://bot.contoso.com/api/calls
+Content-Type: application/json
+```
+
+<!-- {
+ "blockType": "example",
+ "@odata.type": "microsoft.graph.commsNotifications"
+}-->
+```json
+{
+ "@odata.type": "#microsoft.graph.commsNotifications",
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.commsNotification",
+ "changeType": "deleted",
+ "resourceUrl": "/communications/calls/341a0500-d4bf-4224-8b19-1581168d328b",
+ "resourceData": {
+ "@odata.type": "#microsoft.graph.call",
+ "state": "terminated",
+ "resultInfo": {
+ "@odata.type": "#microsoft.graph.resultInfo",
+ "code": 0,
+ "subcode": 7015,
+ "message": "GracefulTransferCompleted"
+ }
+ }
+ }
+ ]
+}
+```
+### Notification - transfer failed
+
+> **Note:** When a call transfer fails, the call state will be `established`.
+
+```http
+POST https://bot.contoso.com/api/calls
+Content-Type: application/json
+```
+
+<!-- {
+ "blockType": "example",
+ "@odata.type": "microsoft.graph.commsNotifications"
+}-->
+```json
+{
+ "@odata.type": "#microsoft.graph.commsNotifications",
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.commsNotification",
+ "changeType": "updated",
+ "resourceUrl": "/communications/calls/341a0500-d4bf-4224-8b19-1581168d328b",
+ "resourceData": {
+ "@odata.type": "#microsoft.graph.call",
+ "state": "established",
+ "resultInfo": {
+ "@odata.type": "#microsoft.graph.resultInfo",
+ "code": 500,
+ "subCode": 7000,
+ "message": "<message>"
+ }
+ }
+ }
+ ]
+}
+```
+
+### Example 4: Consultative transfer to PSTN number
+
+This call requires an application instance with PSTN number assigned, as described in Example 3.
+
+#### Request
+The following example shows the request.
+
+<!-- {
+ "blockType": "request",
+ "@odata.type": "call-transfer"
+}-->
+
+```http
+POST https://graph.microsoft.com/v1.0/communications/calls/341a0500-d4bf-4224-8b19-1581168d328b/transfer
+Content-Type: application/json
+
+{
+ "transferTarget": {
+ "@odata.type": "#microsoft.graph.invitationParticipantInfo",
+ "endpointType": "default",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "phone": {
+ "@odata.type": "#microsoft.graph.identity",
+ "id": "+12345678901"
+ }
+ },
+ "languageId": "en-us",
+ "region": "amer",
+ "replacesCallId": "e5d39592-99bd-4db8-bca8-30fb894ec51d"
+ },
+ "clientContext": "9e90d1c1-f61e-43e7-9f75-d420159aae08"
+}
+```
+
+#### Response
+
+> **Note:** The response object shown here might be shortened for readability. All the properties will be returned from an actual call.
+
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.None"
+}-->
+```http
+HTTP/1.1 202 Accepted
+```
+
+#### Notification - transferring
+
+```http
+POST https://bot.contoso.com/api/calls
+Content-Type: application/json
+```
+
+<!-- {
+ "blockType": "example",
+ "@odata.type": "microsoft.graph.commsNotifications"
+}-->
+```json
+{
+ "@odata.type": "#microsoft.graph.commsNotifications",
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.commsNotification",
+ "changeType": "updated",
+ "resourceUrl": "/communications/calls/341a0500-d4bf-4224-8b19-1581168d328b",
+ "resourceData": {
+ "@odata.type": "#microsoft.graph.call",
+ "state": "transferring"
+ }
+ }
+ ]
+}
+```
+
+#### Notification - transfer accepted
+
+> **Note:** Transfer accepted may happen after or before media state audio inactive.
+
+```http
+POST https://bot.contoso.com/api/calls
+Content-Type: application/json
+```
+
+<!-- {
+ "blockType": "example",
+ "@odata.type": "microsoft.graph.commsNotifications"
+}-->
+```json
+{
+ "@odata.type": "#microsoft.graph.commsNotifications",
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.commsNotification",
+ "changeType": "updated",
+ "resourceUrl": "/communications/calls/341a0500-d4bf-4224-8b19-1581168d328b",
+ "resourceData": {
+ "@odata.type": "#microsoft.graph.call",
+ "state": "transferAccepted"
+ }
+ }
+ ]
+}
+```
+
+#### Notification - transfer completed
+
+```http
+POST https://bot.contoso.com/api/calls
+Content-Type: application/json
+```
+
+<!-- {
+ "blockType": "example",
+ "@odata.type": "microsoft.graph.commsNotifications"
+}-->
+```json
+{
+ "@odata.type": "#microsoft.graph.commsNotifications",
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.commsNotification",
+ "changeType": "deleted",
+ "resourceUrl": "/communications/calls/341a0500-d4bf-4224-8b19-1581168d328b",
+ "resourceData": {
+ "@odata.type": "#microsoft.graph.call",
+ "state": "terminated",
+ "terminationReason": "AppTransferred"
+ }
+ }
+ ]
+}
+```
+
+#### Notification - transfer failed
+
+> **Note:** When a call transfer fails, the call state will be `established`.
+
+```http
+POST https://bot.contoso.com/api/calls
+Content-Type: application/json
+```
+
+<!-- {
+ "blockType": "example",
+ "@odata.type": "microsoft.graph.commsNotifications"
+}-->
+```json
+{
+ "@odata.type": "#microsoft.graph.commsNotifications",
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.commsNotification",
+ "changeType": "updated",
+ "resourceUrl": "/communications/calls/341a0500-d4bf-4224-8b19-1581168d328b",
+ "resourceData": {
+ "@odata.type": "#microsoft.graph.call",
+ "state": "established",
+ "resultInfo": {
+ "@odata.type": "#microsoft.graph.resultInfo",
+ "code": 500,
+ "subCode": 7700,
+ "message": "<message>"
+ }
+ }
+ }
+ ]
+}
+```
+ <!-- uuid: 8fcb5dbc-d5aa-4681-8e31-b001d5168d79 2015-10-25 14:57:30 UTC --> <!--
v1.0 https://docs.microsoft.com/en-us/graph/api/directory-deleteditems-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/directory-deleteditems-delete.md
@@ -32,7 +32,7 @@ For users:
|:--|:| |Delegated (work or school account) | User.ReadWrite.All, Directory.AccessAsUser.All | |Delegated (personal Microsoft account) | Not supported. |
-|Application | User.ReadWrite.All |
+|Application | Not supported. |
For groups:
@@ -40,7 +40,7 @@ For groups:
|:--|:| |Delegated (work or school account) | Group.ReadWrite.All, Directory.AccessAsUser.All | |Delegated (personal Microsoft account) | Not supported. |
-|Application | Group.ReadWrite.All |
+|Application | Not supported. |
## HTTP request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/directory-deleteditems-restore https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/directory-deleteditems-restore.md
@@ -3,7 +3,7 @@ Title: "Restore deleted item"
description: "Restores a recently deleted item from deleted items. " localization_priority: Normal doc_type: apiPageType
@@ -13,7 +13,7 @@ Namespace: microsoft.graph
Restores a recently deleted item from [deleted items](../resources/directory.md).
-Currently, deleted items functionality is only supported for the [application](../resources/application.md), [group](../resources/group.md) and [user](../resources/user.md) resources. If an item was accidentally deleted, you can fully restore the item.
+Currently, restore deleted items functionality is only supported for the [application](../resources/application.md), [group](../resources/group.md) and [user](../resources/user.md) resources. If an item was accidentally deleted, you can fully restore the item. This is not applicable to Security groups, which are deleted permanently.
A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted.
v1.0 https://docs.microsoft.com/en-us/graph/api/directoryobject-checkmembergroups https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/directoryobject-checkmembergroups.md
@@ -19,9 +19,9 @@ One of the following permissions is required to call this API. To learn more, in
|Permission type | Permissions (from least to most privileged) | |:--|:|
-|Delegated (work or school account) | User.ReadBasic.All and GroupMember.Read.All, User.Read.All and GroupMember.Read.All, User.ReadBasic.All and Group.Read.All, User.Read.All and Group.Read.All, Directory.Read.All |
+|Delegated (work or school account) | User.ReadBasic.All, User.Read.All, Directory.Read.All |
|Delegated (personal Microsoft account) | Not supported. |
-|Application | User.Read.All and GroupMember.Read.All, User.Read.All and Group.Read.All, Directory.Read.All |
+|Application | User.Read.All, Directory.Read.All |
Use the follow scenario guidance to help determine which permission types to use: - Use User.Read and GroupMember.Read.All or User.Read and Group.Read.All permissions to get group memberships for the signed-in user.
v1.0 https://docs.microsoft.com/en-us/graph/api/drive-get-specialfolder https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/drive-get-specialfolder.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: Get Special Folders localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/drive-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/drive-get.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: Get Drive localization_priority: Priority
v1.0 https://docs.microsoft.com/en-us/graph/api/drive-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/drive-list.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: List Drives localization_priority: Priority
v1.0 https://docs.microsoft.com/en-us/graph/api/drive-recent https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/drive-recent.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: List Recent Files localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/drive-sharedwithme https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/drive-sharedwithme.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: List Files Shared With Me localization_priority: Priority
v1.0 https://docs.microsoft.com/en-us/graph/api/driveitem-copy https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/driveitem-copy.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: Copy a file or folder localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/driveitem-createlink https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/driveitem-createlink.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: Share a file with a link localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/driveitem-createuploadsession https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/driveitem-createuploadsession.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: Resumable file upload localization_priority: Priority
v1.0 https://docs.microsoft.com/en-us/graph/api/driveitem-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/driveitem-delete.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: Delete a file or folder localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/driveitem-delta https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/driveitem-delta.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: Sync the contents of a drive localization_priority: Priority
v1.0 https://docs.microsoft.com/en-us/graph/api/driveitem-get-content-format https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/driveitem-get-content-format.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: Convert to other formats localization_priority: Priority
v1.0 https://docs.microsoft.com/en-us/graph/api/driveitem-get-content https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/driveitem-get-content.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: Download a file localization_priority: Priority
v1.0 https://docs.microsoft.com/en-us/graph/api/driveitem-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/driveitem-get.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: Get a file or folder localization_priority: Priority
v1.0 https://docs.microsoft.com/en-us/graph/api/driveitem-invite https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/driveitem-invite.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: Send an invite to access an item localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/driveitem-list-children https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/driveitem-list-children.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: List the contents of a folder localization_priority: Priority
v1.0 https://docs.microsoft.com/en-us/graph/api/driveitem-list-permissions https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/driveitem-list-permissions.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: List who has access to a file localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/driveitem-list-thumbnails https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/driveitem-list-thumbnails.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: Retrieve thumbnails for a file or folder localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/driveitem-move https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/driveitem-move.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: Move a file or folder localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/driveitem-post-children https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/driveitem-post-children.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: Create a new folder localization_priority: Priority
v1.0 https://docs.microsoft.com/en-us/graph/api/driveitem-put-content https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/driveitem-put-content.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: Upload small files localization_priority: Priority
v1.0 https://docs.microsoft.com/en-us/graph/api/driveitem-search https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/driveitem-search.md
@@ -1,6 +1,5 @@
- Last updated 07/07/2020 Title: Search for files localization_priority: Priority
v1.0 https://docs.microsoft.com/en-us/graph/api/driveitem-unfollow https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/driveitem-unfollow.md
@@ -1,6 +1,5 @@
- description: Unfollow an item that the user is following. Title: Unfollow drive item localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/driveitem-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/driveitem-update.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: Update a file or folder localization_priority: Priority
v1.0 https://docs.microsoft.com/en-us/graph/api/itemactivitystat-getactivitybyinterval https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/itemactivitystat-getactivitybyinterval.md
@@ -1,6 +1,5 @@
- Title: Get item activity stats by interval description: Get itemAnalyticyStats for the activities that took place on this resource within the specified time interval. localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/itemanalytics-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/itemanalytics-get.md
@@ -1,6 +1,5 @@
- Title: Get itemAnalytics description: Get itemAnalytics about the views that took place under this resource. localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/list-create https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/list-create.md
@@ -1,6 +1,5 @@
- Last updated 09/11/2017 Title: Create a SharePoint List localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/list-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/list-get.md
@@ -1,6 +1,5 @@
- Title: Get a SharePoint list localization_priority: Priority ms.prod: "sharepoint"
v1.0 https://docs.microsoft.com/en-us/graph/api/list-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/list-list.md
@@ -1,6 +1,5 @@
- Last updated 09/11/2017 Title: List the SharePoint lists in a site localization_priority: Priority
v1.0 https://docs.microsoft.com/en-us/graph/api/listitem-create https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/listitem-create.md
@@ -1,6 +1,5 @@
- Last updated 09/11/2017 Title: Create a new entry in a SharePoint list localization_priority: Priority
v1.0 https://docs.microsoft.com/en-us/graph/api/listitem-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/listitem-delete.md
@@ -1,6 +1,5 @@
- Last updated 09/11/2017 Title: Delete an entry from a SharePoint list localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/listitem-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/listitem-get.md
@@ -1,6 +1,5 @@
- Title: Get listItem description: Returns the metadata for an item in a SharePoint list. localization_priority: Priority
v1.0 https://docs.microsoft.com/en-us/graph/api/listitem-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/listitem-list.md
@@ -1,6 +1,5 @@
- Last updated 09/11/2017 Title: Retrieve items from a SharePoint list localization_priority: Priority
v1.0 https://docs.microsoft.com/en-us/graph/api/listitem-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/listitem-update.md
@@ -1,6 +1,5 @@
- Title: Update listItem description: Update the properties on a **[listItem][]**. localization_priority: Priority
v1.0 https://docs.microsoft.com/en-us/graph/api/participant-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/participant-delete.md
@@ -3,7 +3,6 @@ Title: "Delete participant"
description: "Delete a specific participant in the call." - localization_priority: Normal ms.prod: "cloud-communications" doc_type: apiPageType
v1.0 https://docs.microsoft.com/en-us/graph/api/participant-invite https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/participant-invite.md
@@ -698,6 +698,200 @@ Content-Type: application/json
>**Note:** With a "completed" status, you can expect to receive notifications on how your original peer-to-peer call has been terminated and deleted.
+### Example 4: Invite one PSTN participant to an existing group call
+
+This call requires an application instance with a PSTN number assigned.
+
+#### Step 1: Create application instance
+Using tenant admin credentials, call the following cmdlets on the tenant remote PowerShell to create the application instance. For more information, see [New-CsOnlineApplicationInstance](/powershell/module/skype/new-csonlineapplicationinstance?view=skype-ps&preserve-view=true) and [Sync-CsOnlineApplicationInstance](/powershell/module/skype/sync-csonlineapplicationinstance?view=skype-ps&preserve-view=true).
+```
+PS C:\> New-CsOnlineApplicationInstance -UserPrincipalName <UPN> -DisplayName <DisplayName> -ApplicationId <AppId>
+PS C:\> Sync-CsOnlineApplicationInstance -ObjectId <ObjectId>
+```
+#### Step 2: Assign Microsoft 365 licenses
+1. Use tenant admin credentials to sign in to https://admin.microsoft.com/ and go to the **Users -> Active users** tab.
+2. Select the application instance, assign **Microsoft 365 Domestic and International Calling Plan** and **Microsoft 365 Phone System - Virtual User** licenses, and click **Save changes**. If the required licenses are not available in the tenant, you can get them from the **Billing -> Purchase services** tab.
+#### Step 3: Acquire PSTN number
+1. Use tenant admin credentials to sign in to https://admin.teams.microsoft.com/ and click the **Legacy portal** tab on the left panel.
+2. In the new page, go to the **voice -> phone numbers** tab.
+3. Click the **+** button, select **New Service Numbers**, and go to the **Add new service numbers** page.
+4. Select **Country/Region**, **State/Region**, **City**, input **Quantity**, and click **add** to search. Click **acquire numbers**. The newly acquired number will show on the **phone numbers** tab.
+#### Step 4: Assign PSTN number to application instance
+With tenant admin credentials, call the following cmdlets on the tenant remote PowerShell to assign the PSTN number to the application instance. For more information, see [Set-CsOnlineVoiceApplicationInstance](https://docs.microsoft.com/powershell/module/skype/set-csonlinevoiceapplicationinstance?view=skype-ps&preserve-view=true) and [Sync-CsOnlineApplicationInstance](https://docs.microsoft.com/powershell/module/skype/sync-csonlineapplicationinstance?view=skype-ps&preserve-view=true).
+```
+PS C:\> Set-CsOnlineVoiceApplicationInstance -Identity <UPN> -TelephoneNumber <TelephoneNumber>
+PS C:\> Sync-CsOnlineApplicationInstance -ObjectId <ObjectId>
+```
+
+#### Request
+
+<!-- {
+ "blockType": "request",
+ "name": "participant-invite"
+}-->
+```http
+POST /communications/calls/{id}/participants/invite
+Content-Type: application/json
+Content-Length: 464
+
+{
+ "participants": [
+ {
+ "@odata.type": "#microsoft.graph.invitationParticipantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "phone": {
+ "@odata.type": "#microsoft.graph.identity",
+ "id": "+12345678901"
+ }
+ }
+ }
+ ],
+ "clientContext": "f2fa86af-3c51-4bc2-8fc0-475452d9764f"
+}
+```
+
+#### Response
+
+> **Note:** The response object shown here might be shortened for readability. All the properties will be returned from an actual call.
+
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.inviteParticipantsOperation"
+} -->
+```http
+HTTP/1.1 200 OK
+Content-Type: application/json
+
+{
+ "@odata.type": "#microsoft.graph.inviteParticipantsOperation",
+ "id": "eec3812a-fdc3-4fb4-825c-a06c9f35414e",
+ "status": "Running",
+ "clientContext": "f2fa86af-3c51-4bc2-8fc0-475452d9764f",
+ "resultInfo": null,
+ "participants": [
+ {
+ "endpointType": null,
+ "id": null,
+ "replacesCallId": null,
+ "identity": {
+ "user": null,
+ "guest": null,
+ "encrypted": null,
+ "onPremises": null,
+ "applicationInstance": null,
+ "application": null,
+ "device": null,
+ "phone": {
+ "@odata.type": "#microsoft.graph.identity",
+ "id": "+12345678901"
+ }
+ }
+ }
+ ]
+}
+```
+
+#### Notification - operation completed
+
+```http
+POST https://bot.contoso.com/api/calls
+Content-Type: application/json
+```
+
+<!-- {
+ "blockType": "example",
+ "@odata.type": "microsoft.graph.commsNotifications"
+}-->
+```json
+{
+ "@odata.type":"#microsoft.graph.commsNotifications",
+ "value":[
+ {
+ "@odata.type":"#microsoft.graph.commsNotification",
+ "changeType":"deleted",
+ "resource":"/app/calls/ab6233a5-20b7-4c5e-bea2-ce56c9776429/operations/eec3812a-fdc3-4fb4-825c-a06c9f35414e",
+ "resourceUrl":"/communications/calls/ab6233a5-20b7-4c5e-bea2-ce56c9776429/operations/eec3812a-fdc3-4fb4-825c-a06c9f35414e",
+ "resourceData":{
+ "@odata.type":"#microsoft.graph.inviteParticipantsOperation",
+ "participants":[
+ {
+ "@odata.type":"#microsoft.graph.invitationParticipantInfo",
+ "identity":{
+ "@odata.type":"#microsoft.graph.identitySet",
+ "phone": {
+ "@odata.type": "#microsoft.graph.identity",
+ "id": "+12345678901"
+ }
+ }
+ }
+ ],
+ "status":"completed",
+ "clientContext":"f2fa86af-3c51-4bc2-8fc0-475452d9764f",
+ "id":"eec3812a-fdc3-4fb4-825c-a06c9f35414e"
+ }
+ }
+ ]
+}
+```
+
+#### Notification - roster updated with participant added
+
+```http
+POST https://bot.contoso.com/api/calls
+Content-Type: application/json
+```
+
+<!-- {
+ "blockType": "example",
+ "@odata.type": "microsoft.graph.commsNotifications"
+}-->
+```json
+{
+ "@odata.type":"#microsoft.graph.commsNotifications",
+ "value":[
+ {
+ "@odata.type":"#microsoft.graph.commsNotification",
+ "changeType":"updated",
+ "resource":"/app/calls/ab6233a5-20b7-4c5e-bea2-ce56c9776429/participants",
+ "resourceUrl":"/communications/calls/ab6233a5-20b7-4c5e-bea2-ce56c9776429/participants",
+ "resourceData":[
+ {
+ "@odata.type":"#microsoft.graph.participant",
+ "info":{
+ "@odata.type":"#microsoft.graph.participantInfo",
+ "identity":{
+ "@odata.type":"#microsoft.graph.identitySet",
+ "phone": {
+ "@odata.type": "#microsoft.graph.identity",
+ "id": "+12345678901"
+ }
+ },
+ "endpointType":"default"
+ },
+ "mediaStreams":[
+ {
+ "@odata.type":"#microsoft.graph.mediaStream",
+ "mediaType":"audio",
+ "sourceId":"1",
+ "direction":"sendReceive",
+ "serverMuted":false
+ }
+ ],
+ "isMuted":false,
+ "isInLobby":false,
+ "id":null
+ }
+ ]
+ }
+ ]
+}
+
+```
+
+>**Note:** With a `completed` status, you can expect to receive notifications about how your original peer-to-peer call has been terminated and deleted.
+ <!-- uuid: 8fcb5dbc-d5aa-4681-8e31-b001d5168d79 2015-10-25 14:57:30 UTC --> <!--
v1.0 https://docs.microsoft.com/en-us/graph/api/permission-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/permission-delete.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: Remove access to an item localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/permission-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/permission-get.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: Get permissions localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/permission-grant https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/permission-grant.md
@@ -1,6 +1,5 @@
- Title: Grant permission description: Grant a list of users access to use the specified link localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/permission-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/permission-update.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: Change sharing permissions localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/shares-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/shares-get.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: Access shared items localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/signin-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/signin-list.md
@@ -67,7 +67,7 @@ This method supports the following OData query parameters to help customize the
## Response
-If successful, this method returns a `200 OK` response code and collection of [signIn](../resources/signin.md) objects in the response body.
+If successful, this method returns a `200 OK` response code and collection of [signIn](../resources/signin.md) objects in the response body. The collection of objects is listed in descending order based on **createdDateTime**.
## Example
v1.0 https://docs.microsoft.com/en-us/graph/api/site-delete-permission https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/site-delete-permission.md
@@ -46,6 +46,8 @@ If successful, this method returns `204 No Content` response code. It does not r
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "delete_permission"
@@ -54,6 +56,24 @@ If successful, this method returns `204 No Content` response code. It does not r
``` http DELETE https://graph.microsoft.com/v1.0/sites/{sitesId}/permissions/{permissionId} ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/site-get-permission https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/site-get-permission.md
@@ -49,6 +49,8 @@ If successful, this method returns a `200 OK` response code and the [permission]
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "get_permission"
@@ -57,6 +59,24 @@ If successful, this method returns a `200 OK` response code and the [permission]
``` http GET https://graph.microsoft.com/v1.0/sites/{sitesId}/permissions/{permissionId} ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/site-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/site-get.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: Get a SharePoint Site localization_priority: Priority
v1.0 https://docs.microsoft.com/en-us/graph/api/site-getbypath https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/site-getbypath.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: Get SharePoint site by path localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/site-list-permissions https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/site-list-permissions.md
@@ -49,6 +49,8 @@ If successful, this method returns a `200 OK` response code and a collection of
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "list_permission"
@@ -57,6 +59,24 @@ If successful, this method returns a `200 OK` response code and a collection of
``` http GET https://graph.microsoft.com/v1.0/sites/{sitesId}/permissions ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/site-list-subsites https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/site-list-subsites.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: List the subsites for a SharePoint site localization_priority: Priority
v1.0 https://docs.microsoft.com/en-us/graph/api/site-post-permissions https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/site-post-permissions.md
@@ -47,6 +47,8 @@ If successful, this method returns a `201 Created` response code and a [permissi
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "create_permission_from_"
@@ -66,6 +68,24 @@ Content-Type: application/json
}] } ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/site-search https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/site-search.md
@@ -1,6 +1,5 @@
- Last updated 09/10/2017 Title: Search for sites description: Search across a SharePoint tenant for sites that match keywords provided.
v1.0 https://docs.microsoft.com/en-us/graph/api/site-update-permission https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/site-update-permission.md
@@ -47,6 +47,8 @@ If successful, this method returns a `200 OK` response code and a [permission](.
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "update_permission_from_"
@@ -60,6 +62,24 @@ Content-Type: application/json
"roles": ["read"] } ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/subscriptions-socketio https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/subscriptions-socketio.md
@@ -1,6 +1,5 @@
- Title: "Get websocket endpoint" localization_priority: Normal ms.prod: "sharepoint"
v1.0 https://docs.microsoft.com/en-us/graph/api/user-getmembergroups https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/user-getmembergroups.md
@@ -24,9 +24,9 @@ One of the following permissions is required to call this API. To learn more, in
| Permission type | Permissions (from least to most privileged) | | :- | : |
-| Delegated (work or school account) | User.ReadBasic.All and GroupMember.Read.All, User.Read and GroupMember.Read.All, User.Read.All and GroupMember.Read.All, User.ReadBasic.All and Group.Read.All, User.Read and Group.Read.All, User.Read.All and Group.Read.All, Directory.Read.All, Directory.ReadWrite.All, Directory.AccessAsUser.All |
+| Delegated (work or school account) | User.ReadBasic.All, User.Read, User.Read.All, Directory.Read.All, Directory.ReadWrite.All, Directory.AccessAsUser.All |
| Delegated (personal Microsoft account) | Not supported. |
-| Application | User.Read.All and GroupMember.Read.All, User.Read.All and Group.Read.All, Directory.Read.All, Directory.ReadWrite.All |
+| Application | User.Read.All, Directory.Read.All, Directory.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/user-list-messages https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/user-list-messages.md
@@ -13,7 +13,11 @@ Namespace: microsoft.graph
Get the messages in the signed-in user's mailbox (including the Deleted Items and Clutter folders).
-Depending on the page size and mailbox data, getting messages from a mailbox can incur multiple requests. The default page size is 10 messages. To get the next page of messages, simply apply the entire URL returned in `@odata.nextLink` to the next get-messages request. This URL includes any query parameters you may have specified in the initial request.
+Depending on the page size and mailbox data, getting messages from a mailbox can incur multiple requests. The default page size is 10 messages. Use `$top` to customize the page size, within the range of 1 and 1000.
+
+To improve the operation response time, use `$select` to specify the exact properties you need; see [example 1](#example-1-list-all-messages) below. Fine-tune the values for `$select` and `$top`, especially when you must use a larger page size, as returning a page with hundreds of messages each with a full response payload may trigger the [gateway timeout](/graph/errors#http-status-codes) (HTTP 504).
+
+To get the next page of messages, simply apply the entire URL returned in `@odata.nextLink` to the next get-messages request. This URL includes any query parameters you may have specified in the initial request.
Do not try to extract the `$skip` value from the `@odata.nextLink` URL to manipulate responses. This API uses the `$skip` value to keep count of all the items it has gone through in the user's mailbox to return a page of message-type items. It's therefore possible that even in the initial response, the `$skip` value is larger than the page size. For more information, see [Paging Microsoft Graph data in your app](/graph/paging).
@@ -82,8 +86,9 @@ Do not supply a request body for this method.
If successful, this method returns a `200 OK` response code and collection of [Message](../resources/message.md) objects in the response body.
-## Example
-##### Request
+## Examples
+### Example 1: List all messages
+#### Request
This example gets the default, top 10 messages in the signed-in user's mailbox. It uses `$select` to return a subset of the properties of each message in the response. # [HTTP](#tab/http)
@@ -112,7 +117,7 @@ GET https://graph.microsoft.com/v1.0/me/messages?$select=sender,subject
-##### Response
+#### Response
Here is an example of the response. To get the next page of messages, apply the URL returned in `@odata.nextLink` to a subsequent GET request. <!-- {
v1.0 https://docs.microsoft.com/en-us/graph/api/user-translateexchangeids https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/user-translateexchangeids.md
@@ -48,7 +48,7 @@ POST /users/{id|userPrincipalName}/translateExchangeIds
### exchangeIdFormat values
-| Values | Description |
+| Member | Description |
|:-|:| | entryId | The binary entry ID format used by MAPI clients. | | ewsId | The ID format used by Exchange Web Services clients. |
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-directoryobject-from-device-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/create-directoryobject-from-device-csharp-snippets.md
@@ -11,7 +11,7 @@ var directoryObject = new DirectoryObject
Id = "{id}" };
-await graphClient.Devices["{id}"].RegisteredOwners.References
+await graphClient.Devices["{id}"].RegisteredUsers.References
.Request() .AddAsync(directoryObject);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-educationclass-from-educationschool-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/create-educationclass-from-educationschool-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-await graphClient.Education.Schools["{school-id}"].Users["{user-id}"]
+await graphClient.Education.Classes["{class-id}"].Teachers["{teacher-id}"]
.Request() .DeleteAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-permission-from--csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/create-permission-from--csharp-snippets.md
@@ -0,0 +1,32 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var permission = new Permission
+{
+ Roles = new List<String>()
+ {
+ "write"
+ },
+ GrantedToIdentities = new List<IdentitySet>()
+ {
+ new IdentitySet
+ {
+ Application = new Identity
+ {
+ Id = "89ea5c94-7736-4e25-95ad-3fa95f62b66e",
+ DisplayName = "Foo App"
+ }
+ }
+ }
+};
+
+await graphClient.Sites["{sitesId}"].Permissions
+ .Request()
+ .AddAsync(permission);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/delete-permission-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/delete-permission-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-await graphClient.Me.Drive.Items["{item-id}"].Permissions["{perm-id}"]
+await graphClient.Sites["{sitesId}"].Permissions["{permissionId}"]
.Request() .DeleteAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-a-count-endswith-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-a-count-endswith-csharp-snippets.md
@@ -9,8 +9,8 @@ GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var users = await graphClient.Users .Request() .Header("ConsistencyLevel","eventual")
- .Filter("endswith(mail,'a@contoso.com'),")
- .OrderBy("userPrincipalName ")
+ .Filter("endswith(mail,'a@contoso.com')")
+ .OrderBy("userPrincipalName")
.GetAsync(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-buckets-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-buckets-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var buckets = await graphClient.Planner.Plans["{plan-id}"].Buckets
+var buckets = await graphClient.Planner.Buckets
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-classes-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-classes-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var classes = await graphClient.Education.Classes
+var classes = await graphClient.Education.Schools["{school-id}"].Classes
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-contract-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-contract-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var contract = await graphClient.Contracts["{id}"]
+var contracts = await graphClient.Contracts
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-directoryaudit-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-directoryaudit-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var directoryAudits = await graphClient.AuditLogs.DirectoryAudits
+var directoryAudit = await graphClient.AuditLogs.DirectoryAudits["{id}"]
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-educationuser-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-educationuser-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var educationUser = await graphClient.Education.Users["{user-id}"]
+var user = await graphClient.Education.Me.User
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-grouplifecyclepolicy-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-grouplifecyclepolicy-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var groupLifecyclePolicies = await graphClient.GroupLifecyclePolicies
+var groupLifecyclePolicy = await graphClient.GroupLifecyclePolicies["{id}"]
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-opentypeextension-3-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-opentypeextension-3-csharp-snippets.md
@@ -8,7 +8,6 @@ GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var message = await graphClient.Me.Messages["AAMkAGE1M2IyNGNmLTI5MTktNDUyZi1iOTVl==="] .Request()
- .Filter("id eq 'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')")
.Expand("extensions($filter=id%20eq%20'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')") .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-permission-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-permission-csharp-snippets.md
@@ -0,0 +1,13 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var permission = await graphClient.Sites["{sitesId}"].Permissions["{permissionId}"]
+ .Request()
+ .GetAsync();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-plans-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-plans-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var plans = await graphClient.Planner.Plans
+var plans = await graphClient.Me.Planner.Plans
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-singlevaluelegacyextendedproperty-1-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-singlevaluelegacyextendedproperty-1-csharp-snippets.md
@@ -8,7 +8,6 @@ GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var message = await graphClient.Me.Messages["AAMkAGE1M2_bs88AACHsLqWAAA="] .Request()
- .Filter("id eq 'String {66f5a359-4659-4830-9070-00047ec6ac6e} Name Color')")
.Expand("singleValueExtendedProperties($filter=id%20eq%20'String%20%7B66f5a359-4659-4830-9070-00047ec6ac6e%7D%20Name%20Color')") .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-swapshiftschangerequest-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-swapshiftschangerequest-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var swapShiftsChangeRequest = await graphClient.Teams["{teamId}"].Schedule.SwapShiftsChangeRequests["{swapShiftsChangeRequestId}"]
+var swapShiftsChangeRequests = await graphClient.Teams["{teamId}"].Schedule.SwapShiftsChangeRequests
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-todotask-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-todotask-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var todoTask = await graphClient.Me.Todo.Lists["AAMkADA1MTHgwAAA="].Tasks["721a35e2-35e2-721a-e235-1a72e2351a72"]
+var tasks = await graphClient.Me.Todo.Lists["35e2-35e2-721a-e235-1a72e2351a7"].Tasks
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-todotasklist-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-todotasklist-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var lists = await graphClient.Me.Todo.Lists
+var todoTaskList = await graphClient.Me.Todo.Lists["AAMkADIyAAAAABrJAAA="]
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/group-create-approleassignment-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/group-create-approleassignment-csharp-snippets.md
@@ -13,7 +13,7 @@ var appRoleAssignment = new AppRoleAssignment
AppRoleId = Guid.Parse("appRoleId-value") };
-await graphClient.ServicePrincipals["{id}"].AppRoleAssignments
+await graphClient.Groups["{id}"].AppRoleAssignments
.Request() .AddAsync(appRoleAssignment);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/list-permission-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/list-permission-csharp-snippets.md
@@ -0,0 +1,13 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var permissions = await graphClient.Sites["{sitesId}"].Permissions
+ .Request()
+ .GetAsync();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/shift-get-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/shift-get-csharp-snippets.md
@@ -6,8 +6,43 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var shiftPreferences = await graphClient.Users["871dbd5c-3a6a-4392-bfe1-042452793a50"].ShiftPreferences
+var shiftPreferences = new ShiftPreferences
+{
+ Id = "SHPR_eeab4fb1-20e5-48ca-ad9b-98119d94bee7",
+ Availability = new List<ShiftAvailability>()
+ {
+ new ShiftAvailability
+ {
+ Recurrence = new PatternedRecurrence
+ {
+ Pattern = new RecurrencePattern
+ {
+ Type = RecurrencePatternType.Weekly,
+ DaysOfWeek = new List<DayOfWeek>()
+ {
+ DayOfWeek.Monday,
+ DayOfWeek.Wednesday,
+ DayOfWeek.Friday
+ },
+ Interval = 1
+ },
+ Range = new RecurrenceRange
+ {
+ Type = RecurrenceRangeType.NoEnd
+ }
+ },
+ TimeZone = "Pacific Standard Time",
+ TimeSlots = null
+ }
+ },
+ AdditionalData = new Dictionary<string, object>()
+ {
+ {"@odata.etag", "1a371e53-f0a6-4327-a1ee-e3c56e4b38aa"}
+ }
+};
+
+await graphClient.Users["871dbd5c-3a6a-4392-bfe1-042452793a50"].Settings.ShiftPreferences
.Request()
- .GetAsync();
+ .UpdateAsync(shiftPreferences);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-page-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/update-page-csharp-snippets.md
@@ -6,27 +6,25 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var stream = new List<Stream>()
-{
- new Stream
- {
- Target = "#para-id",
- Action = "insert",
- Position = "before",
- Content = "<img src=\"image-url-or-part-name\" alt=\"image-alt-text\" />"
- },
- new Stream
- {
- Target = "#list-id",
- Action = "append",
- Content = "<li>new-page-content</li>"
- }
-};
+var stream = new System.IO.MemoryStream(Encoding.UTF8.GetBytes(@"[
+ {
+ 'target':'#para-id',
+ 'action':'insert',
+ 'position':'before',
+ 'content':'<img src=""image-url-or-part-name"" alt=""image-alt-text"" />'
+ },
+ {
+ 'target':'#list-id',
+ 'action':'append',
+ 'content':'<li>new-page-content</li>'
+ }
+]
+"));
var pages = new OnenotePage();
-pages.Content = content;
+pages.Content = stream;
-await graphClient.Me.Onenote.Pages["{id}"].Content
+await graphClient.Me.Onenote.Pages["{id}"]
.Request() .UpdateAsync(pages);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-permission-from--csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/update-permission-from--csharp-snippets.md
@@ -0,0 +1,21 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var permission = new Permission
+{
+ Roles = new List<String>()
+ {
+ "read"
+ }
+};
+
+await graphClient.Sites["{sitesId}"].Permissions["{permissionId}"]
+ .Request()
+ .UpdateAsync(permission);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/user-list-teamsapps-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/user-list-teamsapps-csharp-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var userScopeTeamsAppInstallation = await graphClient.Users["5b649834-7412-4cce-9e69-176e95a394f5"].Teamwork.InstalledApps["NWI2NDk4MzQtNzQxMi00Y2NlLTllNjktMTc2ZTk1YTM5NGY1IyNhNmI2MzM2NS0zMWE0LTRmNDMtOTJlYy03MTBiNzE1NTdhZjk"]
+var installedApps = await graphClient.Users["5b649834-7412-4cce-9e69-176e95a394f5"].Teamwork.InstalledApps
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-directoryobject-from-device-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/create-directoryobject-from-device-java-snippets.md
@@ -9,7 +9,7 @@ IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
DirectoryObject directoryObject = new DirectoryObject(); directoryObject.id = "{id}";
-graphClient.devices("{id}").registeredOwners().references()
+graphClient.devices("{id}").registeredUsers().references()
.buildRequest() .post(directoryObject);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-educationclass-from-educationschool-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/create-educationclass-from-educationschool-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-graphClient.education().schools("{school-id}").users("{user-id}")
+graphClient.education().classes("{class-id}").teachers("{teacher-id}")
.buildRequest() .delete();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-permission-from--java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/create-permission-from--java-snippets.md
@@ -0,0 +1,26 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+Permission permission = new Permission();
+LinkedList<String> rolesList = new LinkedList<String>();
+rolesList.add("write");
+permission.roles = rolesList;
+LinkedList<IdentitySet> grantedToIdentitiesList = new LinkedList<IdentitySet>();
+IdentitySet grantedToIdentities = new IdentitySet();
+Identity application = new Identity();
+application.id = "89ea5c94-7736-4e25-95ad-3fa95f62b66e";
+application.displayName = "Foo App";
+grantedToIdentities.application = application;
+grantedToIdentitiesList.add(grantedToIdentities);
+permission.grantedToIdentities = grantedToIdentitiesList;
+
+graphClient.sites("{sitesId}").permissions()
+ .buildRequest()
+ .post(permission);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/delete-permission-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/delete-permission-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-graphClient.me().drive().items("{item-id}").permissions("{perm-id}")
+graphClient.sites("{sitesId}").permissions("{permissionId}")
.buildRequest() .delete();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-a-count-endswith-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-a-count-endswith-java-snippets.md
@@ -11,8 +11,8 @@ requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
IUserCollectionPage users = graphClient.users() .buildRequest( requestOptions )
- .filter("endswith(mail,'a@contoso.com'),")
- .orderBy("userPrincipalName ")
+ .filter("endswith(mail,'a@contoso.com')")
+ .orderBy("userPrincipalName")
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-buckets-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-buckets-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IPlannerBucketCollectionPage buckets = graphClient.planner().plans("{plan-id}").buckets()
+IPlannerBucketCollectionPage buckets = graphClient.planner().buckets()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-classes-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-classes-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IEducationClassCollectionPage classes = graphClient.education().classes()
+IEducationClassCollectionWithReferencesPage classes = graphClient.education().schools("{school-id}").classes()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-contract-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-contract-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-Contract contract = graphClient.contracts("{id}")
+IContractCollectionPage contracts = graphClient.contracts()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-directoryaudit-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-directoryaudit-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IDirectoryAuditCollectionPage directoryAudits = graphClient.auditLogs().directoryAudits()
+DirectoryAudit directoryAudit = graphClient.auditLogs().directoryAudits("{id}")
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-educationuser-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-educationuser-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-EducationUser educationUser = graphClient.education().users("{user-id}")
+User user = graphClient.education().me().user()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-grouplifecyclepolicy-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-grouplifecyclepolicy-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IGroupLifecyclePolicyCollectionPage groupLifecyclePolicies = graphClient.groupLifecyclePolicies()
+GroupLifecyclePolicy groupLifecyclePolicy = graphClient.groupLifecyclePolicies("{id}")
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-opentypeextension-3-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-opentypeextension-3-java-snippets.md
@@ -8,7 +8,6 @@ IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
Message message = graphClient.me().messages("AAMkAGE1M2IyNGNmLTI5MTktNDUyZi1iOTVl===") .buildRequest()
- .filter("id eq 'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')")
.expand("extensions($filter=id%20eq%20'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')") .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-permission-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-permission-java-snippets.md
@@ -0,0 +1,13 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+Permission permission = graphClient.sites("{sitesId}").permissions("{permissionId}")
+ .buildRequest()
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-plans-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-plans-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IPlannerPlanCollectionPage plans = graphClient.planner().plans()
+IPlannerPlanCollectionPage plans = graphClient.me().planner().plans()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-singlevaluelegacyextendedproperty-1-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-singlevaluelegacyextendedproperty-1-java-snippets.md
@@ -8,7 +8,6 @@ IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
Message message = graphClient.me().messages("AAMkAGE1M2_bs88AACHsLqWAAA=") .buildRequest()
- .filter("id eq 'String {66f5a359-4659-4830-9070-00047ec6ac6e} Name Color')")
.expand("singleValueExtendedProperties($filter=id%20eq%20'String%20%7B66f5a359-4659-4830-9070-00047ec6ac6e%7D%20Name%20Color')") .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-swapshiftschangerequest-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-swapshiftschangerequest-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-SwapShiftsChangeRequest swapShiftsChangeRequest = graphClient.teams("{teamId}").schedule().swapShiftsChangeRequests("{swapShiftsChangeRequestId}")
+ISwapShiftsChangeRequestCollectionPage swapShiftsChangeRequests = graphClient.teams("{teamId}").schedule().swapShiftsChangeRequests()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-todotask-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-todotask-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-TodoTask todoTask = graphClient.me().todo().lists("AAMkADA1MTHgwAAA=").tasks("721a35e2-35e2-721a-e235-1a72e2351a72")
+ITodoTaskCollectionPage tasks = graphClient.me().todo().lists("35e2-35e2-721a-e235-1a72e2351a7").tasks()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-todotasklist-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-todotasklist-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-ITodoTaskListCollectionPage lists = graphClient.me().todo().lists()
+TodoTaskList todoTaskList = graphClient.me().todo().lists("AAMkADIyAAAAABrJAAA=")
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/group-create-approleassignment-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/group-create-approleassignment-java-snippets.md
@@ -11,7 +11,7 @@ appRoleAssignment.principalId = UUID.fromString("principalId-value");
appRoleAssignment.resourceId = UUID.fromString("resourceId-value"); appRoleAssignment.appRoleId = UUID.fromString("appRoleId-value");
-graphClient.servicePrincipals("{id}").appRoleAssignments()
+graphClient.groups("{id}").appRoleAssignments()
.buildRequest() .post(appRoleAssignment);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/list-permission-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/list-permission-java-snippets.md
@@ -0,0 +1,13 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+IPermissionCollectionPage permissions = graphClient.sites("{sitesId}").permissions()
+ .buildRequest()
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/shift-get-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/shift-get-java-snippets.md
@@ -6,8 +6,32 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-Content shiftPreferences = graphClient.users("871dbd5c-3a6a-4392-bfe1-042452793a50").shiftPreferences()
+ShiftPreferences shiftPreferences = new ShiftPreferences();
+shiftPreferences.id = "SHPR_eeab4fb1-20e5-48ca-ad9b-98119d94bee7";
+shiftPreferences.additionalDataManager().put("@odata.etag", new JsonPrimitive("1a371e53-f0a6-4327-a1ee-e3c56e4b38aa"));
+LinkedList<ShiftAvailability> availabilityList = new LinkedList<ShiftAvailability>();
+ShiftAvailability availability = new ShiftAvailability();
+PatternedRecurrence recurrence = new PatternedRecurrence();
+RecurrencePattern pattern = new RecurrencePattern();
+pattern.type = RecurrencePatternType.WEEKLY;
+LinkedList<DayOfWeek> daysOfWeekList = new LinkedList<DayOfWeek>();
+daysOfWeekList.add(DayOfWeek.MONDAY);
+daysOfWeekList.add(DayOfWeek.WEDNESDAY);
+daysOfWeekList.add(DayOfWeek.FRIDAY);
+pattern.daysOfWeek = daysOfWeekList;
+pattern.interval = 1;
+recurrence.pattern = pattern;
+RecurrenceRange range = new RecurrenceRange();
+range.type = RecurrenceRangeType.NO_END;
+recurrence.range = range;
+availability.recurrence = recurrence;
+availability.timeZone = "Pacific Standard Time";
+availability.timeSlots = null;
+availabilityList.add(availability);
+shiftPreferences.availability = availabilityList;
+
+graphClient.users("871dbd5c-3a6a-4392-bfe1-042452793a50").settings().shiftPreferences()
.buildRequest()
- .get();
+ .patch(shiftPreferences);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-permission-from--java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/update-permission-from--java-snippets.md
@@ -0,0 +1,18 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+Permission permission = new Permission();
+LinkedList<String> rolesList = new LinkedList<String>();
+rolesList.add("read");
+permission.roles = rolesList;
+
+graphClient.sites("{sitesId}").permissions("{permissionId}")
+ .buildRequest()
+ .patch(permission);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/user-list-teamsapps-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/user-list-teamsapps-java-snippets.md
@@ -6,7 +6,7 @@ description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-UserScopeTeamsAppInstallation userScopeTeamsAppInstallation = graphClient.users("5b649834-7412-4cce-9e69-176e95a394f5").teamwork().installedApps("NWI2NDk4MzQtNzQxMi00Y2NlLTllNjktMTc2ZTk1YTM5NGY1IyNhNmI2MzM2NS0zMWE0LTRmNDMtOTJlYy03MTBiNzE1NTdhZjk")
+IUserScopeTeamsAppInstallationCollectionPage installedApps = graphClient.users("5b649834-7412-4cce-9e69-176e95a394f5").teamwork().installedApps()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-directoryobject-from-device-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/create-directoryobject-from-device-javascript-snippets.md
@@ -14,7 +14,7 @@ const directoryObject = {
@odata.id: "https://graph.microsoft.com/v1.0/directoryObjects/{id}" };
-let res = await client.api('/devices/{id}/registeredOwners/$ref')
+let res = await client.api('/devices/{id}/registeredUsers/$ref')
.post(directoryObject); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-educationclass-from-educationschool-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/create-educationclass-from-educationschool-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/education/schools/{school-id}/users/{user-id}')
+let res = await client.api('/education/classes/{class-id}/teachers/{teacher-id}')
.delete(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-permission-from--javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/create-permission-from--javascript-snippets.md
@@ -0,0 +1,26 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const permission = {
+ roles: ["write"],
+ grantedToIdentities: [{
+ application: {
+ id: "89ea5c94-7736-4e25-95ad-3fa95f62b66e",
+ displayName: "Foo App"
+ }
+ }]
+};
+
+let res = await client.api('/sites/{sitesId}/permissions')
+ .post(permission);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/delete-permission-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/delete-permission-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/me/drive/items/{item-id}/permissions/{perm-id}')
+let res = await client.api('/sites/{sitesId}/permissions/{permissionId}')
.delete(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-a-count-endswith-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-a-count-endswith-javascript-snippets.md
@@ -12,8 +12,8 @@ const client = Client.init(options);
let res = await client.api('/users') .header('ConsistencyLevel','eventual')
- .filter('endswith(mail,'a@contoso.com'),')
- .orderby('userPrincipalName ')
+ .filter('endswith(mail,'a@contoso.com')')
+ .orderby('userPrincipalName')
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-buckets-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-buckets-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/planner/plans/{plan-id}/buckets')
+let res = await client.api('/planner/buckets')
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-classes-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-classes-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/education/classes')
+let res = await client.api('/education/schools/{school-id}/classes')
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-contract-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-contract-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/contracts/{id}')
+let res = await client.api('/contracts')
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-directoryaudit-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-directoryaudit-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/auditLogs/directoryAudits')
+let res = await client.api('/auditLogs/directoryAudits/{id}')
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-educationuser-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-educationuser-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/education/users/{user-id}')
+let res = await client.api('/education/me/user')
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-grouplifecyclepolicy-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-grouplifecyclepolicy-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/groupLifecyclePolicies')
+let res = await client.api('/groupLifecyclePolicies/{id}')
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-opentypeextension-3-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-opentypeextension-3-javascript-snippets.md
@@ -11,7 +11,6 @@ const options = {
const client = Client.init(options); let res = await client.api('/me/messages/AAMkAGE1M2IyNGNmLTI5MTktNDUyZi1iOTVl===')
- .filter('id eq 'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')')
.expand('extensions($filter=id%20eq%20'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-permission-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-permission-javascript-snippets.md
@@ -0,0 +1,16 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/sites/{sitesId}/permissions/{permissionId}')
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-plans-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-plans-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/planner/plans')
+let res = await client.api('/me/planner/plans')
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-singlevaluelegacyextendedproperty-1-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-singlevaluelegacyextendedproperty-1-javascript-snippets.md
@@ -11,7 +11,6 @@ const options = {
const client = Client.init(options); let res = await client.api('/me/messages/AAMkAGE1M2_bs88AACHsLqWAAA=')
- .filter('id eq 'String {66f5a359-4659-4830-9070-00047ec6ac6e} Name Color')')
.expand('singleValueExtendedProperties($filter=id%20eq%20'String%20%7B66f5a359-4659-4830-9070-00047ec6ac6e%7D%20Name%20Color')') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-swapshiftschangerequest-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-swapshiftschangerequest-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/teams/{teamId}/schedule/swapShiftsChangeRequests/{swapShiftsChangeRequestId}')
+let res = await client.api('/teams/{teamId}/schedule/swapShiftsChangeRequests')
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-todotask-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-todotask-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/me/todo/lists/AAMkADA1MTHgwAAA=/tasks/721a35e2-35e2-721a-e235-1a72e2351a72')
+let res = await client.api('/me/todo/lists/35e2-35e2-721a-e235-1a72e2351a7/tasks')
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-todotasklist-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-todotasklist-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/me/todo/lists')
+let res = await client.api('/me/todo/lists/AAMkADIyAAAAABrJAAA=')
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/group-create-approleassignment-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/group-create-approleassignment-javascript-snippets.md
@@ -16,7 +16,7 @@ const appRoleAssignment = {
appRoleId: "appRoleId-value" };
-let res = await client.api('/servicePrincipals/{id}/appRoleAssignments')
+let res = await client.api('/groups/{id}/appRoleAssignments')
.post(appRoleAssignment); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/list-permission-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/list-permission-javascript-snippets.md
@@ -0,0 +1,16 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/sites/{sitesId}/permissions')
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/shift-get-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/shift-get-javascript-snippets.md
@@ -10,7 +10,28 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/users/871dbd5c-3a6a-4392-bfe1-042452793a50/shiftPreferences')
- .get();
+const shiftPreferences = {
+ id: "SHPR_eeab4fb1-20e5-48ca-ad9b-98119d94bee7",
+ @odata.etag: "1a371e53-f0a6-4327-a1ee-e3c56e4b38aa",
+ availability: [
+ {
+ recurrence: {
+ pattern: {
+ type: "Weekly",
+ daysOfWeek: ["Monday", "Wednesday", "Friday"],
+ interval: 1
+ },
+ range: {
+ type: "noEnd"
+ }
+ },
+ timeZone: "Pacific Standard Time",
+ timeSlots: null
+ }
+ ]
+};
+
+let res = await client.api('/users/871dbd5c-3a6a-4392-bfe1-042452793a50/settings/shiftPreferences')
+ .update(shiftPreferences);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-permission-from--javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/update-permission-from--javascript-snippets.md
@@ -0,0 +1,20 @@
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const permission = {
+ roles: ["read"]
+};
+
+let res = await client.api('/sites/{sitesId}/permissions/{permissionId}')
+ .update(permission);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/user-list-teamsapps-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/user-list-teamsapps-javascript-snippets.md
@@ -10,7 +10,7 @@ const options = {
const client = Client.init(options);
-let res = await client.api('/users/5b649834-7412-4cce-9e69-176e95a394f5/teamwork/installedApps/NWI2NDk4MzQtNzQxMi00Y2NlLTllNjktMTc2ZTk1YTM5NGY1IyNhNmI2MzM2NS0zMWE0LTRmNDMtOTJlYy03MTBiNzE1NTdhZjk')
+let res = await client.api('/users/5b649834-7412-4cce-9e69-176e95a394f5/teamwork/installedApps')
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-directoryobject-from-device-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/create-directoryobject-from-device-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:@"/devices/{id}/registeredOwners/$ref"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/devices/{id}/registeredUsers/$ref"]]];
[urlRequest setHTTPMethod:@"POST"]; [urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-educationclass-from-educationschool-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/create-educationclass-from-educationschool-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:@"/education/schools/{school-id}/users/{user-id}"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/education/classes/{class-id}/teachers/{teacher-id}"]]];
[urlRequest setHTTPMethod:@"DELETE"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-permission-from--objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/create-permission-from--objc-snippets.md
@@ -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:@"/sites/{sitesId}/permissions"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphPermission *permission = [[MSGraphPermission alloc] init];
+NSMutableArray *rolesList = [[NSMutableArray alloc] init];
+[rolesList addObject: @"write"];
+[permission setRoles:rolesList];
+NSMutableArray *grantedToIdentitiesList = [[NSMutableArray alloc] init];
+MSGraphIdentitySet *grantedToIdentities = [[MSGraphIdentitySet alloc] init];
+MSGraphIdentity *application = [[MSGraphIdentity alloc] init];
+[application setId:@"89ea5c94-7736-4e25-95ad-3fa95f62b66e"];
+[application setDisplayName:@"Foo App"];
+[grantedToIdentities setApplication:application];
+[grantedToIdentitiesList addObject: grantedToIdentities];
+[permission setGrantedToIdentities:grantedToIdentitiesList];
+
+NSError *error;
+NSData *permissionData = [permission getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:permissionData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/delete-permission-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/delete-permission-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/drive/items/{item-id}/permissions/{perm-id}"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/sites/{sitesId}/permissions/{permissionId}"]]];
[urlRequest setHTTPMethod:@"DELETE"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-buckets-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-buckets-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:@"/planner/plans/{plan-id}/buckets"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/planner/buckets"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-classes-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-classes-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:@"/education/classes"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/education/schools/{school-id}/classes"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-contract-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-contract-objc-snippets.md
@@ -7,13 +7,15 @@ 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:@"/contracts/{id}"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/contracts"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphContract *contract = [[MSGraphContract alloc] initWithData:data error:&nserror];
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphContract *contract = [[MSGraphContract alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-directoryaudit-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-directoryaudit-objc-snippets.md
@@ -7,15 +7,13 @@ 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:@"/auditLogs/directoryAudits"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/auditLogs/directoryAudits/{id}"]]];
[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];
- MSGraphDirectoryAudit *directoryAudit = [[MSGraphDirectoryAudit alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+ MSGraphDirectoryAudit *directoryAudit = [[MSGraphDirectoryAudit alloc] initWithData:data error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-educationuser-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-educationuser-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/v1.0/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/education/users/{user-id}"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/education/me/user"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphEducationUser *educationUser = [[MSGraphEducationUser alloc] initWithData:data error:&nserror];
+ MSGraphUser *user = [[MSGraphUser alloc] initWithData:data error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-grouplifecyclepolicy-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-grouplifecyclepolicy-objc-snippets.md
@@ -7,15 +7,13 @@ description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString