Created
April 23, 2020 23:48
-
-
Save JeffBrownTech/5e9f34d2907b009db8af09b47cb6a682 to your computer and use it in GitHub Desktop.
Create Graph API request to create a Teams channel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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