Hi Everyone, I'm building POST requests for a trading API and it works perfectly with the GET requests but I'm having an issue with the POST body field. The brokerage API is expecting the body data in a field named "form" but the REST API doesn't seem to let me change the default "body" name or add an additional field. Would love to hear how you guys would go about that issue. Thanks guys!
(I removed the body data in the screengrab to keep it clean)
However I tried, with forms, raw or JSON or with additionalScope the API is not reading the form field data from the request probably as it remains inside the body field.
@DisionDVSN
Have you tried adding the information for the form in the key/value fields under Form Data like the following except where I have textInput1.value, you would put the name of whatever array/object value there instead and whether it is Text or a File type...
Hi @ScottR, thanks for your reply. I did try the form and I'm getting strange results with it and dind't get the data in the field, I didn't really dig since the data was still in the bod instead of form but I couldn't get it to work either. Here is a grab:
The data entered is not in the body field in this case, not sure why I'm getting random data, but I would need the filed to be a form field like in this sample code for the request to work:
Hey @ScottR , I'm going to keep trying different options and see if I can identify the issue but I really appreciate you taking some time to try to figure it out! Hopefully someone from Retool can jump in!