async fn update(
    tenant: String,
    session: SessionInfo,
    id: i32,
    body: Json<RecvUser>
) -> Result<Json<User>, ErrorResponse>
Expand description

Route for updating data for a user.

To use this route, use a PUT request. The ID of the user to be updated should also be passed through the URL.

Ignore password or pass it as an empty string if you wish to prevent password updates.

Upon success, returns the data for the created user as if it were requested through the show method.