---
title: "Update Webhook"
method: PUT
path: "/api/webhooks/{webhook_id}"
tags: ["Webhooks"]
---

# Update Webhook

`PUT /api/webhooks/{webhook_id}`

Update an existing webhook

## Request body

- object
  - `endpoint_url` string, required — The URL of your webhook endpoint.
  - `events` string[], required — An array of webhook events to subscribe to. For all options, refer to our **List Available Events** endpoint.
  - `enabled` boolean, nullable — Optionally, enabled/disable the webhook. This will stop/resume the sending of events, without having to delete the webhook.
  - `account_scope` string, required — The account scope for the webhook. Use "global" for all accounts, "inclusive" for only selected accounts, or "exclusive" for all except selected accounts.
  - `account_ids` string[] — An array of account IDs to apply the scope to. Required unless account_scope is "global".

## Response `200`

- object
  - `data` object
    - `id` string
    - `url` string
    - `events` string[]
    - `has_signing_secret` boolean
    - `enabled` boolean
    - `created_at` string
  - `_meta` object
    - `_credits` object
      - `used` integer
      - `balance` integer
      - `note` string
    - `_cache` object
      - `is_cached` boolean
      - `note` string
    - `_rate_limits` object
      - `limit_minute` integer
      - `limit_day` integer
      - `remaining_minute` integer
      - `remaining_day` integer

---

[API](https://skmtc.net/onlyfansapi/apis/onlyfans-api.md) · [All operations](https://skmtc.net/onlyfansapi/apis/onlyfans-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onlyfansapi/onlyfans-api/revisions/4a99d36f28a3/schema)
