Set Enum Value by POST API
Hi
I have a Hotel Data Table, in the same table I have
Enum called Quality:
High
Medium
Low
How can I send correct parameters from Bubble.io to XANO so it sets the Enum correctly
Answers
-
Hmmm your situation would need a bit more context as I'm having a hard time to figure out what you're trying to do.
Are you trying to convert data from a field received from Bubbles.io to Xano so it matches one of the enum values ? Are you trying to add an enum value from a POST API call ? Are you trying to convert a value you receive to switch between enum cases (ex: If I receive room_name = "King's suite", then Quality = "High") ?
Initially, I'd say your call to Xano API from Bubble.io passes the value "High" (case sensitive) as is as text and you store that value in your database's enum column, it should set it correctly without issue. -
@MattLaro is correct — you just need to pass this as text with proper case. Thanks, Matt!
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