---
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.

---

[API](https://skmtc.net/revolt/apis/revolt-api.md) · [All operations](https://skmtc.net/revolt/apis/revolt-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/revolt/revolt-api/versions/a235e4654b18/schema)
