What are path parameters, and how do you set them in REST Assured?

Path parameters are part of the URL (e.g., /users/{id}).
given()
    .pathParam("id", 123)
.when()
    .get("/users/{id}");
?