HI am trying to make an HTTP PUT request to my API. I am getting back the error 405 and 415 depending on how I change the URL.
The ID I am trying to change is 26 and I want to change the testDesc to test5.
Any ideas? Thank you for your time.
function httpPut() {
$.ajax({
url: "https://someurl/Test/26",
type: "PUT",
'data': {
testDesc: "test5",
},
}).done(function(data) {
document.getElementById("testingBox7").innerHTML = JSON.stringify(data);
});
};