Updates from: 01/06/2021 04:06:57
Service Microsoft Docs article Related commit history on GitHub Change details
v1.0 https://docs.microsoft.com/en-us/graph/api/chat-patch https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/chat-patch.md
@@ -68,7 +68,7 @@ PATCH https://graph.microsoft.com/beta/chats/19:1c5b01696d2e4a179c292bc9cf04e63b
Content-Type: application/json {
- "topic": "Group chat title update",
+ "topic": "Group chat title update"
} ``` # [C#](#tab/csharp)
v1.0 https://docs.microsoft.com/en-us/graph/api/chat-post https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/chat-post.md
@@ -46,7 +46,7 @@ The following table lists the properties that are required to create a chat obje
|Property|Type|Description| |:---|:---|:---|
-|topic|(Optional) String|The title of the chat. The chat title can be provided only if the chat is of 'group' type.|
+|topic|(Optional) String|The title of the chat. The chat title can be provided only if the chat is of `group` type.|
|chatType|[chatType](../resources/chat.md#chattype-values)| Specifies the type of chat. Possible values are: `group` and `oneOnOne`. | |members|[conversationMember](../resources/conversationmember.md) collection|List of conversation members that should be added. Every single user, including the user initiating the create request, who will participate in the chat must be specified in this list.|
v1.0 https://docs.microsoft.com/en-us/graph/api/user-list-mailfolders https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/user-list-mailfolders.md
@@ -215,13 +215,33 @@ The next example uses the `includeHiddenFolders` query parameter to get a list o
#### Request +
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "get_hiddenmailfolders" }-->
-```http
+```msgraph-interactive
GET https://graph.microsoft.com/beta/me/mailFolders/?includeHiddenFolders=true ```
+# [C#](#tab/csharp)
+[!INCLUDE [sample-code](../includes/snippets/csharp/get-hiddenmailfolders-csharp-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [JavaScript](#tab/javascript)
+[!INCLUDE [sample-code](../includes/snippets/javascript/get-hiddenmailfolders-javascript-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Objective-C](#tab/objc)
+[!INCLUDE [sample-code](../includes/snippets/objc/get-hiddenmailfolders-objc-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+# [Java](#tab/java)
+[!INCLUDE [sample-code](../includes/snippets/java/get-hiddenmailfolders-java-snippets.md)]
+[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
+
+---
+ #### Response Here is an example of the response.
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-event-recurring-daily-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-event-recurring-daily-csharp-snippets.md new file mode 100644
@@ -0,0 +1,64 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var @event = new Event
+{
+ Subject = "Let's go for lunch",
+ Body = new ItemBody
+ {
+ ContentType = BodyType.Html,
+ Content = "Does noon work for you?"
+ },
+ Start = new DateTimeTimeZone
+ {
+ DateTime = "2020-02-25T12:00:00",
+ TimeZone = "Pacific Standard Time"
+ },
+ End = new DateTimeTimeZone
+ {
+ DateTime = "2020-02-25T14:00:00",
+ TimeZone = "Pacific Standard Time"
+ },
+ Location = new Location
+ {
+ DisplayName = "Harry's Bar"
+ },
+ Attendees = new List<Attendee>()
+ {
+ new Attendee
+ {
+ EmailAddress = new EmailAddress
+ {
+ Address = "AlexW@contoso.OnMicrosoft.com",
+ Name = "Alex Wilbur"
+ },
+ Type = AttendeeType.Required
+ }
+ },
+ Recurrence = new PatternedRecurrence
+ {
+ Pattern = new RecurrencePattern
+ {
+ Type = RecurrencePatternType.Daily,
+ Interval = 1
+ },
+ Range = new RecurrenceRange
+ {
+ Type = RecurrenceRangeType.Numbered,
+ StartDate = new Date(2020,2,25),
+ NumberOfOccurrences = 2
+ }
+ }
+};
+
+await graphClient.Me.Events
+ .Request()
+ .Header("Prefer","outlook.timezone=\"Pacific Standard Time\"")
+ .AddAsync(@event);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-item-attachment-from-event-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-item-attachment-from-event-csharp-snippets.md new file mode 100644
@@ -0,0 +1,37 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var attachment = new ItemAttachment
+{
+ Name = "Holiday event",
+ Item = new Event
+ {
+ Subject = "Discuss gifts for children",
+ Body = new ItemBody
+ {
+ ContentType = BodyType.Html,
+ Content = "Let's look for funding!"
+ },
+ Start = new DateTimeTimeZone
+ {
+ DateTime = "2016-12-02T18:00:00",
+ TimeZone = "Pacific Standard Time"
+ },
+ End = new DateTimeTimeZone
+ {
+ DateTime = "2016-12-02T19:00:00",
+ TimeZone = "Pacific Standard Time"
+ }
+ }
+};
+
+await graphClient.Me.Events["{AAMkAGI1AAAt9AHjAAA=}"].Attachments
+ .Request()
+ .AddAsync(attachment);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-item-attachment-from-message-beta-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-item-attachment-from-message-beta-csharp-snippets.md new file mode 100644
@@ -0,0 +1,37 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var attachment = new ItemAttachment
+{
+ Name = "Holiday event",
+ Item = new Event
+ {
+ Subject = "Discuss gifts for children",
+ Body = new ItemBody
+ {
+ ContentType = BodyType.Html,
+ Content = "Let's look for funding!"
+ },
+ Start = new DateTimeTimeZone
+ {
+ DateTime = "2016-12-02T18:00:00",
+ TimeZone = "Pacific Standard Time"
+ },
+ End = new DateTimeTimeZone
+ {
+ DateTime = "2016-12-02T19:00:00",
+ TimeZone = "Pacific Standard Time"
+ }
+ }
+};
+
+await graphClient.Me.Messages["AAMkpsDRVK"].Attachments
+ .Request()
+ .AddAsync(attachment);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-item-attachment-with-post-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-item-attachment-with-post-csharp-snippets.md new file mode 100644
@@ -0,0 +1,49 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var post = new Post
+{
+ Body = new ItemBody
+ {
+ ContentType = BodyType.Text,
+ Content = "I attached an event."
+ },
+ Attachments = (IPostAttachmentsCollectionPage)new List<Attachment>()
+ {
+ new ItemAttachment
+ {
+ Name = "Holiday event",
+ Item = new Event
+ {
+ Subject = "Discuss gifts for children",
+ Body = new ItemBody
+ {
+ ContentType = BodyType.Html,
+ Content = "Let's look for funding!"
+ },
+ Start = new DateTimeTimeZone
+ {
+ DateTime = "2019-12-02T18:00:00",
+ TimeZone = "Pacific Standard Time"
+ },
+ End = new DateTimeTimeZone
+ {
+ DateTime = "2019-12-02T19:00:00",
+ TimeZone = "Pacific Standard Time"
+ }
+ }
+ }
+ }
+};
+
+await graphClient.Groups["1848753d-185d-4c08-a4e4-6ee40521d115"].Threads["AAQkADJUdfolA=="]
+ .Reply(post)
+ .Request()
+ .PostAsync();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-trustframeworkkeyset-from-trustframework1-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-trustframeworkkeyset-from-trustframework1-csharp-snippets.md new file mode 100644
@@ -0,0 +1,18 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var trustFrameworkKeySet = new TrustFrameworkKeySet
+{
+ Id = "keyset1"
+};
+
+await graphClient.TrustFramework.KeySets
+ .Request()
+ .AddAsync(trustFrameworkKeySet);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/event-delta-events-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/event-delta-events-csharp-snippets.md new file mode 100644
@@ -0,0 +1,19 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var queryOptions = new List<QueryOption>()
+{
+ new QueryOption("startDateTime", "2020-06-12T00:00:00Z")
+};
+
+var delta = await graphClient.Me.Calendar.Events
+ .Delta()
+ .Request( queryOptions )
+ .GetAsync();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-hiddenmailfolders-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-hiddenmailfolders-csharp-snippets.md new file mode 100644
@@ -0,0 +1,18 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var queryOptions = new List<QueryOption>()
+{
+ new QueryOption("includeHiddenFolders", "true")
+};
+
+var mailFolders = await graphClient.Me.MailFolders
+ .Request( queryOptions )
+ .GetAsync();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-printjob-withtasks-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-printjob-withtasks-csharp-snippets.md new file mode 100644
@@ -0,0 +1,14 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var printJob = await graphClient.Print.Printers["c05f3726-0d4b-4aa1-8fe9-2eb981bb26fb"].Jobs["5182"]
+ .Request()
+ .Expand("tasks")
+ .GetAsync();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-event-recurring-daily-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-event-recurring-daily-java-snippets.md new file mode 100644
@@ -0,0 +1,54 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+LinkedList<Option> requestOptions = new LinkedList<Option>();
+requestOptions.add(new HeaderOption("Prefer", "outlook.timezone=\"Pacific Standard Time\""));
+
+Event event = new Event();
+event.subject = "Let's go for lunch";
+ItemBody body = new ItemBody();
+body.contentType = BodyType.HTML;
+body.content = "Does noon work for you?";
+event.body = body;
+DateTimeTimeZone start = new DateTimeTimeZone();
+start.dateTime = "2020-02-25T12:00:00";
+start.timeZone = "Pacific Standard Time";
+event.start = start;
+DateTimeTimeZone end = new DateTimeTimeZone();
+end.dateTime = "2020-02-25T14:00:00";
+end.timeZone = "Pacific Standard Time";
+event.end = end;
+Location location = new Location();
+location.displayName = "Harry's Bar";
+event.location = location;
+LinkedList<Attendee> attendeesList = new LinkedList<Attendee>();
+Attendee attendees = new Attendee();
+EmailAddress emailAddress = new EmailAddress();
+emailAddress.address = "AlexW@contoso.OnMicrosoft.com";
+emailAddress.name = "Alex Wilbur";
+attendees.emailAddress = emailAddress;
+attendees.type = AttendeeType.REQUIRED;
+attendeesList.add(attendees);
+event.attendees = attendeesList;
+PatternedRecurrence recurrence = new PatternedRecurrence();
+RecurrencePattern pattern = new RecurrencePattern();
+pattern.type = RecurrencePatternType.DAILY;
+pattern.interval = 1;
+recurrence.pattern = pattern;
+RecurrenceRange range = new RecurrenceRange();
+range.type = RecurrenceRangeType.NUMBERED;
+range.startDate = new DateOnly(1900,1,1);
+range.numberOfOccurrences = 2;
+recurrence.range = range;
+event.recurrence = recurrence;
+
+graphClient.me().events()
+ .buildRequest( requestOptions )
+ .post(event);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-item-attachment-from-event-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-item-attachment-from-event-java-snippets.md new file mode 100644
@@ -0,0 +1,31 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+ItemAttachment attachment = new ItemAttachment();
+attachment.name = "Holiday event";
+Event item = new Event();
+item.subject = "Discuss gifts for children";
+ItemBody body = new ItemBody();
+body.contentType = BodyType.HTML;
+body.content = "Let's look for funding!";
+item.body = body;
+DateTimeTimeZone start = new DateTimeTimeZone();
+start.dateTime = "2016-12-02T18:00:00";
+start.timeZone = "Pacific Standard Time";
+item.start = start;
+DateTimeTimeZone end = new DateTimeTimeZone();
+end.dateTime = "2016-12-02T19:00:00";
+end.timeZone = "Pacific Standard Time";
+item.end = end;
+attachment.item = item;
+
+graphClient.me().events("{AAMkAGI1AAAt9AHjAAA=}").attachments()
+ .buildRequest()
+ .post(attachment);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-item-attachment-from-message-beta-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-item-attachment-from-message-beta-java-snippets.md new file mode 100644
@@ -0,0 +1,31 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+ItemAttachment attachment = new ItemAttachment();
+attachment.name = "Holiday event";
+Event item = new Event();
+item.subject = "Discuss gifts for children";
+ItemBody body = new ItemBody();
+body.contentType = BodyType.HTML;
+body.content = "Let's look for funding!";
+item.body = body;
+DateTimeTimeZone start = new DateTimeTimeZone();
+start.dateTime = "2016-12-02T18:00:00";
+start.timeZone = "Pacific Standard Time";
+item.start = start;
+DateTimeTimeZone end = new DateTimeTimeZone();
+end.dateTime = "2016-12-02T19:00:00";
+end.timeZone = "Pacific Standard Time";
+item.end = end;
+attachment.item = item;
+
+graphClient.me().messages("AAMkpsDRVK").attachments()
+ .buildRequest()
+ .post(attachment);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-item-attachment-with-post-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-item-attachment-with-post-java-snippets.md new file mode 100644
@@ -0,0 +1,43 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+Post post = new Post();
+ItemBody body = new ItemBody();
+body.contentType = BodyType.TEXT;
+body.content = "I attached an event.";
+post.body = body;
+LinkedList<Attachment> attachmentsList = new LinkedList<Attachment>();
+ItemAttachment attachments = new ItemAttachment();
+attachments.name = "Holiday event";
+Event item = new Event();
+item.subject = "Discuss gifts for children";
+ItemBody body1 = new ItemBody();
+body1.contentType = BodyType.HTML;
+body1.content = "Let's look for funding!";
+item.body = body1;
+DateTimeTimeZone start = new DateTimeTimeZone();
+start.dateTime = "2019-12-02T18:00:00";
+start.timeZone = "Pacific Standard Time";
+item.start = start;
+DateTimeTimeZone end = new DateTimeTimeZone();
+end.dateTime = "2019-12-02T19:00:00";
+end.timeZone = "Pacific Standard Time";
+item.end = end;
+attachments.item = item;
+attachmentsList.add(attachments);
+AttachmentCollectionResponse attachmentCollectionResponse = new AttachmentCollectionResponse();
+attachmentCollectionResponse.value = attachmentsList;
+AttachmentCollectionPage attachmentCollectionPage = new AttachmentCollectionPage(attachmentCollectionResponse, null);
+post.attachments = attachmentCollectionPage;
+
+graphClient.groups("1848753d-185d-4c08-a4e4-6ee40521d115").threads("AAQkADJUdfolA==")
+ .reply(post)
+ .buildRequest()
+ .post();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-mailfolder-from-user-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-mailfolder-from-user-java-snippets.md
@@ -8,6 +8,7 @@ IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
MailFolder mailFolder = new MailFolder(); mailFolder.displayName = "Clutter";
+mailFolder.isHidden = true;
graphClient.me().mailFolders() .buildRequest()
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-trustframeworkkeyset-from-trustframework1-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-trustframeworkkeyset-from-trustframework1-java-snippets.md new file mode 100644
@@ -0,0 +1,16 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+TrustFrameworkKeySet trustFrameworkKeySet = new TrustFrameworkKeySet();
+trustFrameworkKeySet.id = "keyset1";
+
+graphClient.trustFramework().keySets()
+ .buildRequest()
+ .post(trustFrameworkKeySet);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/event-delta-events-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/event-delta-events-java-snippets.md new file mode 100644
@@ -0,0 +1,17 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+LinkedList<Option> requestOptions = new LinkedList<Option>();
+requestOptions.add(new QueryOption("startDateTime", "2020-06-12T00:00:00Z"));
+
+IEventDeltaCollectionPage delta = graphClient.me().calendar().events()
+ .delta()
+ .buildRequest( requestOptions )
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-hiddenmailfolders-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-hiddenmailfolders-java-snippets.md new file mode 100644
@@ -0,0 +1,16 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+LinkedList<Option> requestOptions = new LinkedList<Option>();
+requestOptions.add(new QueryOption("includeHiddenFolders", "true"));
+
+IMailFolderCollectionPage mailFolders = graphClient.me().mailFolders()
+ .buildRequest( requestOptions )
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-printjob-withtasks-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-printjob-withtasks-java-snippets.md new file mode 100644
@@ -0,0 +1,14 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+PrintJob printJob = graphClient.print().printers("c05f3726-0d4b-4aa1-8fe9-2eb981bb26fb").jobs("5182")
+ .buildRequest()
+ .expand("tasks")
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-event-recurring-daily-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-event-recurring-daily-javascript-snippets.md new file mode 100644
@@ -0,0 +1,56 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const event = {
+ subject: "Let's go for lunch",
+ body: {
+ contentType: "HTML",
+ content: "Does noon work for you?"
+ },
+ start: {
+ dateTime: "2020-02-25T12:00:00",
+ timeZone: "Pacific Standard Time"
+ },
+ end: {
+ dateTime: "2020-02-25T14:00:00",
+ timeZone: "Pacific Standard Time"
+ },
+ location:{
+ displayName:"Harry's Bar"
+ },
+ attendees: [
+ {
+ emailAddress: {
+ address:"AlexW@contoso.OnMicrosoft.com",
+ name: "Alex Wilbur"
+ },
+ type: "required"
+ }
+ ],
+ recurrence: {
+ pattern: {
+ type: "daily",
+ interval: 1
+ },
+ range: {
+ type: "numbered",
+ startDate: "2020-02-25",
+ numberOfOccurrences: 2
+ }
+ }
+};
+
+let res = await client.api('/me/events')
+ .version('beta')
+ .post(event);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-item-attachment-from-event-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-item-attachment-from-event-javascript-snippets.md new file mode 100644
@@ -0,0 +1,38 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const attachment = {
+ @odata.type: "#microsoft.graph.itemAttachment",
+ name: "Holiday event",
+ item: {
+ @odata.type: "microsoft.graph.event",
+ subject: "Discuss gifts for children",
+ body: {
+ contentType: "HTML",
+ content: "Let's look for funding!"
+ },
+ start: {
+ dateTime: "2016-12-02T18:00:00",
+ timeZone: "Pacific Standard Time"
+ },
+ end: {
+ dateTime: "2016-12-02T19:00:00",
+ timeZone: "Pacific Standard Time"
+ }
+ }
+};
+
+let res = await client.api('/me/events/{AAMkAGI1AAAt9AHjAAA=}/attachments')
+ .version('beta')
+ .post(attachment);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-item-attachment-from-message-beta-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-item-attachment-from-message-beta-javascript-snippets.md new file mode 100644
@@ -0,0 +1,38 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const attachment = {
+ @odata.type: "#microsoft.graph.itemAttachment",
+ name: "Holiday event",
+ item: {
+ @odata.type: "microsoft.graph.event",
+ subject: "Discuss gifts for children",
+ body: {
+ contentType: "HTML",
+ content: "Let's look for funding!"
+ },
+ start: {
+ dateTime: "2016-12-02T18:00:00",
+ timeZone: "Pacific Standard Time"
+ },
+ end: {
+ dateTime: "2016-12-02T19:00:00",
+ timeZone: "Pacific Standard Time"
+ }
+ }
+};
+
+let res = await client.api('/me/messages/AAMkpsDRVK/attachments')
+ .version('beta')
+ .post(attachment);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-item-attachment-with-post-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-item-attachment-with-post-javascript-snippets.md new file mode 100644
@@ -0,0 +1,46 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const reply = {
+ post: {
+ body: {
+ contentType: "text",
+ content: "I attached an event."
+ },
+ attachments: [{
+ @odata.type: "#microsoft.graph.itemAttachment",
+ name: "Holiday event",
+ item: {
+ @odata.type: "microsoft.graph.event",
+ subject: "Discuss gifts for children",
+ body: {
+ contentType: "HTML",
+ content: "Let's look for funding!"
+ },
+ start: {
+ dateTime: "2019-12-02T18:00:00",
+ timeZone: "Pacific Standard Time"
+ },
+ end: {
+ dateTime: "2019-12-02T19:00:00",
+ timeZone: "Pacific Standard Time"
+ }
+ }
+ } ]
+ }
+};
+
+let res = await client.api('/groups/1848753d-185d-4c08-a4e4-6ee40521d115/threads/AAQkADJUdfolA==/reply')
+ .version('beta')
+ .post(reply);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-mailfolder-from-user-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-mailfolder-from-user-javascript-snippets.md
@@ -11,7 +11,8 @@ const options = {
const client = Client.init(options); const mailFolder = {
- displayName: "Clutter"
+ displayName: "Clutter",
+ isHidden: true
}; let res = await client.api('/me/mailFolders')
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-trustframeworkkeyset-from-trustframework1-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-trustframeworkkeyset-from-trustframework1-javascript-snippets.md new file mode 100644
@@ -0,0 +1,21 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const trustFrameworkKeySet = {
+ id: "keyset1"
+};
+
+let res = await client.api('/trustFramework/keySets')
+ .version('beta')
+ .post(trustFrameworkKeySet);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/event-delta-events-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/event-delta-events-javascript-snippets.md new file mode 100644
@@ -0,0 +1,17 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/me/calendar/events/delta?startDateTime=2020-06-12T00:00:00Z')
+ .version('beta')
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-hiddenmailfolders-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-hiddenmailfolders-javascript-snippets.md new file mode 100644
@@ -0,0 +1,17 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/me/mailFolders/?includeHiddenFolders=true')
+ .version('beta')
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-printjob-withtasks-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-printjob-withtasks-javascript-snippets.md new file mode 100644
@@ -0,0 +1,18 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/print/printers/c05f3726-0d4b-4aa1-8fe9-2eb981bb26fb/jobs/5182')
+ .version('beta')
+ .expand('tasks')
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-authzpolicy-guestuserlevel-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/update-authzpolicy-guestuserlevel-javascript-snippets.md new file mode 100644
@@ -0,0 +1,21 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const authorizationPolicy = {
+ guestUserRole:"2af84b1e-32c8-42b7-82bc-daa82404023b"
+};
+
+let res = await client.api('/policies/authorizationPolicy/authorizationPolicy')
+ .version('beta')
+ .update(authorizationPolicy);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-event-recurring-daily-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-event-recurring-daily-objc-snippets.md new file mode 100644
@@ -0,0 +1,66 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/events"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"outlook.timezone=\"Pacific Standard Time\"" forHTTPHeaderField:@"Prefer"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphEvent *event = [[MSGraphEvent alloc] init];
+[event setSubject:@"Let's go for lunch"];
+MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
+[body setContentType: [MSGraphBodyType html]];
+[body setContent:@"Does noon work for you?"];
+[event setBody:body];
+MSGraphDateTimeTimeZone *start = [[MSGraphDateTimeTimeZone alloc] init];
+[start setDateTime: "2020-02-25T12:00:00"];
+[start setTimeZone:@"Pacific Standard Time"];
+[event setStart:start];
+MSGraphDateTimeTimeZone *end = [[MSGraphDateTimeTimeZone alloc] init];
+[end setDateTime: "2020-02-25T14:00:00"];
+[end setTimeZone:@"Pacific Standard Time"];
+[event setEnd:end];
+MSGraphLocation *location = [[MSGraphLocation alloc] init];
+[location setDisplayName:@"Harry's Bar"];
+[event setLocation:location];
+NSMutableArray *attendeesList = [[NSMutableArray alloc] init];
+MSGraphAttendee *attendees = [[MSGraphAttendee alloc] init];
+MSGraphEmailAddress *emailAddress = [[MSGraphEmailAddress alloc] init];
+[emailAddress setAddress:@"AlexW@contoso.OnMicrosoft.com"];
+[emailAddress setName:@"Alex Wilbur"];
+[attendees setEmailAddress:emailAddress];
+[attendees setType: [MSGraphAttendeeType required]];
+[attendeesList addObject: attendees];
+[event setAttendees:attendeesList];
+MSGraphPatternedRecurrence *recurrence = [[MSGraphPatternedRecurrence alloc] init];
+MSGraphRecurrencePattern *pattern = [[MSGraphRecurrencePattern alloc] init];
+[pattern setType: [MSGraphRecurrencePatternType daily]];
+[pattern setInterval: 1];
+[recurrence setPattern:pattern];
+MSGraphRecurrenceRange *range = [[MSGraphRecurrenceRange alloc] init];
+[range setType: [MSGraphRecurrenceRangeType numbered]];
+[range setStartDate:@"2020-02-25"];
+[range setNumberOfOccurrences: 2];
+[recurrence setRange:range];
+[event setRecurrence:recurrence];
+
+NSError *error;
+NSData *eventData = [event getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:eventData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-item-attachment-from-event-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-item-attachment-from-event-objc-snippets.md new file mode 100644
@@ -0,0 +1,45 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/events/{AAMkAGI1AAAt9AHjAAA=}/attachments"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphAttachment *attachment = [[MSGraphAttachment alloc] init];
+[attachment setName:@"Holiday event"];
+MSGraphOutlookItem *item = [[MSGraphOutlookItem alloc] init];
+[item setSubject:@"Discuss gifts for children"];
+MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
+[body setContentType: [MSGraphBodyType html]];
+[body setContent:@"Let's look for funding!"];
+[item setBody:body];
+MSGraphDateTimeTimeZone *start = [[MSGraphDateTimeTimeZone alloc] init];
+[start setDateTime: "2016-12-02T18:00:00"];
+[start setTimeZone:@"Pacific Standard Time"];
+[item setStart:start];
+MSGraphDateTimeTimeZone *end = [[MSGraphDateTimeTimeZone alloc] init];
+[end setDateTime: "2016-12-02T19:00:00"];
+[end setTimeZone:@"Pacific Standard Time"];
+[item setEnd:end];
+[attachment setItem:item];
+
+NSError *error;
+NSData *attachmentData = [attachment getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:attachmentData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-item-attachment-from-message-beta-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-item-attachment-from-message-beta-objc-snippets.md new file mode 100644
@@ -0,0 +1,45 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/messages/AAMkpsDRVK/attachments"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphAttachment *attachment = [[MSGraphAttachment alloc] init];
+[attachment setName:@"Holiday event"];
+MSGraphOutlookItem *item = [[MSGraphOutlookItem alloc] init];
+[item setSubject:@"Discuss gifts for children"];
+MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
+[body setContentType: [MSGraphBodyType html]];
+[body setContent:@"Let's look for funding!"];
+[item setBody:body];
+MSGraphDateTimeTimeZone *start = [[MSGraphDateTimeTimeZone alloc] init];
+[start setDateTime: "2016-12-02T18:00:00"];
+[start setTimeZone:@"Pacific Standard Time"];
+[item setStart:start];
+MSGraphDateTimeTimeZone *end = [[MSGraphDateTimeTimeZone alloc] init];
+[end setDateTime: "2016-12-02T19:00:00"];
+[end setTimeZone:@"Pacific Standard Time"];
+[item setEnd:end];
+[attachment setItem:item];
+
+NSError *error;
+NSData *attachmentData = [attachment getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:attachmentData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-item-attachment-with-post-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-item-attachment-with-post-objc-snippets.md new file mode 100644
@@ -0,0 +1,55 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groups/1848753d-185d-4c08-a4e4-6ee40521d115/threads/AAQkADJUdfolA==/reply"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+NSMutableDictionary *payloadDictionary = [[NSMutableDictionary alloc] init];
+
+MSGraphPost *post = [[MSGraphPost alloc] init];
+MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
+[body setContentType: [MSGraphBodyType text]];
+[body setContent:@"I attached an event."];
+[post setBody:body];
+NSMutableArray *attachmentsList = [[NSMutableArray alloc] init];
+MSGraphAttachment *attachments = [[MSGraphAttachment alloc] init];
+[attachments setName:@"Holiday event"];
+MSGraphOutlookItem *item = [[MSGraphOutlookItem alloc] init];
+[item setSubject:@"Discuss gifts for children"];
+MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
+[body setContentType: [MSGraphBodyType html]];
+[body setContent:@"Let's look for funding!"];
+[item setBody:body];
+MSGraphDateTimeTimeZone *start = [[MSGraphDateTimeTimeZone alloc] init];
+[start setDateTime: "2019-12-02T18:00:00"];
+[start setTimeZone:@"Pacific Standard Time"];
+[item setStart:start];
+MSGraphDateTimeTimeZone *end = [[MSGraphDateTimeTimeZone alloc] init];
+[end setDateTime: "2019-12-02T19:00:00"];
+[end setTimeZone:@"Pacific Standard Time"];
+[item setEnd:end];
+[attachments setItem:item];
+[attachmentsList addObject: attachments];
+[post setAttachments:attachmentsList];
+payloadDictionary[@"post"] = post;
+
+NSData *data = [NSJSONSerialization dataWithJSONObject:payloadDictionary options:kNilOptions error:&error];
+[urlRequest setHTTPBody:data];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-mailfolder-from-user-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-mailfolder-from-user-objc-snippets.md
@@ -13,6 +13,7 @@ NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URL
MSGraphMailFolder *mailFolder = [[MSGraphMailFolder alloc] init]; [mailFolder setDisplayName:@"Clutter"];
+[mailFolder setIsHidden: true];
NSError *error; NSData *mailFolderData = [mailFolder getSerializedDataWithError:&error];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-trustframeworkkeyset-from-trustframework1-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-trustframeworkkeyset-from-trustframework1-objc-snippets.md new file mode 100644
@@ -0,0 +1,30 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/trustFramework/keySets"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphTrustFrameworkKeySet *trustFrameworkKeySet = [[MSGraphTrustFrameworkKeySet alloc] init];
+[trustFrameworkKeySet setId:@"keyset1"];
+
+NSError *error;
+NSData *trustFrameworkKeySetData = [trustFrameworkKeySet getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:trustFrameworkKeySetData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-hiddenmailfolders-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-hiddenmailfolders-objc-snippets.md new file mode 100644
@@ -0,0 +1,24 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/mailFolders/?includeHiddenFolders=true"]]];
+[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];
+ MSGraphMailFolder *mailFolder = [[MSGraphMailFolder alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-printjob-withtasks-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-printjob-withtasks-objc-snippets.md new file mode 100644
@@ -0,0 +1,22 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/print/printers/c05f3726-0d4b-4aa1-8fe9-2eb981bb26fb/jobs/5182?$expand=tasks"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ MSGraphPrintJob *printJob = [[MSGraphPrintJob alloc] initWithData:data error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-authzpolicy-guestuserlevel-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/update-authzpolicy-guestuserlevel-objc-snippets.md new file mode 100644
@@ -0,0 +1,29 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/policies/authorizationPolicy/authorizationPolicy"]]];
+[urlRequest setHTTPMethod:@"PATCH"];
+
+MSGraphAuthorizationPolicy *authorizationPolicy = [[MSGraphAuthorizationPolicy alloc] init];
+[authorizationPolicy setGuestUserRole:@"2af84b1e-32c8-42b7-82bc-daa82404023b"];
+
+NSError *error;
+NSData *authorizationPolicyData = [authorizationPolicy getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:authorizationPolicyData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/resources/requestorsettings https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/requestorsettings.md
@@ -30,7 +30,7 @@ Used for the **requestorSettings** property of an [access package assignment pol
| Property | Type | Description | | :--------------------------- | :------------------------ | :---------- |
-| scopeType |String |Who can request. One of `NoSubjects`, `SpecificDirectorySubjects`, `SpecificConnectedOrganizationSubjects`, `AllExistingConnectedOrganizationSubjects`, `AllExistingDirectoryMemberUsers`, `AllExistingDirectorySubjects` or `AllExternalSubjects`. |
+| scopeType |String |Who can request. One of `NoSubjects`, `SpecificDirectorySubjects`, `SpecificConnectedOrganizationSubjects`, `AllConfiguredConnectedOrganizationSubjects`, `AllExistingConnectedOrganizationSubjects`, `AllExistingDirectoryMemberUsers`, `AllExistingDirectorySubjects` or `AllExternalSubjects`. |
| acceptRequests | Boolean | Indicates whether new requests are accepted on this policy. | | allowedRequestors | [userSet](userset.md) collection| The users who are allowed to request on this policy, which can be [singleUser](singleuser.md), [groupMembers](groupmembers.md), and [connectedOrganizationMembers](connectedorganizationmembers.md). |
v1.0 https://docs.microsoft.com/en-us/graph/api/user-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/user-list.md
@@ -180,198 +180,7 @@ Content-type: application/json
] } ```-
-### Example 3: Get users including their last sign-in time
-
-#### Request
-
-The following is an example of the request.
--
-# [HTTP](#tab/http)
-<!-- {
- "blockType": "request",
- "name": "get_signin_last_time"
-} -->
-```msgraph-interactive
-GET https://graph.microsoft.com/v1.0/users?$select=displayName,userPrincipalName,signInActivity
-```
-# [C#](#tab/csharp)
-[!INCLUDE [sample-code](../includes/snippets/csharp/get-signin-last-time-csharp-snippets.md)]
-[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
-
-# [JavaScript](#tab/javascript)
-[!INCLUDE [sample-code](../includes/snippets/javascript/get-signin-last-time-javascript-snippets.md)]
-[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
-
-# [Objective-C](#tab/objc)
-[!INCLUDE [sample-code](../includes/snippets/objc/get-signin-last-time-objc-snippets.md)]
-[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
-
-# [Java](#tab/java)
-[!INCLUDE [sample-code](../includes/snippets/java/get-signin-last-time-java-snippets.md)]
-[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
---
-#### Response
-
-The following is an example of the 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.user",
- "isCollection": true
-} -->
-```http
-HTTP/1.1 200 OK
-Content-type: application/json
-
-{
- "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users(displayName,userPrincipalName,signInActivity)",
- "value": [
- {
- "displayName": "Adele Vance",
- "userPrincipalName": "AdeleV@contoso.com",
- "signInActivity": {
- "lastSignInDateTime": "2017-09-04T15:35:02Z",
- "lastSignInRequestId": "c7df2760-2c81-4ef7-b578-5b5392b571df"
- }
- },
- {
- "displayName": "Alex Wilber",
- "userPrincipalName": "AlexW@contoso.com",
- "signInActivity": {
- "lastSignInDateTime": "2017-07-29T02:16:18Z",
- "lastSignInRequestId": "90d8b3f8-712e-4f7b-aa1e-62e7ae6cbe96"
- }
- }
- ]
-}
-```
-
-### Example 4: List the last sign-in time of users with a specific display name
-
-#### Request
-
-The following is an example of the request.
--
-# [HTTP](#tab/http)
-<!-- {
- "blockType": "request",
- "name": "get_signin_last_time_filter"
-} -->
-```msgraph-interactive
-GET https://graph.microsoft.com/v1.0/users?$filter=startswith(displayName,'Eric')&$select=displayName,signInActivity
-```
-# [C#](#tab/csharp)
-[!INCLUDE [sample-code](../includes/snippets/csharp/get-signin-last-time-filter-csharp-snippets.md)]
-[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
-
-# [JavaScript](#tab/javascript)
-[!INCLUDE [sample-code](../includes/snippets/javascript/get-signin-last-time-filter-javascript-snippets.md)]
-[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
-
-# [Objective-C](#tab/objc)
-[!INCLUDE [sample-code](../includes/snippets/objc/get-signin-last-time-filter-objc-snippets.md)]
-[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
-
-# [Java](#tab/java)
-[!INCLUDE [sample-code](../includes/snippets/java/get-signin-last-time-filter-java-snippets.md)]
-[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
---
-#### Response
-
-The following is an example of the 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.user",
- "isCollection": true
-} -->
-```http
-HTTP/1.1 200 OK
-Content-type: application/json
-
-{
- "@odata.context": "https://graph.microsoft.com/v1.0/users?$filter=startswith(displayName,'Eric')&$select=displayName,signInActivity",
- "value": [
- {
- "displayName": "Eric Solomon",
- "signInActivity": {
- "lastSignInDateTime": "2017-09-04T15:35:02Z",
- "lastSignInRequestId": "c7df2760-2c81-4ef7-b578-5b5392b571df"
- }
- }
- ]
-}
-```
-
-### Example 5: List the last sign-in time of users in a specific time range
-
-#### Request
-
-The following is an example of the request.
-
-<!-- {
- "blockType": "ignored",
- "name": "get_signin_last_time_range"
-} -->
-```http
-GET https://graph.microsoft.com/v1.0/users?filter=signInActivity/lastSignInDateTime le 2019-06-01T00:00:00Z
-```
-
-#### Response
-
-The following is an example of the 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.user",
- "isCollection": true
-} -->
-```http
-HTTP/1.1 200 OK
-Content-type: application/json
-
-{
- "@odata.context": "https://graph.microsoft.com/v1.0/users?filter=signInActivity/lastSignInDateTime le 2019-06-01T00:00:00Z",
- "value": [
- {
- "displayName": "Adele Vance",
- "userPrincipalName": "AdeleV@contoso.com",
- "signInActivity": {
- "lastSignInDateTime": "2019-05-04T15:35:02Z",
- "lastSignInRequestId": "c7df2760-2c81-4ef7-b578-5b5392b571df"
- }
- },
- {
- "displayName": "Alex Wilber",
- "userPrincipalName": "AlexW@contoso.com",
- "signInActivity": {
- "lastSignInDateTime": "2019-04-29T02:16:18Z",
- "lastSignInRequestId": "90d8b3f8-712e-4f7b-aa1e-62e7ae6cbe96"
- }
- }
- ]
-}
-```
-
-### Example 6: Get only a count of users
+### Example 3: Get only a count of users
#### Request
@@ -400,7 +209,7 @@ Content-type: text/plain
`893`
-### Example 7: Use $filter and $top to get one user with a display name that starts with 'a' including a count of returned objects
+### Example 4: Use $filter and $top to get one user with a display name that starts with 'a' including a count of returned objects
#### Request
@@ -447,7 +256,7 @@ Content-type: application/json
} ```
-### Example 8: Use $search to get users with display names that contain the letters 'wa' including a count of returned objects
+### Example 5: Use $search to get users with display names that contain the letters 'wa' including a count of returned objects
#### Request
@@ -493,7 +302,7 @@ Content-type: application/json
} ```
-### Example 9: Use $search to get users with display names that contain the letters 'wa' or the letters 'to' including a count of returned objects
+### Example 6: Use $search to get users with display names that contain the letters 'wa' or the letters 'to' including a count of returned objects
#### Request
v1.0 https://docs.microsoft.com/en-us/graph/config/link-validation-config.json https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/config/link-validation-config.json
@@ -3,6 +3,7 @@
"/aspnet", "/azure", "/cloud-app-security",
+ "/defender-for-identity",
"/dotnet", "/dynamics-nav", "/exchange",
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/call-answer-service-hosted-media-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/call-answer-service-hosted-media-csharp-snippets.md new file mode 100644
@@ -0,0 +1,38 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var callbackUri = "https://bot.contoso.com/api/calls";
+
+var acceptedModalities = new List<Modality>()
+{
+ Modality.Audio
+};
+
+var mediaConfig = new ServiceHostedMediaConfig
+{
+ PreFetchMedia = new List<MediaInfo>()
+ {
+ new MediaInfo
+ {
+ Uri = "https://cdn.contoso.com/beep.wav",
+ ResourceId = "1D6DE2D4-CD51-4309-8DAA-70768651088E"
+ },
+ new MediaInfo
+ {
+ Uri = "https://cdn.contoso.com/cool.wav",
+ ResourceId = "1D6DE2D4-CD51-4309-8DAA-70768651088F"
+ }
+ }
+};
+
+await graphClient.Communications.Calls["57DAB8B1894C409AB240BD8BEAE78896"]
+ .Answer(callbackUri,mediaConfig,acceptedModalities)
+ .Request()
+ .PostAsync();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-mailboxsettings-1-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/csharp/get-mailboxsettings-1-csharp-snippets.md new file mode 100644
@@ -0,0 +1,16 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var me = await graphClient.Me
+ .Request()
+ .Select("MailboxSettings")
+ .GetAsync();
+
+var mailboxSettings = me.MailboxSettings;
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/call-answer-service-hosted-media-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/call-answer-service-hosted-media-java-snippets.md new file mode 100644
@@ -0,0 +1,31 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+String callbackUri = "https://bot.contoso.com/api/calls";
+
+LinkedList<Modality> acceptedModalitiesList = new LinkedList<Modality>();
+acceptedModalitiesList.add(Modality.AUDIO);
+
+ServiceHostedMediaConfig mediaConfig = new ServiceHostedMediaConfig();
+LinkedList<MediaInfo> preFetchMediaList = new LinkedList<MediaInfo>();
+MediaInfo preFetchMedia = new MediaInfo();
+preFetchMedia.uri = "https://cdn.contoso.com/beep.wav";
+preFetchMedia.resourceId = "1D6DE2D4-CD51-4309-8DAA-70768651088E";
+preFetchMediaList.add(preFetchMedia);
+MediaInfo preFetchMedia1 = new MediaInfo();
+preFetchMedia1.uri = "https://cdn.contoso.com/cool.wav";
+preFetchMedia1.resourceId = "1D6DE2D4-CD51-4309-8DAA-70768651088F";
+preFetchMediaList.add(preFetchMedia1);
+mediaConfig.preFetchMedia = preFetchMediaList;
+
+graphClient.communications().calls("57DAB8B1894C409AB240BD8BEAE78896")
+ .answer(callbackUri,mediaConfig,acceptedModalitiesList)
+ .buildRequest()
+ .post();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-mailboxsettings-1-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/java/get-mailboxsettings-1-java-snippets.md new file mode 100644
@@ -0,0 +1,13 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+MailboxSettings mailboxSettings = graphClient.customRequest("/me/mailboxSettings", MailboxSettings.class)
+ .buildRequest()
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/call-answer-service-hosted-media-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/call-answer-service-hosted-media-javascript-snippets.md new file mode 100644
@@ -0,0 +1,34 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const answer = {
+ callbackUri: "https://bot.contoso.com/api/calls",
+ acceptedModalities: [ "audio" ],
+ mediaConfig: {
+ @odata.type: "#microsoft.graph.serviceHostedMediaConfig",
+ preFetchMedia: [
+ {
+ uri: "https://cdn.contoso.com/beep.wav",
+ resourceId: "1D6DE2D4-CD51-4309-8DAA-70768651088E"
+ },
+ {
+ uri: "https://cdn.contoso.com/cool.wav",
+ resourceId: "1D6DE2D4-CD51-4309-8DAA-70768651088F"
+ }
+ ]
+ }
+};
+
+let res = await client.api('/communications/calls/57DAB8B1894C409AB240BD8BEAE78896/answer')
+ .post(answer);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-item-attachment-with-post-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/create-item-attachment-with-post-javascript-snippets.md new file mode 100644
@@ -0,0 +1,45 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const reply = {
+ post: {
+ body: {
+ contentType: "text",
+ content: "I attached an event."
+ },
+ attachments: [{
+ @odata.type: "#microsoft.graph.itemAttachment",
+ name: "Holiday event",
+ item: {
+ @odata.type: "microsoft.graph.event",
+ subject: "Discuss gifts for children",
+ body: {
+ contentType: "HTML",
+ content: "Let's look for funding!"
+ },
+ start: {
+ dateTime: "2019-12-02T18:00:00",
+ timeZone: "Pacific Standard Time"
+ },
+ end: {
+ dateTime: "2019-12-02T19:00:00",
+ timeZone: "Pacific Standard Time"
+ }
+ }
+ } ]
+ }
+};
+
+let res = await client.api('/groups/1848753d-185d-4c08-a4e4-6ee40521d115/threads/AAQkADJUdfolA==/reply')
+ .post(reply);
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-mailboxsettings-1-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/javascript/get-mailboxsettings-1-javascript-snippets.md new file mode 100644
@@ -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('/me/mailboxSettings')
+ .get();
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/call-answer-service-hosted-media-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/call-answer-service-hosted-media-objc-snippets.md new file mode 100644
@@ -0,0 +1,48 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/communications/calls/57DAB8B1894C409AB240BD8BEAE78896/answer"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+NSMutableDictionary *payloadDictionary = [[NSMutableDictionary alloc] init];
+
+NSString *callbackUri = @"https://bot.contoso.com/api/calls";
+payloadDictionary[@"callbackUri"] = callbackUri;
+
+NSMutableArray *acceptedModalitiesList = [[NSMutableArray alloc] init];
+[acceptedModalitiesList addObject: @"audio"];
+payloadDictionary[@"acceptedModalities"] = acceptedModalitiesList;
+
+MSGraphMediaConfig *mediaConfig = [[MSGraphMediaConfig alloc] init];
+NSMutableArray *preFetchMediaList = [[NSMutableArray alloc] init];
+MSGraphMediaInfo *preFetchMedia = [[MSGraphMediaInfo alloc] init];
+[preFetchMedia setUri:@"https://cdn.contoso.com/beep.wav"];
+[preFetchMedia setResourceId:@"1D6DE2D4-CD51-4309-8DAA-70768651088E"];
+[preFetchMediaList addObject: preFetchMedia];
+MSGraphMediaInfo *preFetchMedia = [[MSGraphMediaInfo alloc] init];
+[preFetchMedia setUri:@"https://cdn.contoso.com/cool.wav"];
+[preFetchMedia setResourceId:@"1D6DE2D4-CD51-4309-8DAA-70768651088F"];
+[preFetchMediaList addObject: preFetchMedia];
+[mediaConfig setPreFetchMedia:preFetchMediaList];
+payloadDictionary[@"mediaConfig"] = mediaConfig;
+
+NSData *data = [NSJSONSerialization dataWithJSONObject:payloadDictionary options:kNilOptions error:&error];
+[urlRequest setHTTPBody:data];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-item-attachment-with-post-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/create-item-attachment-with-post-objc-snippets.md new file mode 100644
@@ -0,0 +1,55 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groups/1848753d-185d-4c08-a4e4-6ee40521d115/threads/AAQkADJUdfolA==/reply"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+NSMutableDictionary *payloadDictionary = [[NSMutableDictionary alloc] init];
+
+MSGraphPost *post = [[MSGraphPost alloc] init];
+MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
+[body setContentType: [MSGraphBodyType text]];
+[body setContent:@"I attached an event."];
+[post setBody:body];
+NSMutableArray *attachmentsList = [[NSMutableArray alloc] init];
+MSGraphAttachment *attachments = [[MSGraphAttachment alloc] init];
+[attachments setName:@"Holiday event"];
+MSGraphOutlookItem *item = [[MSGraphOutlookItem alloc] init];
+[item setSubject:@"Discuss gifts for children"];
+MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
+[body setContentType: [MSGraphBodyType html]];
+[body setContent:@"Let's look for funding!"];
+[item setBody:body];
+MSGraphDateTimeTimeZone *start = [[MSGraphDateTimeTimeZone alloc] init];
+[start setDateTime: "2019-12-02T18:00:00"];
+[start setTimeZone:@"Pacific Standard Time"];
+[item setStart:start];
+MSGraphDateTimeTimeZone *end = [[MSGraphDateTimeTimeZone alloc] init];
+[end setDateTime: "2019-12-02T19:00:00"];
+[end setTimeZone:@"Pacific Standard Time"];
+[item setEnd:end];
+[attachments setItem:item];
+[attachmentsList addObject: attachments];
+[post setAttachments:attachmentsList];
+payloadDictionary[@"post"] = post;
+
+NSData *data = [NSJSONSerialization dataWithJSONObject:payloadDictionary options:kNilOptions error:&error];
+[urlRequest setHTTPBody:data];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-mailboxsettings-1-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/includes/snippets/objc/get-mailboxsettings-1-objc-snippets.md new file mode 100644
@@ -0,0 +1,22 @@
+---
+description: "Automatically generated file. DO NOT MODIFY"
+---
+
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/v1.0/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/mailboxSettings"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ MSGraphMailboxSettings *mailboxSettings = [[MSGraphMailboxSettings alloc] initWithData:data error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
\ No newline at end of file
v1.0 https://docs.microsoft.com/en-us/graph/resources/security-api-overview https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/resources/security-api-overview.md
@@ -31,8 +31,8 @@ Alerts from the following providers are available via the Microsoft Graph Securi
|[Azure Security Center](/azure/security-center/security-center-alerts-type)| <p align="center">&#x2713;</p> | <p align="center">&#x2713;</p> | <p align="center">&#x2713;</p> | |[Azure Active Directory Identity Protection](/azure/active-directory/identity-protection/playbook) | <p align="center">&#x2713;</p> | <p align="center">[File issue](https://github.com/microsoftgraph/security-api-solutions/issues/new) *</p> | <p align="center">&#x2713;</p> | | [Microsoft Cloud App Security](/cloud-app-security/monitor-alerts) | <p align="center">&#x2713;</p> | <p align="center">[File issue](https://github.com/microsoftgraph/security-api-solutions/issues/new) *</p> | <p align="center">&#x2713;</p> |
-|[Microsoft Defender Advanced Threat Protection](/windows/security/threat-protection/microsoft-defender-atp/attack-simulations) **| <p align="center">&#x2713;</p> | <p align="center">&#x2713;</p> | <p align="center"> [File issue](https://github.com/microsoftgraph/security-api-solutions/issues/new) </p> |
-|[Azure Advanced Threat Protection](/azure-advanced-threat-protection/understanding-security-alerts#security-alert-categories) ***| <p align="center">&#x2713;</p> | <p align="center">[File issue](https://github.com/microsoftgraph/security-api-solutions/issues/new) *</p> | <p align="center">&#x2713;</p> |
+|[Microsoft Defender for Endpoint](/windows/security/threat-protection/microsoft-defender-atp/attack-simulations) **| <p align="center">&#x2713;</p> | <p align="center">&#x2713;</p> | <p align="center"> [File issue](https://github.com/microsoftgraph/security-api-solutions/issues/new) </p> |
+|[Microsoft Defender for Identity](/defender-for-identity/understanding-security-alerts#security-alert-categories) ***| <p align="center">&#x2713;</p> | <p align="center">[File issue](https://github.com/microsoftgraph/security-api-solutions/issues/new) *</p> | <p align="center">&#x2713;</p> |
|Microsoft 365 <ul><li> [Default](/office365/securitycompliance/alert-policies#default-alert-policies)</li> <li>[Cloud App Security](/office365/securitycompliance/anomaly-detection-policies-in-ocas)</li><li>Custom Alert</li></ul> | <p align="center">&#x2713;</p> | <p align="center"> [File issue](https://github.com/microsoftgraph/security-api-solutions/issues/new) </p> | <p align="center"> [File issue](https://github.com/microsoftgraph/security-api-solutions/issues/new) </p> | |[Azure Information Protection](/azure/information-protection/faqs#i-see-azure-information-protection-is-listed-as-a-security-provider-for-microsoft-graph-securityhow-does-this-work-and-what-alerts-will-i-receive) **(preview)**| <p align="center">&#x2713;</p> | <p align="center">[File issue](https://github.com/microsoftgraph/security-api-solutions/issues/new) *</p> | <p align="center">&#x2713;</p> | |[Azure Sentinel](/azure/sentinel/quickstart-get-visibility) **(preview)**| <p align="center">&#x2713;</p> | <p align="center">Not supported in Azure Sentinel </p> | <p align="center">&#x2713;</p> |
@@ -40,9 +40,9 @@ Alerts from the following providers are available via the Microsoft Graph Securi
\* File issue: Alert status gets updated across Microsoft Graph Security API integrated applications but not reflected in the providerΓÇÖs management experience.
-\*\* Microsoft Defender Advanced Threat Protection requires additional [user roles](/windows/security/threat-protection/microsoft-defender-atp/user-roles) to those required by the Microsoft Graph Security API. Only the users in both Microsoft Defender Advanced Threat Protection and Microsoft Graph Security API roles can have access to the Microsoft Defender Advanced Threat Protection data. Because application-only authentication is not limited by this, we recommend that you use an application-only authentication token.
+\*\* Microsoft Defender for Endpoint requires additional [user roles](/windows/security/threat-protection/microsoft-defender-atp/user-roles) to those required by the Microsoft Graph Security API. Only the users in both Microsoft Defender for Endpoint and Microsoft Graph Security API roles can have access to the Microsoft Defender for Endpoint data. Because application-only authentication is not limited by this, we recommend that you use an application-only authentication token.
-\*\*\* Azure Advanced Threat Protection (Azure ATP) alerts are available via the Microsoft Cloud App Security integration. This means you will get Azure ATP alerts only if you have joined Unified SecOps and connected Azure ATP into Microsoft Cloud App Security. Learn more about [how to integrate Azure ATP and Microsoft Cloud App Security](/azure-advanced-threat-protection/atp-mcas-integration).
+\*\*\* Microsoft Defender for Identity alerts are available via the Microsoft Cloud App Security integration. This means you will get Microsoft Defender for Identity alerts only if you have joined Unified SecOps and connected Microsoft Defender for Identity into Microsoft Cloud App Security. Learn more about [how to integrate Microsoft Defender for Identity and Microsoft Cloud App Security](/defender-for-identity/mcas-integration).
## Information protection
v1.0 https://docs.microsoft.com/en-us/graph/resources/user https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/resources/user.md
@@ -134,7 +134,7 @@ This resource supports:
|assignedLicenses|[assignedLicense](assignedlicense.md) collection|The licenses that are assigned to the user. Not nullable. | |assignedPlans|[assignedPlan](assignedplan.md) collection|The plans that are assigned to the user. Read-only. Not nullable. | |birthday|DateTimeOffset|The birthday of the user. 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'`|
-|businessPhones|String collection|The telephone numbers for the user. NOTE: Although this is a string collection, only one number can be set for this property. <br>Read-only for users synced from on-premises directory. |
+|businessPhones|String collection|The telephone numbers for the user. NOTE: Although this is a string collection, only one number can be set for this property. <br><br>Read-only for users synced from on-premises directory. Returned by default.|
|city|String|The city in which the user is located. Supports `$filter`.| |companyName | String | The company name which the user is associated. This property can be useful for describing the company that an external user comes from. The maximum length of the company name is 64 chararcters.<br><br>Returned only on `$select`.| |consentProvidedForMinor|[consentProvidedForMinor](#consentprovidedforminor-values)|Sets whether consent has been obtained for minors. Allowed values: `null`, `granted`, `denied` and `notRequired`. Refer to the [legal age group property definitions](#legal-age-group-property-definitions) for further information.|
@@ -143,7 +143,7 @@ This resource supports:
|creationType|String|Indicates whether the user account was created as a regular school or work account (`null`), an external account (`Invitation`), a local account for an Azure Active Directory B2C tenant (`LocalAccount`) or self-service sign-up using email verification (`EmailVerified`). Read-only.| |deletedDateTime| DateTimeOffset | The date and time the user was deleted. <br><br>Returned only on `$select`. | |department|String|The name for the department in which the user works. Supports `$filter`.|
-|displayName|String|The name displayed in the address book for the user. This is usually the combination of the user's first name, middle initial and last name. This property is required when a user is created and it cannot be cleared during updates. Supports `$filter` and `$orderby`.|
+|displayName|String|The name displayed in the address book for the user. This is usually the combination of the user's first name, middle initial and last name. This property is required when a user is created and it cannot be cleared during updates. <br><br>Returned by default. Supports `$filter` and `$orderby`.|
| employeeHireDate | DateTimeOffset | The date and time when the user was hired or will start work in case of a future hire. <br><br>Returned only on `$select`. Supports `$filter`.| | employeeId | String | The employee identifier assigned to the user by the organization. <br><br>Returned only on `$select`. Supports `$filter`.| |employeeOrgData|[employeeOrgData](employeeorgdata.md) |Represents organization data (e.g. division and costCenter) associated with a user. <br><br>Returned only on `$select`.|
@@ -151,23 +151,23 @@ This resource supports:
|externalUserState|String|For an external user invited to the tenant using the [invitation API](../api/invitation-post.md), this property represents the invited user's invitation status. For invited users, the state can be `PendingAcceptance` or `Accepted`, or `null` for all other users. <br><br>Returned only on `$select`. Supports `$filter` with the supported values. For example: `$filter=externalUserState eq 'PendingAcceptance'`.| |externalUserStateChangeDateTime|DateTimeOffset|Shows the timestamp for the latest change to the **externalUserState** property. <br><br>Returned only on `$select`.| |faxNumber|String|The fax number of the user.|
-|givenName|String|The given name (first name) of the user. Supports `$filter`.|
+|givenName|String|The given name (first name) of the user. Returned by default. Supports `$filter`.|
| hireDate | DateTimeOffset | The hire date of the user. 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'`. <br><br>Returned only on `$select`. <br><br> **Note:** This property is specific to SharePoint Online. We recommend using the native **employeeHireDate** property to set and update hire date values using Microsoft Graph APIs. |
-|id|String|The unique identifier for the user. Should be treated as an opaque identifier. Inherited from [directoryObject](directoryobject.md). Key. Not nullable. Read-only.|
+|id|String|The unique identifier for the user. Should be treated as an opaque identifier. Inherited from [directoryObject](directoryobject.md). Key. <br><br>Not nullable. Read-only.|
|identities|[objectIdentity](objectIdentity.md) collection| Represents the identities that can be used to sign in to this user account. An identity can be provided by Microsoft (also known as a local account), by organizations, or by social identity providers such as Facebook, Google, and Microsoft, and tied to a user account. May contain multiple items with the same **signInType** value. <br>Supports `$filter`.| |imAddresses|String collection|The instant message voice over IP (VOIP) session initiation protocol (SIP) addresses for the user. Read-only.| |interests|String collection|A list for the user to describe their interests.| |isResourceAccount|Boolean| Do not use ΓÇô reserved for future use.|
-|jobTitle|String|The user's job title. Supports `$filter`.|
+|jobTitle|String|The user's job title. Returned by default. Supports `$filter`.|
|lastPasswordChangeDateTime| DateTimeOffset | The time when this Azure AD user last changed their password. The date and time information uses 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'| |legalAgeGroupClassification|[legalAgeGroupClassification](#legalagegroupclassification-values)| Used by enterprise applications to determine the legal age group of the user. This property is read-only and calculated based on **ageGroup** and **consentProvidedForMinor** properties. Allowed values: `null`, `minorWithOutParentalConsent`, `minorWithParentalConsent`, `minorNoParentalConsentRequired`, `notAdult` and `adult`. Refer to the [legal age group property definitions](#legal-age-group-property-definitions) for further information.| |licenseAssignmentStates|[licenseAssignmentState](licenseassignmentstate.md) collection|State of license assignments for this user. Read-only.|
-|mail|String|The SMTP address for the user, for example, "jeff@contoso.onmicrosoft.com". Supports `$filter`.|
+|mail|String|The SMTP address for the user, for example, "jeff@contoso.onmicrosoft.com". <br><br>Returned by default. Supports `$filter`.|
|mailboxSettings|[mailboxSettings](mailboxsettings.md)|Settings for the primary mailbox of the signed-in user. You can [get](../api/user-get-mailboxsettings.md) or [update](../api/user-update-mailboxsettings.md) settings for sending automatic replies to incoming messages, locale and time zone.| |mailNickname|String|The mail alias for the user. This property must be specified when a user is created. Supports `$filter`.|
-|mobilePhone|String|The primary cellular telephone number for the user. Read-only for users synced from on-premises directory. |
+|mobilePhone|String|The primary cellular telephone number for the user. Read-only for users synced from on-premises directory. Returned by default. |
|mySite|String|The URL for the user's personal site.|
-|officeLocation|String|The office location in the user's place of business.|
+|officeLocation|String|The office location in the user's place of business. Returned by default.|
|onPremisesDistinguishedName|String| Contains the on-premises Active Directory `distinguished name` or `DN`. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only. | |onPremisesDomainName|String| Contains the on-premises `domainFQDN`, also called dnsDomainName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only. | |onPremisesExtensionAttributes|[onPremisesExtensionAttributes](onpremisesextensionattributes.md)|Contains extensionAttributes 1-15 for the user. Note that the individual extension attributes are neither selectable nor filterable. For an `onPremisesSyncEnabled` user, the source of authority for this set of properties is the on-premises and is read-only. For a cloud-only user (where `onPremisesSyncEnabled` is false), these properties may be set during creation or update. These extension attributes are also known as Exchange custom attributes 1-15. |
@@ -183,7 +183,7 @@ This resource supports:
|passwordProfile|[passwordProfile](passwordprofile.md)|Specifies the password profile for the user. The profile contains the userΓÇÖs password. This property is required when a user is created. The password in the profile must satisfy minimum requirements as specified by the **passwordPolicies** property. By default, a strong password is required.| |pastProjects|String collection|A list for the user to enumerate their past projects.| |postalCode|String|The postal code for the user's postal address. The postal code is specific to the user's country/region. In the United States of America, this attribute contains the ZIP code.|
-|preferredLanguage|String|The preferred language for the user. Should follow ISO 639-1 Code; for example "en-US".|
+|preferredLanguage|String|The preferred language for the user. Should follow ISO 639-1 Code; for example "en-US". Returned by default.|
|preferredName|String|The preferred name for the user.| |provisionedPlans|[provisionedPlan](provisionedplan.md) collection|The plans that are provisioned for the user. Read-only. Not nullable. | |proxyAddresses|String collection|For example: `["SMTP: bob@contoso.com", "smtp: bob@sales.contoso.com"]` The **any** operator is required for filter expressions on multi-valued properties. Read-only, Not nullable. Supports `$filter`.|
@@ -195,9 +195,9 @@ This resource supports:
|signInSessionsValidFromDateTime|DateTimeOffset| Any refresh tokens or sessions tokens (session cookies) issued before this time are invalid, and applications will get an error when using an invalid refresh or sessions token to acquire a delegated access token (to access APIs such as Microsoft Graph). If this happens, the application will need to acquire a new refresh token by making a request to the authorize endpoint. Read-only. Use [revokeSignInSessions](../api/user-revokesigninsessions.md) to reset.| |state|String|The state or province in the user's address. Supports `$filter`.| |streetAddress|String|The street address of the user's place of business.|
-|surname|String|The user's surname (family name or last name). Supports `$filter`.|
+|surname|String|The user's surname (family name or last name). Returned by default. Supports `$filter`.|
|usageLocation|String|A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: "US", "JP", and "GB". Not nullable. Supports `$filter`.|
-|userPrincipalName|String|The user principal name (UPN) of the user. The UPN is an Internet-style login name for the user based on the Internet standard RFC 822. By convention, this should map to the user's email name. The general format is alias@domain, where domain must be present in the tenant's collection of verified domains. This property is required when a user is created. The verified domains for the tenant can be accessed from the **verifiedDomains** property of [organization](organization.md). Supports `$filter` and `$orderby`.
+|userPrincipalName|String|The user principal name (UPN) of the user. The UPN is an Internet-style login name for the user based on the Internet standard RFC 822. By convention, this should map to the user's email name. The general format is alias@domain, where domain must be present in the tenant's collection of verified domains. This property is required when a user is created. The verified domains for the tenant can be accessed from the **verifiedDomains** property of [organization](organization.md). <br><br>Returned by default. Supports `$filter` and `$orderby`.
|userType|String|A string value that can be used to classify user types in your directory, such as "Member" and "Guest". Supports `$filter`. | ### Legal age group property definitions