PricingBlog

Todo day 3 cant get the todo/{id} api to update record

  • doomhammer1-1276085742770192425

    doomhammer

    1 year ago

    Hi everyone, i have been having trouble with getting the todo record to update when checked, it always comes back with an error the custom one that we created. i can login and sign up no problem its just seems to be with updating the record. i have attached images of the the users for the id and the api calls in toddle for ref. Thanks for your time.
    1276085743571439750-2024-08-22_4.png
    1276085743927820369-2024-08-22_2_updated_todos.png
    1276085743122387017-2024-08-22_3.png
  • max.kayr-1276088679953076297

    Max

    1 year ago

    Did you add authorization to the update call?
  • doomhammer1-1276089356532322347

    doomhammer

    1 year ago

    yes Bearer <access_token>
  • max.kayr-1276098713198264332

    Max

    1 year ago

    What does your xano endpoint look like and the body that you send with the update request?
  • doomhammer1-1276104544102912074

    doomhammer

    1 year ago

    1276104535550595103-2024-08-22_5.png
    1276104536012099656-2024-08-22_9.png
    1276104542383243285-2024-08-22_10.png
    1276104543771430945-2024-08-22.png
    1276104543217913975-2024-08-22_11.png
  • doomhammer1-1276104850676908063

    doomhammer

    1 year ago

    i screen shotted the the end point, if that helps
  • max.kayr-1276123459650453504

    Max

    1 year ago

    My Xano days are long gone, but it looks to me like you are not meeting the preconditions. First, make sure you are logged in as the user with ID 7. If that is the case, I'd check the Xano logs to see why the precondition is not met
  • doomhammer1-1276701343213682749

    doomhammer

    1 year ago

    Hi Max, thanks for your time looking at this, i did found out what was causing this. zano created a var for that api endpoint that was different to the one that was stated in the day 3 todo list video.
    👍1