Hello developers friends. I'm trying to update data in my app (in swaggerUI worked). The user logged in and I'm loading the data in tabview as the pic shows. The endpoint is fastapi doc recommends http://127.0.0.1:8000/loged_in/me where I got the user data logged in. Now, the update endpoint is the code: @logedin_user_router.post('/update/{ssn}', response_class= responses.HTMLResponse) async def update_user(request: Request, cur_user: User= Depends(authentication.get_current_user), db: Session= Depends(db_connection.get_db)): user_updated= await user_dao.update(cur_user.Ssn, await request.form(), db) if user_updated: msg= f'{user_updated.First_Name} {user_updated.Last_Name} your data was successfully updated' return responses.RedirectResponse(f"/me/?msg={msg}") else: msg= f'SSN: does not match the user loged-in!!' return responses.RedirectResponse(f"/me/?msg={msg}") My jinja2 form is as follows: Don't worry about the missing fields I only added some here as example, but as you can see in my form method=POST and action I added the url because I saw someone trying that, also the commented a tag at the end but did not work. <form class="row g-3 mt-2 needs-validation" novalidate action="http://127.0.0.1:8000/update/{user_in.Ssn}" method="POST"> <div class="col-12"> <label class="form-label">Ssn*</label> <input type="text" id="ssn" name="ssn" value="{{user_in.Ssn}}" required> </div> <div class="col-12"> <label class="form-label">First Name*</label> <input type="text" id="first_name" name="first_name" value="{{user_in.First_Name}}" required> </div> <div class="col-12"> <label class="form-label">Last Name*</label> <input type="text" id="last_name" name="last_name" value="{{user_in.Last_Name}}" required> </div> <div class="col-12"> <label class="form-label">Address</label> <input type="text" id="address" name="address" value="{{user_in.Address}}"> </div> <div class="col-12"> <label class="form-label">E-mail*</label> <input type="email" class="form-control" id="email" name="email" value="{{user_in.Email}}" required> </div> <button type="submit" name="action" class="btn btn-md"> Update Data </button> <!-- <a href="http://127.0.0.1:8000/loged_in/me/{{user_in.Ssn}}" class="btn btn-md">Update Data </a> --> </form> So, when I run the code it works, my form got filled as you see in the pic above, but when I click update Data I got not error but fastapi json message: { "detail": "Not Found" } I the terminal I got a message: 127.0.0.1:61508 -"POST /update/345-123-0011 HTTP/1.1" 404 Not Found I also tried to change the update endpoint as: /me/update/{ssn} /me/{sun} Nothing seems to work. To summarize. I'm trying to update data inside a router 'me' but I need to call another endpoint /update/{ssn} but the page is not redirected. Continue reading...