Channels

Set permission overwrite for channel

Creates or updates permission overrides for a role or user in the channel. Allows fine-grained control over who can view, send messages, or manage the channel.

put/channels/{channel_id}/permissions/{overwrite_id}

Path parameters

channel_idstring snowflake required

The ID of the channel

overwrite_idstring required

The overwrite id

Request body

type0 | 1 required

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

allowstring int64
denystring int64

Response

No Content

Changes

Changed in 2 of the 4 revisions of this API.24

    • removed the NSFW_EMOJI_STICKER_BLOCKED enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the NSFW_EMOJI_STICKER_BLOCKED enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the NSFW_EMOJI_STICKER_BLOCKED enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the NSFW_EMOJI_STICKER_BLOCKED enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the INVALID_PACK_TYPE enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the INVALID_PACK_TYPE enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the INVALID_PACK_TYPE enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the INVALID_PACK_TYPE enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the MAX_PACKS enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the MAX_PACKS enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the MAX_PACKS enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the MAX_PACKS enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the MAX_PACK_EXPRESSIONS enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the MAX_PACK_EXPRESSIONS enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the MAX_PACK_EXPRESSIONS enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the MAX_PACK_EXPRESSIONS enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the PACK_ACCESS_DENIED enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the PACK_ACCESS_DENIED enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the PACK_ACCESS_DENIED enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the PACK_ACCESS_DENIED enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the UNKNOWN_PACK enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the UNKNOWN_PACK enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the UNKNOWN_PACK enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the UNKNOWN_PACK enum value from the response property for the response status

      response-property-enum-value-removed

    This revision also has 17 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog