Hi Guys,
Trying API for first time. I am able to do GET sheet details successfully.
But when i post to create new row/column i am getting the following error "Invalid Content-Type header. Media type not supported" for the below code
var client = new RestClient("https://api.smartsheet.com/2.0/sheets/239613.../columns");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer zd......");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("undefined", "{\"title\":\"New Date Columnyf\", \"type\":\"DATE\", \"validation\":\"true\", \"index\":4}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
I am able to POST successfully in Postman. Just C# code won't work.
I appreciate any help resolving this.
Thanks!