Create Channel Role Access: /channel-role-access/ (POST)

Purpose:

This endpoint allows the creation of a new channel-role access entry. This entry links a role to a channel, specifying access permissions.

Input:

  • Headers:
    • Content-Type: application/json
    • Client-Secret: (Optional) A header to authenticate the request.
    • Authorization: The JWT token of the user.
  • JSON Body:
    • channel_id: (Uuid) The id of the channel.
    • role_id: (Uuid) The id of the role.

Output (200):

{
  "id": "bfcbb58c-be2b-496d-8288-47ff904c0327",
  "channel_id": "e941d457-10bc-41be-bb49-7d69f987538a",
  "role_id": "1dd0d0b6-d75c-4fec-a3e7-ac83c8855b67",
  "deleted": false
}