Skip to main content
PATCH
/
webhooks
/
{webhook_id}
cURL
curl --request PATCH \
  --url https://discord.com/api/v10/webhooks/{webhook_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "avatar": "<string>",
  "channel_id": "<unknown>"
}
'
{
  "application_id": "<unknown>",
  "avatar": "<string>",
  "channel_id": "<unknown>",
  "id": "<string>",
  "name": "<string>",
  "type": 3,
  "guild_id": "<unknown>",
  "user": {
    "id": "<string>",
    "username": "<string>",
    "avatar": "<string>",
    "discriminator": "<string>",
    "public_flags": 123,
    "flags": 0,
    "global_name": "<string>",
    "primary_guild": "<unknown>",
    "bot": true,
    "system": true,
    "banner": "<string>",
    "accent_color": 123,
    "avatar_decoration_data": "<unknown>",
    "collectibles": "<unknown>"
  }
}

Authorizations

Authorization
string
header
required

Discord bot token

Path Parameters

webhook_id
string<snowflake>
required

Body

application/json
name
string
Required string length: 1 - 80
avatar
string | null
channel_id
null | string<snowflake>

Response

200 response for update_webhook

application_id
null | string<snowflake>
required
avatar
string | null
required
channel_id
null | string<snowflake>
required
id
string<snowflake>
required
name
string
required
type
enum<integer>
required

Application webhooks are webhooks used with Interactions

Available options:
3
guild_id
null | string<snowflake>
user
object