How do I send a list of booleans using the API
Hey everyone,
I'm using the API to post to a table (currently using postman). This table has a field that is a list of booleans. It works if I just send "true" or "false", but when I try to send an array of them, I get the following error.
Here's the table schema incase I have something setup incorrectly there:
I'm new to Xano, but am very familiar with relational databases and APIs. Thanks in advance!
Best Answers
-
@bellwoodsweb - you'll want to make sure your input is set up correctly - your input type should by a boolean list (array). It will need to be wrapped in [] and the input type must match correctly.
-
I figured it out, the issue was actually with postman, not Xano.
Xano is expecting the request body to be form-data. When sending a form-data array in postman you have to seperate it into one line per array index like this: -
thanks for sharing!
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback