Array in body part for post request

who to insert array in body part of post request I am getting 500 error. I verified with post man that is due to removing square bracket.

—body part is—

“action”: [


------in my code what I am written is------
${body} Create Dictionary

What you’re sending in Postman is different from what you send using RF. What you can try:

${actions_list}=    Create List
${body}=    Create Dictionary    action=${actions_list}

Also note that data validation on the endpoint is lacking if you receive a 500 response on invalid data (in your case, a string instead of a list of strings). A typical response would be 422 in such a case.

1 Like

Thank you, its working.