Help CenterVying
Open Vying
Menu

Update a Webhook

PATCH/webhooks/{webhookId}

Update an existing outbound webhook subscription.

Send at least one field.

Needs write access. About keys

Request

curl -X PATCH "https://app.vyingfor.com/api/v1/webhooks/{webhookId}" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Results alerts"}'

Parameters

NameInTypeDescription
webhookId requiredPathstring

Webhook subscription UUID.

Body

FieldTypeDescription
brandIdstring or null

Brand ID to scope this webhook to, or null for organization-wide delivery. A key limited to some brands can't set this to null.

namestring

Between 1 and 120 characters.

urlstring

An https address on a public server, up to 2,048 characters, with no username or password in it.

preset"json" | "slack" | "teams"
events("report.ready" | "action.verdict_settled" | "visibility.alert" | "sentiment.alert" | "webhook.test")[]

At least one event.

enabledboolean

Turning a webhook back on, or changing its url, clears its failure count.

Response

200 Updated webhook subscription

FieldTypeDescription
idstring

Unique identifier for the webhook subscription.

organizationIdstring

Organization identifier that owns this webhook.

brandIdstring or null

Brand identifier when scoped to a single brand, or null for all brands in the organization.

namestring

Display name for the webhook.

urlstring

HTTPS destination URL (port 443, public IP only).

preset"json" | "slack" | "teams"

Payload formatting preset.

events("report.ready" | "action.verdict_settled" | "visibility.alert" | "sentiment.alert" | "webhook.test")[]

Subscribed event types.

secretLastFourstring

Last four characters of the current HMAC signing secret.

enabledboolean

Whether the webhook receives live events.

consecutiveFailuresinteger

Consecutive terminal delivery failures since the last successful delivery or URL/enable reset.

disabledReasonstring or null

Automatic disablement reason when the circuit breaker trips, or null.

lastFailureAtstring or null

Timestamp of the most recent terminal delivery failure, or null.

createdByUserIdstring or null

User ID of the creator when created from the dashboard. Null when the webhook was made through the API.

createdAtstring

Timestamp when the webhook was created.

updatedAtstring

Timestamp when the webhook was last updated.

Errors