Function iqps_backend::routing::handlers::edit

source ยท
pub async fn edit(
    __arg0: Extension<Auth>,
    __arg1: State<RouterState>,
    __arg2: Json<EditReq>,
) -> Result<(StatusCode, BackendResponse<AdminDashboardQP>), AppError>
Expand description

Paper edit endpoint (for admin dashboard) Takes a JSON request body. The id field is required. Other optional fields can be set to change that particular value in the paper.

Request format - EditReq