Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everyone!
I need to send POST request with body. I use tRESTClient and this component does not get request body.
I tested my query by Postman, and its works.
Detalis of my query
POST api http://fgv-t-sv-biprfx.fgv.ua/api/login
HTTP body {"email":"<email>", "password": "<password>"}
Headers
My TOS Job
consists of the following components
tFixeFlowInut - pass Email and password by inline content
tWriteJSONField - Convert email and password to JSON object into "string" variable
there is my JSON
tMap - assign variable "string" to column "string
tRESTClient - POST method with head content -type application/json Accept application/json
advanced settings
tLogRow - give data in tabular form
But at the output I get an error 422. The tRESTClient component accepts the "string" field as a payload, not as a request body
Are there solutions to this problem?
Please write if you have any questions, I will do my best to answer
Hi
Use tXMLMap instead of twriteJsonField+tMap, or you can use tRest to write the http body directly.
Regards
Shong