curl --location --request PUT 'https://api.weya.live/backend/api/webhooks/6890abc123456789abcdef01' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"url": "https://your-domain.com/webhook/v2"
}'
{
"status": true,
"code": 200,
"message": "Webhook updated successfully",
"errorMessage": null,
"data": {
"_id": "6890abc123456789abcdef01",
"name": "Salesforce CRM Sync",
"url": "https://your-domain.com/webhook/v2",
"isActive": true,
"updatedAt": "2026-11-19T09:00:00.000Z"
}
}
Webhooks
Update Webhook
Change a webhook’s name, URL or bearer token.
PUT
/
api
/
webhooks
/
{webhookId}
curl --location --request PUT 'https://api.weya.live/backend/api/webhooks/6890abc123456789abcdef01' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"url": "https://your-domain.com/webhook/v2"
}'
{
"status": true,
"code": 200,
"message": "Webhook updated successfully",
"errorMessage": null,
"data": {
"_id": "6890abc123456789abcdef01",
"name": "Salesforce CRM Sync",
"url": "https://your-domain.com/webhook/v2",
"isActive": true,
"updatedAt": "2026-11-19T09:00:00.000Z"
}
}
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 (
_idfrom Get Webhooks)
Request
curl --location --request PUT 'https://api.weya.live/backend/api/webhooks/6890abc123456789abcdef01' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"url": "https://your-domain.com/webhook/v2"
}'
Request Parameters
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
{
"status": true,
"code": 200,
"message": "Webhook updated successfully",
"errorMessage": null,
"data": {
"_id": "6890abc123456789abcdef01",
"name": "Salesforce CRM Sync",
"url": "https://your-domain.com/webhook/v2",
"isActive": true,
"updatedAt": "2026-11-19T09:00:00.000Z"
}
}
Error Handling
Errors returnstatus: 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 awebhookIdthat 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.
Was this page helpful?

