Skip to main content
PATCH
/
guilds
/
{guild_id}
/
channels
cURL
curl --request PATCH \
  --url https://discord.com/api/v10/guilds/{guild_id}/channels \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "id": "<unknown>",
    "position": 1,
    "parent_id": "<unknown>",
    "lock_permissions": true
  }
]
'
{
  "code": 123,
  "message": "<string>",
  "retry_after": 123,
  "global": true
}

Authorizations

Authorization
string
header
required

Discord bot token

Path Parameters

guild_id
string<snowflake>
required

Body

application/json
id
null | string<snowflake>
position
integer<int32> | null
Required range: x >= 0
parent_id
null | string<snowflake>
lock_permissions
boolean | null

Response

204 response for bulk_update_guild_channels