Update field text within object using a request
Hello Xano community,
I'm trying to update a property called "gallery_path" (text) within a object called "seo" (obj) using a request.
In order to do so, I created a endpoint /villas/{villas_id}/gallery_path
and turned to visible the seo field which contains other various field among "gallery_path".
My goal is to update the "gallery_path" field without changing any of the others.
In order to do so, I updated the function stack of this endpoint to link the "gallery_path" to "seo.gallery_path" so that I can provide on my request a body like this :
{ "villa_id" : 2413, "seo" : {
"gallery_path" : "/gallery_path" } }
I you can see in the video the debugger return me an error, which I can't elude.
Do you have any idea of how I can troobleshoot this case ?
I'll appreciate your help
Thank you in advance,
The video of the situation :
Comments
-
@Lighthama it seems you are trying to edit the record id = 2413 but that record doesn't exist. The one you show in the video is id = 2449. That's probably why you get the error NOT FOUND.
You can ignore he warning you get here …
… because you have defined the seo object correctly, and gallery_path is TEXT. However, you could avoid it if you do this: gallery_path (text) = seo (object) add the filter GET with path = gallery_path (text) and default value an empty TEXT. But it's not mandatory to do this.
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