Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 868 Bytes

File metadata and controls

23 lines (18 loc) · 868 Bytes
description Automatically generated file. DO NOT MODIFY
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.models.channel import Channel
from msgraph_beta.generated.models.channel_membership_type import ChannelMembershipType
from msgraph_beta.generated.models.channel_layout_type import ChannelLayoutType
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = Channel(
	display_name = "Project Collaboration",
	description = "Discussion space for project team collaboration",
	membership_type = ChannelMembershipType.Standard,
	layout_type = ChannelLayoutType.Chat,
)

result = await graph_client.teams.by_team_id('team-id').channels.post(request_body)