Normally, I use this form for PUT Request.
pm.sendRequest({
url: pm.environment.get("baseUrl"),
method: 'PUT',
header: {
'content-type': 'application/json'
},
body: {
mode: 'raw',
raw: JSON.stringify({
id: 'DCAE0BFB-4B71-4576-9255-9F2BF80B0E79',
persinId: 'DCAE0BFB-4B71-4576-9255-9F2BF80B0E79',
code: "es-es",
})
}, (err, res) => console.log(res)
});
Unfortunately, when I change the method for DEL, nothing happen.