Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
API ReferenceComputeWebhooks

Update a webhook (name/url/events)

Changes a webhook's name, URL or subscribed events and returns it. A field left out keeps its value; the signing secret and enabled state are not changed. Whatever it changes, an update needs the access the webhook's events need on create, since a new URL would redirect them.

Required permission

Requires the webhook.write permission. See Permissions for the roles and API key permissions that include it.

Command line

The orl CLI wraps this endpoint:

orl webhooks update <id>
PATCH
/v1/orgs/{orgId}/webhooks/{id}

Authorization

apiKey
headerAuthorizationBearer <token>

OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).

Path Parameters

orgId*string
id*string

Request Body

application/json
  1. body
name?string
url?string
events?array<>

Replaces the event list, with the names and rules of create. Absent keeps the list as it is. A name outside this list is stored but never delivered (see create); * is not a wildcard.

Response Body

Updated

application/json
  1. response
id*string
name*string
url*string
events*array<string>

The event types this webhook receives. Empty means the four vm events.

Example Request
curl -X PATCH 'https://api.openrelay.inc/v1/orgs/string/webhooks/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "string",  "name": "string",  "url": "string",  "events": [    "string"  ]}