What is the right way to supply the post data?
The following is my call:
const httpResponse = await fetch(fullUrl, {
method: ‘POST’ ,
headers: {
‘Content-Type’ : ‘application/json’
},
body: ‘{“name”:“ttt”, “description”:“ddd”}’
});
The site monitor got the following error:
“status”:400,“error”:“Bad Request”,“message”:“Required String parameter ‘name’ is not present”.