21
Views
3
Comments
Solved
send Text List in REST API Post
Application Type
Reactive

Hi,

I have a Post Request where i need to send a Text List in the body.

Is returning 422 invalid data

this is the JSON i want: 

"Countries": [

      "---",

      "---",

      "---"

 ]

I tested it and it works with this on postman and inside outsystems test is working too,

I'm using list append to add lines.

any sugestion??

thanks!

Solution

What have you tried already to solve this and how did it go? This would make it a lot easier and more valuable for both to ty and solve you issue. 

Have you tried the following setup yet? This does what you want if I'm correct.


It worked Thanks!

Hello Pedro,

You can try JSONSerialize to serialize your list into JSON string and send it across body.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.