Hi everyone!
Has anyone seen similar behavior of the API connector:
I want to pass a list of parameters to the body of the call, which I generate myself.
However, on the recipient’s side, the list comes as a whole text (wrapped in quotation marks).
At the same time, when I initialize the API call, the manually passed list in the parameter is read correctly.
I tried to send this parameter to json in the request body, through the parameters with the selected body type “json”, raw body, form data - in any case, I get a list generated dynamically
in text format.
“body”:
{
“test3”:
“[ “test1”, “test2” ]”
}
Also, if I generate this list via arbitrary text, in most cases I get the error “failed to parse”. I attach the screenshots below.
There’s a lot of reason why it may not work and you have a lot of screenshot so it’s hard to tell you where’s is the issue.
The body should be
{
"test1":"test",
"test5":[<test_list>]
}
The api call field for test_list should be, if dynamically filled: list of text:format as text
in the format as text you shoul have on the top box This text:encoded as json-safe, and the bottom box, a comma (,).
Also, better to always add the Content-type header with application/json as value