---
title: "update webhook"
method: PATCH
path: "/webhooks/{uuid}"
tags: ["Webhooks"]
---

# update webhook

`PATCH /webhooks/{uuid}`

Update the specified **webhook**.
#### For custom components:
`RaiselyComponents.api.one('webhooks', '{uuid}').patch(data = {}, params = {}, headers = {}) => Promise<{result}>`

 :fa-gears: See [Restie Response Data](https://github.com/raisely/restie#reading-and-handling-responses) for a more detailed overview of responses through the client wrapper

## Path parameters

- `uuid` string, required

## Query parameters

- `private` boolean

## Headers

- `Authorization` string

## Request body

- object
  - `data` UpdateWebhook
    - `events` unknown[] — Array of events to forward to the webhook Examples: `badge.awarded`, `badge.revoked`, `donation.created`, `donation.deleted`, `donation.succeeded`, `donation.updated`, `donation.refunded`, `donation.achDisputed`, `post.created`, `post.deleted`, `post.updated`, `profile.created`, `profile.deleted`, `profile.totalUpdated`, `profile.exerciseTotalUpdated`, `profile.updated`, `profile.memberAdded`, `profile.memberRemoved`, `subscription.created`, `subscription.deleted`, `subscription.failed`, `subscription.failing`, `subscription.succeeded`, `subscription.rebilled`, `subscription.updated`, `subscription.paused`, `subscription.resumed`, `subscription.cancelled`, `subscription.achDisputed`, `subscription.achVerificationEmailSent`, `donation.achVerificationEmailSent`, `user.created`, `user.updated`, `order.created`, `order.succeeded`
      - unknown
    - `secret` string — A shared secret for use with your webhook. This will be included in the payload from Raisely so you can verify it is authentic.
    - `url` string — The url to send the webhooks to Example: `https://myapp.com/raisely`

## Response `200`

The updated Webhook record

- object
  - `data` UpdateResultWebhook
    - `uuid` string — Unique identifier for the record
    - `createdAt` string — Date and time the record was created
    - `campaignUuid` string — Filter events to the specific campaign only. If omitted you will receive events for the whole Raisely account.
    - `events` unknown[] — Array of events to forward to the webhook
      - unknown
    - `secret` string — A shared secret for use with your webhook. This will be included in the payload from Raisely so you can verify it is authentic.
    - `url` string — The url to send the webhooks to

## Other responses

- `400` — The request requires a body, but the body was missing
- `401` — Authorization credentials were missing or invalid
- `403` — The user is authenticated, but is not allowed to perform the requested operation
- `404` — One of the records needed to complete the request could not be found
- `409` — The operation cannot be completed because it would result in a duplicate record
- `410` — The requested record no longer exists, or that API has been deprecated
- `412` — Operation cannot proceed with the record in it's current state
- `429` — You have made too many requests to the given endpoint, please try again later
- `500` — An unexpected error has occurred with Raisely. If the error persists you can contact support@raisely.com

---

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