{"id":12194,"date":"2022-11-04T10:25:43","date_gmt":"2022-11-04T17:25:43","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/?p=12194"},"modified":"2022-11-04T10:25:43","modified_gmt":"2022-11-04T17:25:43","slug":"breaking-changes-for-the-microsoft-graph-insights-api","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/breaking-changes-for-the-microsoft-graph-insights-api\/","title":{"rendered":"Breaking changes for the Microsoft Graph Insights API\u00a0\u00a0"},"content":{"rendered":"<p><span data-contrast=\"none\">Today, we\u2019re announcing an upcoming breaking change for developers using the<\/span><span data-contrast=\"none\"> Microsoft Graph<\/span><span data-contrast=\"none\"> Insights API. The Insights API enables various partners to filter and show user centric experience for various scenarios.<\/span><span data-ccp-props=\"{&quot;134233118&quot;:true}\">\u00a0<\/span><\/p>\n<h2>About the breaking change<\/h2>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"1\" data-aria-level=\"1\"><span data-contrast=\"none\">In the resourceVisualization complex type in the\u202f<\/span><a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/insights-list-used?view=graph-rest-1.0&amp;tabs=http\"><span data-contrast=\"none\">List used \u2013 Microsoft Graph v1.0 | Microsoft Docs<\/span><\/a><span data-contrast=\"none\">\u202fAPI, there\u2019s a property containerType which can be either \u201cSite\u201d or \u201cOneDriveBusiness\u201d (ODB) depending on whether an item is in a SharePoint site or an ODB site.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:true,&quot;134233118&quot;:true}\">\u00a0<\/span><\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"2\" data-aria-level=\"1\"><span data-contrast=\"none\">Currently when representing the container itself, this mapping is inconsistent and returns \u201cSite\u201d for both properties.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:true,&quot;134233118&quot;:true}\">\u00a0<\/span><\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"3\" data-aria-level=\"1\"><span data-contrast=\"none\">After the change is enabled, we will return \u201cSite\u201d for the SharePoint site, and, for consistency, we will return \u201cOneDriveBusiness\u201d for the ODB site item.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:true,&quot;134233118&quot;:true}\">\u00a0<\/span><\/li>\n<\/ul>\n<h2>What do I need to do?<\/h2>\n<p><span data-contrast=\"none\">Please verify if your existing code requires an update to reflect the corrected container value. The corrected mapping will enable you and other partner teams to better distinguish SharePoint sites from ODB sites.<\/span><span data-ccp-props=\"{&quot;134233118&quot;:true}\">\u00a0<\/span><span data-contrast=\"none\">This change will go into effect <\/span><span data-contrast=\"none\">at<\/span> <span data-contrast=\"none\">the <\/span><b><span data-contrast=\"none\">end of November<\/span><\/b><b><span data-contrast=\"none\"> 2022<\/span><\/b><span data-contrast=\"none\">.<\/span><span data-ccp-props=\"{&quot;134233118&quot;:true}\">\u00a0<\/span><\/p>\n<h2>Resources<\/h2>\n<ul>\n<li>Visit the <a href=\"https:\/\/developer.microsoft.com\/graph\" target=\"_blank\" rel=\"noopener\">Microsoft Graph Dev Center<\/a><\/li>\n<li><a href=\"https:\/\/learn.microsoft.com\/graph\/\" target=\"_blank\" rel=\"noopener\">Read our documentation<\/a><\/li>\n<li>Follow us on <a href=\"https:\/\/twitter.com\/Microsoft365Dev\" target=\"_blank\" rel=\"noopener\">@Microsoft365Dev)\/Twitter<\/a><\/li>\n<li><a href=\"https:\/\/pnp.github.io\/\" target=\"_blank\" rel=\"noopener\">Join our community<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, we\u2019re announcing an upcoming breaking change for developers using the Microsoft Graph Insights API. The Insights API enables various partners to filter and show user centric experience for various scenarios.\u00a0 About the breaking change In the resourceVisualization complex type in the\u202fList used \u2013 Microsoft Graph v1.0 | Microsoft Docs\u202fAPI, there\u2019s a property containerType which [&hellip;]<\/p>\n","protected":false},"author":69077,"featured_media":12215,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3],"tags":[216],"class_list":["post-12194","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-graph","tag-insights-api"],"acf":[],"blog_post_summary":"<p>Today, we\u2019re announcing an upcoming breaking change for developers using the Microsoft Graph Insights API. The Insights API enables various partners to filter and show user centric experience for various scenarios.\u00a0 About the breaking change In the resourceVisualization complex type in the\u202fList used \u2013 Microsoft Graph v1.0 | Microsoft Docs\u202fAPI, there\u2019s a property containerType which [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/12194","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=12194"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/12194\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/12215"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=12194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=12194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=12194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}