Hello I have this code and I want to send the value of the array (replace the test text) to the api using http put call
var test = allSectionsArray[0];
var data= {
OasysStr: "test"
}
function httpPut(newName){
var myString = "https://test/Test/";
$.ajax({
url: myString + newName,
type: "PUT",
processData: false,
contentType: "application/json; charset=UTF-8",
data: JSON.stringify(data)
}).done(function(data){
document.getElementById("testingBox7").innerHTML = JSON.stringify(data);
});
};
Any ideas? Thank you for your time