Update webhook endpoint
update_webhook_endpointEdit a webhook endpoint (requires the admin role). Only the fields sent change; a secret sent replaces the stored one. Events are POSTed as JSON with an HMAC signature in X-Cluby-Signature (t=<unix>,v1=<hex hmac-sha256(secret, "<t>.<body>")>). Event types: smart_link.scanned (A member scanned a smart link or NFC tag whose target names a venue (sent to every endpoint subscribed to it; posRef only to the endpoint the tag is tied to).). Includes (optional sections added to each event's data): profile (The member's display name, profile photo URL and the date they joined the event's venue.), membershipCards (Membership / VIP cards the member holds at the venue, valid now.), benefits (Benefits the member can activate at the venue right now — a spent one, one outside its schedule, or a members-only one the member does not hold is left out (name, price text, and for the POS channel an actionId and its single-use redeemUrl).), stampCards (The member's stamp cards in the organization, with stamps and the number to fill (and for the POS channel an actionId and awardStampUrl on the cards that run at the scanned venue).), items (Items the member holds that are usable at the scanned venue — rewards earned (a full stamp card, a birthday gift) and products bought — with units left (and for the POS channel an actionId and a useUrl, good for as many uses as there are units, at most 10).).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | A public HTTPS URL. Private, link-local and loopback addresses are refused, and redirects are not followed. | |
| name | No | A label for lists and alerts. The URL's host by default. | |
| orgId | No | Organization public id, the `id` field from list_orgs. Omit it when the API key reaches exactly one organization. | |
| events | No | The event types to receive. `smart_link.scanned` by default. | |
| secret | No | The key events are signed with. Omit it to have one generated (`whsec_…`), returned once and never again. Use the whole string, prefix included, as the HMAC key. A new one replaces the old at once. | |
| enabled | No | `false` stops deliveries without deleting the endpoint. | |
| includes | No | What each event carries beyond its own data: `profile`, `membershipCards`, `benefits`, `stampCards`, `items`. None by default; a POS connection's own endpoint gets all of them. | |
| endpointId | Yes | Webhook endpoint `id` from list_webhook_endpoints |