{"id":14697,"date":"2023-07-18T09:21:19","date_gmt":"2023-07-18T16:21:19","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/?p=14697"},"modified":"2023-08-21T05:49:46","modified_gmt":"2023-08-21T12:49:46","slug":"breaking-changes-in-the-microsoft-graph-list-channels-api-beta","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/breaking-changes-in-the-microsoft-graph-list-channels-api-beta\/","title":{"rendered":"Breaking changes in the Microsoft Graph list channels API (beta)\u202f"},"content":{"rendered":"<p>For quite some time, we\u2019ve offered developers access to our Get List Channels API on the beta endpoint of Microsoft Graph. The Get List Channels API helps in fetching the list of channels for a team. However, as is sometimes the case with pre-production APIs, we\u2019re making a few necessary changes. Note that these are breaking changes that will impact developers whose solutions are currently calling these APIs.<\/p>\n<ul>\n<li><a class=\"Hyperlink SCXW90409321 BCX8\" href=\"https:\/\/learn.microsoft.com\/en-us\/graph\/api\/channel-list?view=graph-rest-beta&amp;tabs=http\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"TextRun Underlined SCXW90409321 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW90409321 BCX8\" data-ccp-charstyle=\"Hyperlink\">List channels &#8211; Microsoft Graph beta | Microsoft <\/span><span class=\"NormalTextRun SCXW90409321 BCX8\" data-ccp-charstyle=\"Hyperlink\">Learn<\/span><\/span><\/a><span class=\"EOP SCXW90409321 BCX8\" data-ccp-props=\"{&quot;134233118&quot;:true,&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:240}\">\u00a0<\/span>\n<ul>\n<li><a class=\"Hyperlink SCXW265742001 BCX8\" href=\"https:\/\/learn.microsoft.com\/en-us\/graph\/api\/team-list-allchannels?view=graph-rest-beta&amp;tabs=http\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"TextRun Underlined SCXW265742001 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW265742001 BCX8\" data-ccp-charstyle=\"Hyperlink\">List <\/span><span class=\"NormalTextRun SCXW265742001 BCX8\" data-ccp-charstyle=\"Hyperlink\">allChannels<\/span><span class=\"NormalTextRun SCXW265742001 BCX8\" data-ccp-charstyle=\"Hyperlink\"> &#8211; Microsoft Graph beta | Microsoft Learn<\/span><\/span><\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3><strong>Breaking changes to the Get List Channel APIs<\/strong><\/h3>\n<ul>\n<li>The\u00a0<code>moderationSettings<\/code>\u00a0property of channel resource will not be returned by default.<\/li>\n<li>To get <code>moderationSettings<\/code> property, users will have to use $select query.<\/li>\n<\/ul>\n<p>For more information, see the\u00a0<a href=\"https:\/\/learn.microsoft.com\/en-us\/graph\/api\/resources\/channel?view=graph-rest-1.0\">Channel resource type<\/a>\u00a0documentation.<\/p>\n<h3><strong>What do I need to do?<\/strong><\/h3>\n<p>Please update your code for consuming <code>moderationSettings<\/code> property. After the breaking change, calls to this API consuming <code>moderationProperty<\/code> <strong>without <\/strong><code>$select<\/code> will return nothing in response.<\/p>\n<p>The changes will take effect on the Microsoft Graph beta endpoint on August 30th, 2023. Follow changes and updates on the <a href=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/category\/microsoft-graph\/\">Microsoft Graph developer blog<\/a>.<\/p>\n<p>Happy coding!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For quite some time, we\u2019ve offered developers access to our Get List Channels API on the beta endpoint of Microsoft Graph. The Get List Channels API helps in fetching the list of channels for a team. However, as is sometimes the case with pre-production APIs, we\u2019re making a few necessary changes.<\/p>\n","protected":false},"author":123692,"featured_media":14718,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3],"tags":[252],"class_list":["post-14697","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-graph","tag-microsoft-graph-list-channels-api"],"acf":[],"blog_post_summary":"<p>For quite some time, we\u2019ve offered developers access to our Get List Channels API on the beta endpoint of Microsoft Graph. The Get List Channels API helps in fetching the list of channels for a team. However, as is sometimes the case with pre-production APIs, we\u2019re making a few necessary changes.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/14697","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\/123692"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=14697"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/14697\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/14718"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=14697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=14697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=14697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}