Developers
Build bots, integrations, and extensions.
cURL
curl --request PUT \ --url https://api.magne.app/v1/channels/{channelId}/permissions/{targetId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "targetType": "<string>", "allowBits": 123, "denyBits": 123 } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "channelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "roleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "allowBits": 123, "denyBits": 123, "createdAt": "2023-11-07T05:31:56Z" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
role or member
Success
Permission allow bitmask
Permission deny bitmask