Skip to main content
PUT
/
v1
/
businesses
/
{businessId}
/
update
/
webhooks
/
{webhookId}
Update Webhook
curl --request PUT \
  --url https://api.example.com/v1/businesses/{businessId}/update/webhooks/{webhookId} \
  --header 'Content-Type: application/json' \
  --data '
{
  "address": "<string>",
  "configuration": {
    "echo": true,
    "channelTypes": [
      {}
    ],
    "filters": [
      {
        "field": "<string>",
        "expression": "<string>"
      }
    ],
    "webengageConfiguration": {
      "webengageToken": "<string>",
      "webengageWebhookUrl": "<string>"
    }
  }
}
'
Update the destination URL or configuration of an existing webhook registration. Only the fields you include in the request body are changed β€” omitting a field keeps its current value.
You cannot change the topic of an existing registration. To switch topics, delete the registration and create a new one.

Endpoint

PUT https://api.connectly.ai/v1/businesses/{businessId}/update/webhooks/{webhookId}
Retrieve the webhookId from the Get webhooks response.

Request body

address
string
New destination URL. Must be a publicly accessible HTTPS endpoint.
configuration
object
Updated configuration. Any fields you provide overwrite the existing values.

Examples

curl --request PUT \
  --url https://api.connectly.ai/v1/businesses/{businessId}/update/webhooks/{webhookId} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: YOUR_API_KEY' \
  --data '{
    "address": "https://example.com/webhook-v2"
  }'
curl --request PUT \
  --url https://api.connectly.ai/v1/businesses/{businessId}/update/webhooks/{webhookId} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: YOUR_API_KEY' \
  --data '{
    "configuration": {
      "echo": true,
      "channelTypes": ["whatsapp"],
      "filters": [
        { "field": "campaign_name", "expression": "prod-*" }
      ]
    }
  }'
curl --request PUT \
  --url https://api.connectly.ai/v1/businesses/{businessId}/update/webhooks/{webhookId} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: YOUR_API_KEY' \
  --data '{
    "address": "https://example.com/webhook-v2",
    "configuration": {
      "echo": false,
      "channelTypes": ["whatsapp"],
      "filters": [
        { "field": "campaign_name", "expression": "prod-*" }
      ]
    }
  }'

Response

{ "id": "wh_01ARZ3NDEKTSV4RRFFQ69G5FAV" }

Error responses

StatusMeaning
400Malformed body or invalid field values.
401Missing or invalid X-API-Key.
404The specified webhookId does not exist.
500Internal server error.