Hi,
how to call post api from script using node.
below code is give me > 400 Bad Request
platform.api.post("mysql/_table/employee",{"resource": [payload]}, '', function(body, response){
console.log(response.statusCode + " " + response.statusMessage);
event.setResponse(JSON.parse(body), response.statusCode, 'applicaton/json');
});
any idea how to call api from script and what am I doing wrong ?