Skip to content

Instantly share code, notes, and snippets.

@JeffBrownTech
Created April 23, 2020 23:48
Show Gist options
  • Save JeffBrownTech/5e9f34d2907b009db8af09b47cb6a682 to your computer and use it in GitHub Desktop.
Save JeffBrownTech/5e9f34d2907b009db8af09b47cb6a682 to your computer and use it in GitHub Desktop.
Create Graph API request to create a Teams channel
$channelBody =
'{
"displayName": "Channel from Graph API",
"description": "Demo how to make a channel using graph api"
}'
$newChannel = Invoke-RestMethod -Uri "https://graph.microsoft.com/v1.0/teams/$($newTeam.id)/channels" -Method POST -Headers $headers -Body $channelBody
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment