Skip to main content
PATCH
/
v1
/
api
/
webhooks
Update an existing webhook
curl --request PATCH \
  --url https://backend.blooio.com/v1/api/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "webhook_url": "https://example.com/mywebhook"
}'
{
  "success": true,
  "message": "Webhook updated"
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header as Bearer YOUR_API_KEY.

Body

application/json
webhook_url
string<uri>
required

The webhook URL to update (required to identify which webhook to update).

Example:

"https://example.com/mywebhook"

webhook_type
enum<string>

Update the webhook type.

Available options:
message,
all
Example:

"all"

valid_until
integer | null

Update the expiration timestamp. Use null or -1 for no expiration.

Example:

-1

deprecate
boolean

Set to true to deprecate (disable) the webhook, or false to reactivate it.

Example:

false

Response

Webhook updated successfully.

success
boolean
message
string