Could someone help on this ?
Here is one of the test methods that return this response message :
public static void PostStockUnal(int sourceApiId)
{
string accessToken = "Zoho-oauthtoken " + token // generated with other method
HttpContent content = new StringContent(stockReport, Encoding.UTF8, "application/json");
Console.WriteLine("Start Request");
HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Accept.Clear();
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("multipart/form-data"));
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", accessToken);
Console.WriteLine("Content = " + content.Headers);
var x = content.ReadAsStringAsync().Result;
Console.WriteLine("Content = " + x);
var resp = client.PostAsync("https://apidocs.zoho.com/files/v1/upload" + "?filename=Stock_snapshot20210210.json&fid=lz6x5c7bb900ad31343eeb9fe1a76c63d2a52"
, content).Result;
Console.WriteLine("Resp Status Code= " + resp.StatusCode);
Console.WriteLine("Res Read=" + resp.Content.ReadAsStringAsync().Result);
Console.WriteLine(resp.ToString());
if (resp.IsSuccessStatusCode)
{
JsonConvert.DeserializeObject<StockUploadResponse>(resp.Content.ReadAsStringAsync().Result);
}
Console.ReadLine();
}