Hi @limey98,
I have installed and configured mattermost and is working around with the API’s provided by MM. I am getting the proper response for the GET commands, but getting the issue for the post commands. For creating the channel I am using below command:
curl -X POST -H “Authorization: Bearer ###########” -d ‘{“create_at”:“1459589056740”,“update_at”:“1459589056740”,“team_id”“gxab7sa1u3bkbptpen79auty3h”,“type”:“O”,“display_name”:“TestChannelviaCu”,“name”:“testAJchannel”,“purpose”:“checkcurl”,“creator_id”“4oq6zik6d3rppd6gxk5hretb7o”,“last_post_at”:0,“total_msg_count”:0,“user_id”:“4oq6zik6d3rppd6gxk5hretb7o”}’ http://mydomain.co/api/v1/channels/create_direct
and getting this response…
{“id”:“api.context.invalid_param.app_error”,“message”:“Invalid user_id parameter”,“detailed_error”:"",“request_id”:“s4tmksfbgj86zm14dyj4cmo1cw”,“status_code”:400,“is_oauth”:false}
Is there any format which I can use to create channel? I have digged out most of the docs provided by MM but didn’t found any POST command which I can modify to create channel.