How to Retrieve Specific Users via PATCH
I am trying to connect to the endpoint in a table I have called "users".
When I set it up within my frontend, Draftbit, I am given an error saying that the endpoint is not found.
I originally thought I needed to put the users_id when testing the endpoint. An example I put in was a user_id of 38, which is an existing record. Unfortunately, I am still given an error.
How do I configure it such that I am able to edit data of a specific user via this endpoint?
Answers
-
Hi,
is the API call in draftbit also set as PATCH?
-
Yes it is. I made sure it was, and even set up the endpoint several times. The error subsided, but the data fed through was not the exact data that I wanted from the PATCH endpoint I set up in Xano.
-
Interesting, can you show the setup of your endpoint in Xano and Draftbit?
-
This is Xano
and this is DraftBit
It gives me back the right user, but it is not changing the 'years_id' when I input a variable and it is giving the google and auth0.
-
What value are you sending in years_id input? When you check request history in ano for that endpoint what do you have as an input?
-
This is what it says for the input:
-
Can I see the years?
-
This is what is within years
-
Ok,
so you are sending the parameter called "years", but Xano wants parameter called years_id.
-
Wow, that completely fixed it. Thank you!
-
No problem ;)
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