Clone Campaign

Cloning a campaign saves time and you don't need to start an email campaign from scratch. Using this API, you can clone campaigns.

Request Type:

  • GET/POST

Scope required

  • ZohoCampaigns.campaign.CREATE

Other alternative scopes

  • ZohoCampaigns.campaign.CREATE-UPDATE (CREATE + UPDATE)
  • ZohoCampaigns.campaign.WRITE (CREATE + UPDATE + DELETE)
  • ZohoCampaigns.campaign.ALL (CREATE + UPDATE + DELETE + READ)

Header:

Authorization: Zoho-oauthtoken <access_token>

Request URL:

https://campaigns.zoho.com/api/v1.1/[xml/json]/clonecampaign

API Limit

  • Duration: 5 mins
  • Number of Calls: 500
  • Lock Period: 30 mins

You can send 500 API calls per 5 minutes. If you hit this limit, you can't use this API for the next 30 minutes due to security reasons, but you can still use other APIs if their lock period hasn’t been reached.

List of Parameters: -- Version 1.1

ParameterData TypeDescription
resfmtStringXML (or) JSON
campaigninfo*XML (or) JSONIt contains these internal params are campaignname,subject,from_name,from_add,reply_to,oldcampaignkey,encode_type and encode_type

* - Mandatory Parameters

Possible error cases

Error codeDescription
902No account present for this user.
903Mandatory fields are missing.
6610Email is not verified.
7001Error in campaign creation.

If your error code is not listed above, click here.

Sample XML Request

Copiedhttps://campaigns.zoho.com/api/v1.1/xml/clonecampaign?resfmt=XML&campaigninfo=<xml><fl val="campaignname">Sample</fl><fl val="subject">Sample</fl><fl val="oldcampaignkey">[campaignkey]</fl></xml>

Sample Response

Copied<response uri="/api/v1.1/json/clonecampaign" version="1.1">
	<status>success</status>
	<code>0</code>
	<associated_mailing_lists/>
	<segments_info/>
	<campaign-details>
		<fl val="reply_to"/>
		<fl val="campaign_name">Sample1</fl>
		<fl val="email_subject">Sam1ple</fl>
		<fl val="email_from"/>
	</campaign-details>
	<campaign_status>Draft</campaign_status>
</response>

Sample JSON Request

Copiedhttps://campaigns.zoho.com/api/v1.1/json/clonecampaign?resfmt=JSON&campaigninfo=%7B%22campaignname%22%3A%22Sample1%22%2C%22subject%22%3A%22Sam1ple%22%2C%22oldcampaignkey%22%3A%5Bcampaignkey%5D%2C%22from_name%22%3A%22John%22%2C%22from_add%22%3A%22john.doe%40xyz.com%22%2C%22reply_to%22%3A%22john.doe%40xyz.com%22%2C%22encode_type%22%3A%22UTF-8%22%7D

Sample Response

Copied{
  "status": "success",
  "code": "0",
  "url": "/api/v1.1/json/clonecampaign",
  "campaign-details": "[{reply_to=null, campaign_name=Sample1, email_subject=Sam1ple, email_from=null}]",
  "version": "1.1"
}