Hello All,
I am looking to use cURL for some basic API updates to my sheets. I have used it successfully to pull down data for columns/summary sections, but when I try using the sample cURL to add a field (after updating the cURL for my sheetID and APIkey), it throws errors. Any idea why this might be happening. Wondering also what access I need as I am an admin (business plan) to the sheet and am able to use cURL to pull data. Here is the string I am using:
https://api.smartsheet.com/2.0/sheets/1234567890/columns \-H "Authorization: Bearer MYSMARTAPIKEY" \-H "Content-Type: application/json" \-X POS
T \-d '[{"index":0,"locked":"false","lockedForUser":"false","title":"PM","type":"TEXT_NUMBER"}]'
{
"errorCode" : 1004,
"message" : "You are not authorized to perform this action.",
"refId" : "s86osu"
}curl: (3) URL using bad/illegal format or missing URL
curl: (3) URL using bad/illegal format or missing URL
curl: (3) URL using bad/illegal format or missing URL
curl: (3) URL using bad/illegal format or missing URL
curl: (3) URL using bad/illegal format or missing URL
curl: (6) Could not resolve host: POST
curl: (3) URL using bad/illegal format or missing URL
curl: (3) bad range specification in URL position 3:
'[{index:0,locked:false,lockedForUser:false,title:PM,type:TEXT_NUMBER}]'
^