I have the following method to modify a user in my Postgres database:

```
public void modifyUser(User usr){
    try (Connection conn = sql2o.beginTransaction()){
        conn.createQuery("update public.\"user\" set name=:name, lastname=:lastname, email=:email where id=:id")
                .addParameter("id", usr.getId())
                .addParameter("name", usr.getName())
                .addParameter("lastname", usr.getLastname())
                .addParameter("email", usr.getEmail())
                .executeUpdate();
        conn.commit();
    }
}

```

that is called by this method:

```
//update
    put("/users", (request, response) -> {
        response.type("application/json");
        User user = new Gson().fromJson(request.body(), User.class);
        model.modifyUser(user);
        return new Gson().toJson(response);
    });

```

I use Postman to specify the body, this way:

```
{   "id": 3, 
"name": "Mary",
"lastname": "Changed",
"email": "email"
}

```

But, even if the post method is working fine, this "put" operation throws the following error:

```
spark.http.matching.MatcherFilter - The requested route [/users/] has not been mapped in Spark for Accept: [*/*]

```

I don't get what the error is. I couldn't find ny solution.