I’m trying to update a spreadsheet on a website with a jQuery ajax call through an api. The rest API that I’m using requires that I use a PUT request with csv data. When I execute the below script, I get a 204 content created, but when I visit the page, my content isn’t added.
$.ajax({
url:'/data/workspaces/yada/sheets/yada',
type:'PUT',
data:'a,b,c;d,e,f'
})
How do I properly include my data?
I think you need to set the contentType: