---
title: "Edits a webhook"
method: PATCH
path: "/webhooks/{webhook_id}"
tags: ["Webhooks"]
---

# Edits a webhook

`PATCH /webhooks/{webhook_id}`

Edits a webhook

## Path parameters

- `webhook_id` string, required

## Request body

- DataEditWebhook — New webhook information
  - `name` string, nullable — Webhook name
  - `avatar` string, nullable — Avatar ID
  - `permissions` integer, nullable — Webhook permissions
  - `remove` FieldsWebhook[] — Fields to remove from webhook

## Response `200`

- Webhook — Webhook
  - `id` string, required — Webhook Id
  - `name` string, required — The name of the webhook
  - `avatar` File — File
    - `_id` string, required — Unique Id
    - `tag` string, required — Tag / bucket this file was uploaded to
    - `filename` string, required — Original filename
    - `metadata` union, required — Metadata associated with a file
      - object — File is just a generic uncategorised file
        - `type` 'File', required
      - object — File contains textual data and should be displayed as such
        - `type` 'Text', required
      - object — File is an image with specific dimensions, and may be animated
        - `type` 'Image', required
        - `width` integer, required
        - `height` integer, required
        - `thumbhash` integer[], nullable
        - `animated` boolean, nullable
      - object — File is a video with specific dimensions
        - `type` 'Video', required
        - `width` integer, required
        - `height` integer, required
      - object — File is audio
        - `type` 'Audio', required
    - `content_type` string, required — Raw content type of this file
    - `size` integer, required — Size of this file (in bytes)
    - `deleted` boolean, nullable — Whether this file was deleted
    - `reported` boolean, nullable — Whether this file was reported
    - `message_id` string, nullable
    - `user_id` string, nullable
    - `server_id` string, nullable
    - `object_id` string, nullable — Id of the object this file is associated with
  - `creator_id` string, required — User that created this webhook
  - `channel_id` string, required — The channel this webhook belongs to
  - `permissions` integer, required — The permissions for the webhook
  - `token` string, nullable — The private token for the webhook

## Other responses

- `default` — An error occurred.

## Changes

> 6 revisions in range; 3 could not be searched.

- **2026-07-26** `7a23c8b93766` — 1 breaking
  - added `subschema #65, subschema #66, subschema #67, subschema #81, subschema #82, subschema #83, subschema #84, subschema #85, subschema #86, subschema #87, subschema #88, subschema #89, subschema #90, subschema #91, subschema #92, subschema #93, subschema #94, subschema #95` to the response body `oneOf` list for the response status `default`

[Change history](https://skmtc.dev/revolt/apis/revolt-api/changes/webhooks/:webhook_id/patch.md)

---

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