I am having trouble getting this block of code to work and I believe it to be on Google's end since the same code works flawlessly in Netbeans IDE. I am also able to PUT and POST the same data through Google script, but am not able to DELETE from it. I worry that although the documentation here states that UrlFetchApp is capable of deleting, it may not actually be implemented or working. I haven't found a single example online of someone using "method":"delete" with the URLFetchApp. Has anyone ever been able to make a delete work and if not, do you see anything with my existing code that would make a PUT and POST work and not a DELETE? Thanks!
var delete_options = {
'method' : 'DELETE',
'contentType': 'application/json',
'payload' : JSON.stringify(modifySkillsForAgentsPayload),
'headers' : {
'Authorization' : 'bearer ' + accessToken,
'Accept' : 'application/json'
}
};
UrlFetchApp.fetch(url,delete_options);