Mandatory fields are not found error while scheduling the mail campaign using api
Hello,
I'm getting this below error while scheduling mail campaign using api..
my code below:
- string access_token = GenerateAccessTokenByRefreshToken();
- var RestClient = new RestClient("https://campaigns.zoho.com/api/sendcampaign?isschedule=true&authtoken="+ access_token + "&scope=ZohoCRM.modules.all,ZohoCampaigns.campaign.ALL,Aaaserver.profile.Read&resfmt=JSON&campaignkey=3f9b684d7df659d2fc04d6948be30cb435be57b81e35b5b4&scheduleDate=07/18/2019&scheduleHour=12&scheduleMinute=40&am_pm=PM&sendingTZ=Asia/Kolkata");
- var request = new RestRequest(Method.POST);
- request.AddHeader("Authorization","Zoho-oauthtoken "+ access_token);
- request.AddHeader("cache-control", "no-cache");
- IRestResponse response = RestClient.Execute(request);
- var ScheduleCamp = JsonConvert.DeserializeObject<ScheduleCamp>(response.Content);
response
- {"code":"903","campaign_status":"Draft","message":"Mandatory Fields are not found","uri":"/api/sendcampaign","version":"1"}