HomeGuidesAPI ReferenceChangelogDiscussions
GuidesiMIS ProfessionaliMIS EnterpriseClient SupportLog In
Discussions
These docs are for v20.3.44. Click to read the latest docs for v20.3.192.

Discussions

Ask a Question
Back to All

Put Request to Panel

I'm attempting to update a user defined panel field using the api. I can successfully complete GET requests but I always get a 500 Internal Server error back when using PUT.

I've tried using the two methods below. Is there a preferred way to do PUT requests?

jQuery.ajax("https://imistour3747.imiscloud.com/api/Test7/~18052|1", {
type : "PUT",
data:JSON.stringify({
"basketball": "false"
}),
contentType: "application/json",
headers: {"RequestVerificationToken": document.getElementById("__RequestVerificationToken").value},
success: function(data){console.log(data);}
})

jQuery.ajax({
url: "https://imistour3747.imiscloud.com/api/Test7/~18052|1",
type: 'PUT',
data: JSON.stringify({"basketball": "false"}),
DataType: 'application/json',
success: function(data){console.log(data);}
});