I have setup Mattermost create channel github api on my website. Please provide curl command to create the a new channel.
I have tried below but it fails
curl -H "Content-Type: application/json" 'Authorization:Bearer (removed)' -X POST -d -H {"display_name":"testviaCurl","name":"testViaCurl","team_id":"(removed)","purpose":"","type":"O"} http://zzz.zzz.co/api/v1/channels/create
Let me know if the syntax is incorrect?