Docs
API reference

Update a webhook endpoint

PATCH
/api/v1/webhook-endpoints/{id}

Changes the fields you send. Changing url cancels deliveries still waiting for the old URL. Send the endpoint's revision as If-Match to refuse the change if someone updated the endpoint since you read it (revision_mismatch).

Required scope: webhooks:write.

Errors

  • 400: invalid_content_type, invalid_json, invalid_webhook_url, request_body_too_large, unknown_event_type, unknown_field
  • 401: authentication_required, invalid_api_key
  • 403: api_access_disabled, insufficient_scope
  • 404: webhook_endpoint_not_found
  • 412: revision_mismatch
  • 422: invalid_parameter
  • 429: rate_limit_exceeded
  • 500: api_error
  • 503: maintenance_mode, service_unavailable

Authorization

ApiKey
headerAuthorizationBearer <probb_live_<id>_<secret>>

Path Parameters

id*string

The webhook endpoint's ID.

Length1 <= length <= 200

Request Body

application/json
  1. body
url?string

Where to send events: an HTTPS URL on port 443 on the public Internet, without credentials or a fragment. Addresses inside private networks are refused.

Length1 <= length <= 2048
description?|

A label for you. Send null to clear it.

events?array<>

The event types to send, for example ["report.completed", "decision.updated"], or ["*"] for every current and future type. ping is not subscribable: it is sent only by the test endpoint.

Items1 <= items <= 100
status?string

paused stops sending; events that happen while paused are not sent later (read them from GET /v1/events). active resumes.

Value in"active""paused"

Response Body

Success.

application/json
  1. response
object*string
id*string

The endpoint's ID.

url*string

The HTTPS URL events are sent to.

description*|

A label for you, shown in the app.

events*array<string>

The event types sent to this endpoint, or ["*"] for every current and future type.

status*string

paused endpoints receive nothing; events that happen meanwhile are not sent later, but stay in GET /v1/events.

Value in"active""paused"
revision*string

Opaque token that changes whenever the endpoint does. Send it as If-Match on PATCH to refuse the change if someone else got there first.

previousSecretExpiresAt*|

While a rotated secret is still accepted, when the old one stops signing. Events are signed with both until then.

secretRotatedAt*|

When the signing secret was last rotated, if ever.

createdAt*string

When the endpoint was created.

Formatdate-time
updatedAt*string

When the endpoint last changed.

Formatdate-time
Example Request
# Set PROBB_URL and PROBB_API_KEY. Replace any *_VALUE placeholder and any example ID (such as job_example) with a real one.curl --fail-with-body -X PATCH "$PROBB_URL/api/v1/webhook-endpoints/ID_VALUE" \  -H "Authorization: Bearer $PROBB_API_KEY" \  -H 'Content-Type: application/json' \  --data-binary '{  "events": [    "*"  ],  "status": "active"}'
Example Response
{  "object": "webhook_endpoint",  "id": "string",  "url": "string",  "description": "string",  "events": [    "string"  ],  "status": "active",  "revision": "string",  "previousSecretExpiresAt": "2019-08-24T14:15:22Z",  "secretRotatedAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}