Clone Campaign

Clone Campaign

Users can clone the campaign using our API authentication token.

Request URL

XML/ JSON

XML : https://campaigns.zoho.com/api/xml/clonecampaign

JSON : https://campaigns.zoho.com/api/json/clonecampaign

Request Type: Get/ Post

List of Parameters

Parameter

Data Type

Description

authtoken*
scope*

String
String

API Authentication Token
CampaignsAPI

version

String

This will fetch responses based on the current API version

resfmt

String

XML (or) JSON

campaigninfo*

XML (or) JSON

It contains these internal params are campaignname,subject,from_name,from_add,reply_to,oldcampaignkey,encode_type and encode_type

* - Mandatory Parameters

Sample Request:

XML

https://campaigns.zoho.com/api/xml/clonecampaign?authtoken=[API Authentication Token]&scope=CampaignsAPI&version=1&campaigninfo=<xml><fl val="campaignname">Sample</fl><fl val="subject">Sample</fl><fl val="oldcampaignkey">[campaignkey]</fl></xml>&resfmt=[XML]

JSON

https://campaigns.zoho.com/api/json/clonecampaign?authtoken=[API Authentication Token]&scope=CampaignsAPI&version=1&campaigninfo={"campaignname":"Sample1","subject":"Sam1ple","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:

Our API response will let you know of the following be it in the XML or JSON format.

XML Format:

<response uri="/api/json/clonecampaign" version="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>

JSON format:

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

Possible error cases

Error code Description
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.

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohocampaigns.com