I have created custom folder but not i want to PUT my content into that folder.
Following is my line of code:
Campaign campaign = new
{
name = "Campaign143",
campaignType = "",
type = "Campaign",
startAt = ConvertToUnixEpoch(new DateTime(DateTime.Now.Year, DateTime.Now.Month - 1, DateTime.Now.Day, 00, 00, 00, 00)),
endAt = ConvertToUnixEpoch(new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 00, 00, 00, 00))
};
RestRequest request = new RestRequest(Method.POST)
{
//// Created "NewFolder" in campaign and trying tu put content into it..
Resource = string.Format("/assets/campaign/NewFolder"),
RequestFormat = DataFormat.Json
};
request.AddBody(campaign);
IRestResponse<Campaign> response = _client.Execute<Campaign>(request);
return response;
after executing this code i am getting NULL value in response.
Can any buddy tell what is the solution of it.??