Skip to main content
PUT
/
channels
/
{channel_id}
/
permissions
/
{overwrite_id}
Set permission overwrite for channel
curl --request PUT \
  --url https://api.fluxer.app/v1/channels/{channel_id}/permissions/{overwrite_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": 0,
  "allow": "<string>",
  "deny": "<string>"
}
'
{
  "code": "ACCESS_DENIED",
  "message": "<string>",
  "errors": [
    {
      "path": "<string>",
      "message": "<string>",
      "code": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.

Path Parameters

channel_id
string<snowflake>
required

The ID of the channel

overwrite_id
string
required

The overwrite id

Body

application/json
type
enum<integer>
required

The type of overwrite (0 = role, 1 = member)

Available options:
0,
1
allow
string<int64>
deny
string<int64>

Response

No Content