Skip to main content

Patch Endpoint

PATCH/v1/webhook-endpoints/{id}

Partially update an endpoint (url / events / metadata).

Authentication

Send Authorization: Bearer <API_KEY> in the request headers. Which resources an API Key can reach is determined by its current authorization scope.

Request​

Base URL: https://api.bluehola.com

Parameters​

NameInRequiredType / constraintsDescription
idpathYesstringThe callback endpoint ID, whe_...

Request body​

A request body is required.

Request body fields​

FieldTypeRequiredDescription
urlstringNoThe new callback address. Goes through the same SSRF checks — if that check only ran at creation time, a single url change would bypass the whole protection
eventsstring[]NoReplaces the subscription list (a full replacement, not an append). Same values as at creation: message, status, change, probe, job.completed, job.failed, usage.updated, webhook.verification, contact.identity_changed, contact.info_shared, marketing.preference_updated, phone_number.username_updated, *
metadataobjectNoCaller-defined data

Content-Type: application/json Schema:

{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "string · optional — the new callback address. **Goes through the same SSRF checks** — if that check only ran at creation time, a single url change would bypass the whole protection"
},
"events": {
"type": "string",
"description": "string[] · optional — replaces the subscription list (a full replacement, not an append)"
},
"metadata": {
"type": "string",
"description": "object · optional — caller-defined data"
}
}
}

Response​

StatusDescription
200OK
4xxClient error

For the common error envelope and how to handle it, see Error Codes.

Notes​

An empty body returns 400 rather than a silent 200: an empty patch usually means a field name was misspelled, and a silent success would leave the caller believing the change took effect. The secret is not returned.