{"id":1603,"date":"2015-10-14T17:49:14","date_gmt":"2015-10-14T17:49:14","guid":{"rendered":"https:\/\/developer.microsoft.com\/en-us\/office\/blogs\/?p=1603"},"modified":"2015-10-14T17:49:14","modified_gmt":"2015-10-14T17:49:14","slug":"changes-to-reminders-timezones-and-photos-in-rest-api","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/changes-to-reminders-timezones-and-photos-in-rest-api\/","title":{"rendered":"Changes to reminders, timezones, and photos in REST API"},"content":{"rendered":"<p>We wanted to update you all on some more breaking changes that we are making to the Outlook REST API beta endpoint. These changes will be widely deployed over the next few weeks.<\/p>\n<h2>Reminders for events<\/h2>\n<p>The property <code>Reminder<\/code> will be removed from the Event entity, and two new properties <code>ReminderMinutesBeforeStart<\/code> and <code>IsReminderOn<\/code> will be added to the Event entity.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre><code> {\n \u00a0\u00a0\"ReminderMinutesBeforeStart\": \"15\", \n \u00a0\u00a0\"IsReminderOn\": \"true\" \n }<\/code><\/pre>\n<p>A new function <code>ReminderView<\/code> will also be added. This will return a list of reminders within the start and end times specified.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre><code> ...\/api\/Beta\/me\/ReminderView(startDateTime='2015-10-08T16:56:00',endDateTime='2015-10-12T00:56:00') <\/code><\/pre>\n<p>In addition to this, two new actions <code>Snooze<\/code> and <code>Dismiss<\/code> will be enabled. These actions can be used to snooze a reminder or dismiss a reminder after it has been fired.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<p><strong>Snooze:<\/strong><\/p>\n<pre><code> ...\/api\/Beta\/me\/Events('Id')\/SnoozeReminder \n \n {\n \u00a0\u00a0\"NewReminderTime\": {\n \u00a0\u00a0\u00a0\u00a0\"DateTime\":\"2015-10-13T08:30:00\",\n \u00a0\u00a0\u00a0\u00a0\"TimeZone\":\"Pacific Standard Time\"\n \u00a0\u00a0}\n }<\/code><\/pre>\n<p><strong>Dismiss:<\/strong><\/p>\n<pre><code> ...\/api\/Beta\/me\/Events('ID')\/DismissReminder <\/code><\/pre>\n<h2>Timezone<\/h2>\n<p>Based on feedback we received on the existing timezone implementation, <code>Start<\/code> and <code>End<\/code> properties for Event entities will now be a complex type of:<\/p>\n<pre><code> {\n \u00a0\u00a0DateTime\n \u00a0\u00a0Timezone\n }<\/code><\/pre>\n<p><code>Timezone<\/code> is mandatory for all create requests. It is also mandatory for update requests where start and end times are changed.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre><code> \"Start\": {\n \u00a0\u00a0DateTime: \"2015-09-25T16:00:00\",\n \u00a0\u00a0TimeZone: \"UTC\" \n }<\/code><\/pre>\n<p>Properties <code>StartTimezone<\/code> and <code>EndTimezone<\/code> will be removed from the Event entity and properties <code>OriginalStartTimezone<\/code> and <code>OriginalEndTimezone<\/code> will be added to the Event entity. <code>OriginalStartTimezone<\/code> and <code>OriginalEndTimezone<\/code> are meant to reflect what timezone was set when the event was created or updated.<\/p>\n<p>In addition to this, a new preference header <code>outlook.timezone<\/code> will be supported for all GET requests. This header can be used to get the events in a timezone that is different from the one it was created in.<\/p>\n<p>Example:<\/p>\n<pre><code> Prefer: outlook.timezone = \"Pacific Standard Time\" <\/code><\/pre>\n<p>Since a new type <code>DateTime<\/code> is being introduced, all &#8220;times&#8221; that are in any event related API will support the new <code>DateTime<\/code> format.<\/p>\n<p><strong>Examples:<\/strong><\/p>\n<p><strong>Sort<\/strong><\/p>\n<pre><code> ...\/api\/beta\/me\/Events?$orderby=Start\/DateTime <\/code><\/pre>\n<p><strong>Filter<\/strong><\/p>\n<pre><code> \/\/With outlook.timezone header as PST, time will be taken as PST \n ...\/api\/beta\/me\/Events?$filter=Start\/DateTime eq '2015-09-25T09:00:00' \n \n \/\/With no outlook.timezone header, time will be assumed as UTC\n ...\/api\/beta\/me\/Events?$filter=Start\/DateTime eq '2015-09-25T16:00:00' <\/code><\/pre>\n<p><strong>CalendarView\/Instances<\/strong><\/p>\n<pre><code> ...\/api\/beta\/me\/CalendarView?startDateTime=2015-09-25T16:00:00&amp;endDateTime=2015-09-25T17:00:20\n ...\/api\/beta\/me\/CalendarView?startDateTime=2015-09-25T16:00:00-08:00&amp;endDateTime=2015-09-25T17:00:20-08:00 <\/code><\/pre>\n<h2>Photos<\/h2>\n<p>We are renaming the <code>UserPhoto<\/code> property on User, <code>GroupPhoto<\/code> property on Group and <code>ContactPhoto<\/code> property on Contact to just <code>Photo<\/code>.<\/p>\n<p>More extensive documentation on the new functionality is coming soon in our API reference documentation page. Please let us know if you have any questions, and visit <a href=\"http:\/\/dev.outlook.com\/\">http:\/\/dev.outlook.com<\/a> for the latest news and updates.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We wanted to update you all on some breaking changes for reminders, timezones, and photos that we are making to the Outlook REST API beta endpoint. These changes will be widely deployed over the next few weeks.<\/p>\n","protected":false},"author":69077,"featured_media":25159,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3],"tags":[12],"class_list":["post-1603","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-graph","tag-outlook"],"acf":[],"blog_post_summary":"<p>We wanted to update you all on some breaking changes for reminders, timezones, and photos that we are making to the Outlook REST API beta endpoint. These changes will be widely deployed over the next few weeks.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/1603","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/users\/69077"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=1603"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/1603\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/25159"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=1603"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=1603"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=1603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}