I want to POST HTTP Request to URL like this http://serverurl/api and JSON format like this
{"RQST":{"name":"name","REQID":"1","LABELID":"2","CONTRACTTYPEID":"1","CONTRACTID":"3","TEMPLATEID":"4","PARAMS":[{"NUM":"1","CONTENT":"Content"}],"SCHEDULETIME":"","MOBILELIST":"84912345678","ISTELCOSUB":"0","AGENTID":"6","APIUSER":"user","APIPASS":"pass","USERNAME":"usn","DATACODING":"0"}}
I’ve tried to use http request like this picture
But result does not like expected, how can I do?
{
"nodes": [
{
"parameters": {
"requestMethod": "POST",
"url": "http://serverurl/api",
"allowUnauthorizedCerts": true,
"jsonParameters": true,
"options": {
"bodyContentType": "json"
},
"bodyParametersJson": "{\"RQST\":{\"name\":\"name\",\"REQID\":\"1\",\"LABELID\":\"2\",\"CONTRACTTYPEID\":\"1\",\"CONTRACTID\":\"3\",\"TEMPLATEID\":\"4\",\"PARAMS\":[{\"NUM\":\"1\",\"CONTENT\":\"Content\"}],\"SCHEDULETIME\":\"\",\"MOBILELIST\":\"84912345678\",\"ISTELCOSUB\":\"0\",\"AGENTID\":\"6\",\"APIUSER\":\"user\",\"APIPASS\":\"pass\",\"USERNAME\":\"usn\",\"DATACODING\":\"0\"}}"
},
"name": "HTTP Request1",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
520,
460
]
}
],
"connections": {}
}