Create Channel: /channel/ (POST)

Purpose:

This endpoint allows a user with the appropriate permissions to create a new channel.

Input:

  • Headers:
    • Content-Type: application/json
    • Client-Secret: (Optional) A header to authenticate the request.
    • Authorization: The JWT token of the user.
  • JSON Body:
    • name: (String) The name of the channel.
    • description: (String) The description of the channel.

Output (200):

{
  "id": "6e649b51-da04-4390-8c7e-de4a1ee642ec",
  "name": "General",
  "description": "General discussion"
}