Update Webhook

Update an existing webhook’s configuration.

HTTP Request

$PATCH https://app.resemble.ai/api/v2/agents/{agent_uuid}/webhooks/{id}

URL Parameters

ParameterTypeDescription
agent_uuidstringThe agent’s UUID
idintegerThe webhook ID

Request Body

AttributeTypeDescription
webhook_typestringUpdate webhook type (optional)
webhook_configobjectUpdate webhook configuration (optional)

See Create Webhook for detailed webhook_config structure and validation rules.

Example Request

$curl --request PATCH "https://app.resemble.ai/api/v2/agents/550e8400-e29b-41d4-a716-446655440000/webhooks/1" \
> -H "Authorization: Bearer YOUR_API_TOKEN" \
> -H "Content-Type: application/json" \
> --data '{
> "webhook_config": {
> "api_schema": {
> "url": "https://api.example.com/v2/pre-call",
> "method": "POST"
> },
> "assignments": [],
> "response_timeout_secs": 15
> }
> }'

Response (Success)

1{
2 "success": true,
3 "item": {
4 "id": 1,
5 "webhook_type": "pre_call",
6 "webhook_config": {
7 "api_schema": {
8 "url": "https://api.example.com/v2/pre-call",
9 "method": "POST"
10 },
11 "assignments": [],
12 "response_timeout_secs": 15
13 },
14 "created_at": "2025-01-27T10:00:00Z",
15 "updated_at": "2025-01-27T10:30:00Z"
16 },
17 "message": "Webhook updated successfully"
18}

Response (Error)

1{
2 "success": false,
3 "errors": {
4 "webhook_config": [
5 "api_schema must include 'url'"
6 ]
7 },
8 "message": "Failed to update webhook"
9}

See Also