v1

latestOpenAPI 3.0.32026-07-24156161.2 MB
Campaigns

Clone campaign (Create)

The Clone campaign API method enables to clone/duplicate a campaign and all details, based on the campaign id.

post/campaigns/clone

Request body

campaign_idnumber
default_caller_idnumber

Example request

{
  "campaign_id": 999,
  "default_caller_id": 123456789
}

Response

Successful operation

Example response

{
  "campaigns": [
    {
      "advanced_call_fields": "[\"original_identifier\",\"first_name\",\"last_name\",\"phone_normalized\",\"country_name\",\"timezone_name\"]",
      "agent_callerid_name": "DevTestAg",
      "agent_callerid_number": "972526123456",
      "amd_enabled": "0",
      "amd_max_duration": "2",
      "amd_settings": "",
      "auto_dial": "0",
      "auto_dial_delay": "0",
      "available_agent_search_timeout": "10",
      "campaign_type": "",
      "client_callerid_name": "DevTest",
      "client_callerid_number": "972526789456",
      "created_at": "2024-10-28 12:08:20",
      "creator_user_id": "1",
      "custom_call_fields": "[\"campaignleadid\",\"original_identifier\",\"first_name\",\"last_name\",\"phone_normalized\"]",
      "default_answer_status": "77",
      "default_busy_status": "0",
      "default_caller_id": "123456789",
      "default_direct_dial_status": "0",
      "default_error_status": "0",
      "default_fax_status": "0",
      "default_not_exists_status": "0",
      "default_permanent_expiration_days": "5",
      "default_remote_adapter_channel_id": "0",
      "default_timeout_status": "0",
      "default_voice_mail_status": "0",
      "default_weight": "0",
      "description": "[clone of] DevTestCampaign3",
      "end_call_show_timeout": "5",
      "feedback_default_status": "0",
      "feedback_timeout": "3000",
      "fetch_leads_type": "unsorted",
      "hide_voicemail_for_no_ratio_permanents": "0",
      "highest_priority_weight": "10005",
      "highest_priority_weight_ratio_level": "0",
      "id": "13",
      "iframe_call_fields": "[\"original_identifier\",\"first_name\",\"last_name\",\"phone_normalized\",\"country_name\",\"timezone_name\"]",
      "is_active": "1",
      "is_caller_id_random": "1",
      "is_deleted": "0",
      "is_hold_enabled": "1",
      "min_weight": "0",
      "name": "[clone of] DevTestCampaign3",
      "no_ratio_leads_fetching_method": "queue",
      "notify_user_about_online_lead": "1",
      "override_dropped_call_action": "0",
      "parent_id": null,
      "permanent_agent_offline_keepalive": "3",
      "permanent_callback_keepalive": "1",
      "permanent_daily_limit": "0",
      "permanent_expiration_active": "0",
      "permanent_total_limit": "0",
      "phone_mask_mode": "first",
      "predictive_call_ratio": "0",
      "predictive_call_timeout": "30",
      "predictive_fallback_action": "",
      "predictive_fallback_action_options": "",
      "predictive_fallback_action_timeout": "11",
      "predictive_preservation_min_ringing_duration": "40",
      "predictive_ringing_preservation_ratio": "0",
      "redial_limit": "0",
      "remote_call_screen_enabled": "0",
      "remote_data_url": "https://www.codegrepper.com/",
      "remote_javascript_code": "",
      "show_phone_symbols": "3",
      "updated_at": "2024-10-28 12:08:20",
      "voice_mail_button_status": "0",
      "voicemail_button_hide_timeout": "40",
      "voicemail_time_options": "once"
    }
  ]
}