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.
Scope required
- ZohoMarketingAutomation.campaign.CREATE
Other alternative scopes
- ZohoMarketingAutomation.campaign.CREATE-UPDATE (CREATE + UPDATE)
- ZohoMarketingAutomation.campaign.WRITE (CREATE + UPDATE + DELETE)
- ZohoMarketingAutomation.campaign.ALL (CREATE + UPDATE + DELETE + READ)
Header:
Authorization: Zoho-oauthtoken <access_token>
Request Type:
- GET/POST
Request URL
https://marketingautomation.zoho.com/api/v1/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
Parameter | Data Type | Description |
version | String | This will fetch responses based on the current API version |
resfmt | String | JSON |
campaigninfo* | JSON | Internal parameters are,
|
* - Mandatory Parameters
Possible error cases
Error code | Description |
902 | No account present for this user. |
903 | Mandatory fields are missing. |
6610 | Email is not verified. |
7001 | Error in campaign creation. |
If your error code is not listed above, click here.
Sample request
Copiedhttps://marketingautomation.zoho.com/api/json/clonecampaign?version=1&campaigninfo={"campaignname":"Sample1","subject":"Sample","oldcampaignkey":[campaignkey],"from_name":"John","from_add":"john.doe@xyz.com","reply_to":"john.doe@xyz.com","encode_type":"UTF-8"}&resfmt=[JSON]
Sample Response
Copied{
"status": "success",
"code": "0",
"url": "/api/json/clonecampaign",
"campaign-details": "[{reply_to=null, campaign_name=Sample1, email_subject=Sam1ple, email_from=null}]",
"version": "1"
}