---
title: "PATCH /webhooks/{webhook_id}"
method: PATCH
path: "/webhooks/{webhook_id}"
---

# PATCH /webhooks/{webhook_id}

`PATCH /webhooks/{webhook_id}`

## Request body

- object
  - `name` string
  - `avatar` string, byte, nullable
  - `channel_id` string, snowflake

## Response `200`

200 response for update_webhook

- union
  - ApplicationIncomingWebhookResponse
    - `application_id` string, snowflake
    - `avatar` string, nullable
    - `channel_id` string, snowflake
    - `guild_id` string, snowflake
    - `id` string, snowflake, required
    - `name` string, required
    - `type` union, required
      - 1 — Incoming Webhooks can post messages to channels with a generated token
      - 2 — Channel Follower Webhooks are internal webhooks used with Channel Following to post new messages into channels
      - 3 — Application webhooks are webhooks used with Interactions
    - `user` UserResponse
      - `id` string, snowflake, required
      - `username` string, required
      - `avatar` string, nullable
      - `discriminator` string, required
      - `public_flags` integer, required
      - `flags` integer, required
      - `bot` boolean
      - `system` boolean
      - `banner` string, nullable
      - `accent_color` integer, nullable
      - `global_name` string, nullable
      - `avatar_decoration_data` UserAvatarDecorationResponse
        - `asset` string, required
        - `sku_id` string, snowflake
      - `collectibles` UserCollectiblesResponse
        - `nameplate` UserNameplateResponse — unresolved $ref
      - `primary_guild` UserPrimaryGuildResponse
        - `identity_guild_id` string, snowflake
        - `identity_enabled` boolean, nullable
        - `tag` string, nullable
        - `badge` string, nullable
  - ChannelFollowerWebhookResponse
    - `application_id` string, snowflake
    - `avatar` string, nullable
    - `channel_id` string, snowflake
    - `guild_id` string, snowflake
    - `id` string, snowflake, required
    - `name` string, required
    - `type` union, required
      - 1 — Incoming Webhooks can post messages to channels with a generated token
      - 2 — Channel Follower Webhooks are internal webhooks used with Channel Following to post new messages into channels
      - 3 — Application webhooks are webhooks used with Interactions
    - `user` UserResponse
      - `id` string, snowflake, required
      - `username` string, required
      - `avatar` string, nullable
      - `discriminator` string, required
      - `public_flags` integer, required
      - `flags` integer, required
      - `bot` boolean
      - `system` boolean
      - `banner` string, nullable
      - `accent_color` integer, nullable
      - `global_name` string, nullable
      - `avatar_decoration_data` UserAvatarDecorationResponse
        - `asset` string, required
        - `sku_id` string, snowflake
      - `collectibles` UserCollectiblesResponse
        - `nameplate` UserNameplateResponse — unresolved $ref
      - `primary_guild` UserPrimaryGuildResponse
        - `identity_guild_id` string, snowflake
        - `identity_enabled` boolean, nullable
        - `tag` string, nullable
        - `badge` string, nullable
    - `source_guild` WebhookSourceGuildResponse
      - `id` string, snowflake, required
      - `icon` string, nullable
      - `name` string, required
    - `source_channel` WebhookSourceChannelResponse
      - `id` string, snowflake, required
      - `name` string, required
  - GuildIncomingWebhookResponse
    - `application_id` string, snowflake
    - `avatar` string, nullable
    - `channel_id` string, snowflake
    - `guild_id` string, snowflake
    - `id` string, snowflake, required
    - `name` string, required
    - `type` union, required
      - 1 — Incoming Webhooks can post messages to channels with a generated token
      - 2 — Channel Follower Webhooks are internal webhooks used with Channel Following to post new messages into channels
      - 3 — Application webhooks are webhooks used with Interactions
    - `user` UserResponse
      - `id` string, snowflake, required
      - `username` string, required
      - `avatar` string, nullable
      - `discriminator` string, required
      - `public_flags` integer, required
      - `flags` integer, required
      - `bot` boolean
      - `system` boolean
      - `banner` string, nullable
      - `accent_color` integer, nullable
      - `global_name` string, nullable
      - `avatar_decoration_data` UserAvatarDecorationResponse
        - `asset` string, required
        - `sku_id` string, snowflake
      - `collectibles` UserCollectiblesResponse
        - `nameplate` UserNameplateResponse — unresolved $ref
      - `primary_guild` UserPrimaryGuildResponse
        - `identity_guild_id` string, snowflake
        - `identity_enabled` boolean, nullable
        - `tag` string, nullable
        - `badge` string, nullable
    - `token` string
    - `url` string, uri

## Other responses

- `429` — Client ratelimited response
- `4XX` — Client error response

---

[API](https://skmtc.dev/discord/apis/discord-http-api-preview.md) · [All operations](https://skmtc.dev/discord/apis/discord-http-api-preview/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/discord/discord-http-api-preview/revisions/e4fdf8b45809/schema)
