Webhooks
Patch Webhooks
Update a webhook.
PATCH
/
v1
/
webhooks
/
{_id}
curl --request PATCH \
--url https://api.aicaller.io/v1/webhooks/{_id} \
--header 'Content-Type: application/json' \
--header 'aicaller-api-key: <api-key>' \
--data '{
"url": "https://hooks.abc.com/",
"subscribedEvents": [
"phoneCall.completed"
],
"method": "GET"
}'
{
"data": {
"teamId": "363573667364666473667332",
"url": "https://hooks.abc.com/",
"subscribedEvents": [
"phoneCall.completed"
],
"method": "GET",
"_id": "363573667364666473667332",
"createAt": "2023-10-12T09:08:00.387Z",
"updatedAt": "2023-10-12T09:08:00.387Z"
}
}
Authorizations
Path Parameters
Unique ID of the Webhook
Body
application/json
Response
200
application/json
Webhook successfully updated
The response is of type object
.
curl --request PATCH \
--url https://api.aicaller.io/v1/webhooks/{_id} \
--header 'Content-Type: application/json' \
--header 'aicaller-api-key: <api-key>' \
--data '{
"url": "https://hooks.abc.com/",
"subscribedEvents": [
"phoneCall.completed"
],
"method": "GET"
}'
{
"data": {
"teamId": "363573667364666473667332",
"url": "https://hooks.abc.com/",
"subscribedEvents": [
"phoneCall.completed"
],
"method": "GET",
"_id": "363573667364666473667332",
"createAt": "2023-10-12T09:08:00.387Z",
"updatedAt": "2023-10-12T09:08:00.387Z"
}
}
Assistant
Responses are generated using AI and may contain mistakes.