Skip to main content
PUT

Overview

Update a webhook in your organization. Send only the fields you want to change; at least one is required.

Prerequisites

  • An API key for your workspace
  • The webhook’s ID (_id from Get Webhooks)

Request

string
required
Your workspace API key. Create one from the profile menu in the dashboard → API Keys.
string
required
ID of the webhook to update.

Request Parameters

string
New name for the webhook.
string
New URL to send call outcomes to. Must be a valid http or https URL.
string
New token to send as Authorization: Bearer <token>. Send an empty string to stop sending one.
boolean
Stored flag only. Setting it to false does not stop deliveries. To stop a webhook, remove it from the campaign’s pushingCrms with Update Campaign, or delete it.

Response

object
required
The updated webhook, including its bearerToken.

Error Handling

Errors return status: false, with the reason in errorMessage.
  • 400 Bad Request – No updatable fields provided, Invalid Webhook URL format, Invalid protocol. Only http and https are allowed., or a webhookId that isn’t a valid ID.
  • 401 Unauthorized – Missing or invalid API key.
  • 404 Not Found – Webhook not found or unauthorized: the webhook doesn’t exist in your organization.
  • 500 Internal Server Error – Unexpected server error.