curl -X POST "https://api.example.com/campaign/update/550e8400-e29b-41d4-a716-446655440000" \
-H "Authorization: Bearer <api_key>" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Campaign Name",
"notes": "Updated campaign notes",
"company_id": "550e8400-e29b-41d4-a716-446655440000",
"owner_user_id": "550e8400-e29b-41d4-a716-446655440001",
"status": "active",
"campaign_type": "outbound",
"contacts_list_source": ["web", "manual"],
"contacts_list_tags": [["vip"], ["new-customer"]],
"contacts_list_categories": [["sales"], ["support"]],
"contacts_list_source_metadata": {
"web": {
"source_url": "https://example.com"
}
},
"agent_variables_contact_metadata_mapping": {
"first_name": "contact.firstname"
},
"ai_agent_id": "550e8400-e29b-41d4-a716-446655440002",
"call_progress": 50,
"call_time_of_day_from": "09:00:00",
"call_time_of_day_to": "17:00:00",
"number_of_call_attempts": [3, 5],
"retry_delay": [60, 120],
"retry_delay_unit": ["seconds", "seconds"],
"days_of_week": [1, 2, 3, 4, 5],
"time_zone": "UTC",
"inbound_phone_number_id": "550e8400-e29b-41d4-a716-446655440003",
"outbound_phone_number_id": "550e8400-e29b-41d4-a716-446655440004",
"allow_non_local_calls": true,
"created_at": "2023-10-01T12:00:00Z",
"updated_at": "2023-10-01T12:00:00Z",
"deleted_at": null,
"started_at": "2023-10-01",
"ended_at": "2023-10-31",
"webhook_mapping_variables": {
"event": "call_completed"
},
"webhook_mapping_variables_sources": {
"event": "system"
},
"webhook_id": "550e8400-e29b-41d4-a716-446655440005"
}'