Manage And Connect Using APIs

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

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,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

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.doe@xyz.com","reply_to":"john.doe@xyz.com","encode_type":"UTF-8"}&resfmt=[XML/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"}

Top