I'm trying to create a private channel in a Team using the Microsoft Graph API. I'm using the beta
API because the membershipType
(to make the channel private) is not available in the 1.0
API. My code was working fine until yesterday, now I get a 502 Bad Gateway
error, with message Failed to execute backend request.
:
Server error: `POST https://graph.microsoft.com/beta/teams/{my-team-id-is-here}/channels` resulted in a `502 Bad Gateway` response:
{
"error": {
"code": "BadGateway",
"message": "Failed to execute backend request.",
"innerError": {
"request-id": "2ceece83-e3ff-455d-bc7b-b82f5454269f",
"date": "2020-04-17T12:45:12"
}
}
}
The JSON body sent with this request :
displayName = "Private Channel Test"
membershipType = "private"
description = "Test"
I have all the privileges in my AccessToken
and I am Owner
of this team. If I switch to the 1.0
API with the same code, the channel get created, but is public, which is correct because the membershipType
is not available in this API, but here I need to create private channels, not public.
The scope of my Token :
Files.ReadWrite.All Group.ReadWrite.All GroupMember.Read.All offline_access openid People.Read.All profile Sites.Read.All Sites.ReadWrite.All User.Read User.Read.All
Did anyone ever had this problem, and a solution?