> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrape.st/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Webhook

> Update the webhook URL for your API key

Update the webhook URL associated with your API key. You must have already created a webhook before updating it.

<Note>
  Returns a **404** error if no existing webhook is found for your API key. Use
  the [Create Webhook](/rest-api-reference/create-webhook) endpoint first.
</Note>

<Note>
  Updating also re-activates a webhook that was auto-paused (`status: "FAILED"`)
  after repeated delivery failures — it resets `status` back to `ACTIVE` and
  resumes delivery. See [Delivery & Failure
  Handling](/rest-api-reference/create-webhook#delivery-%26-failure-handling).
</Note>

## Request Body

<ParamField body="url" type="string" required>
  The new webhook URL. Must be a valid HTTPS URL.
</ParamField>

## Response

<ResponseField name="message" type="string">
  Status message confirming the update.
</ResponseField>

<RequestExample>
  ```bash theme={null}
  curl -X PATCH https://scrape.st/webhook \
    -H "x-api-key: YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "url": "https://your-domain.com/new-webhook"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "message": "Webhook updated successfully"
  }
  ```
</ResponseExample>
