Function reset_assignment_config

Source
pub async fn reset_assignment_config(
    __arg0: State<AppState>,
    __arg1: Path<(i64, i64)>,
) -> impl IntoResponse
Expand description

POST /api/modules/{module_id}/assignments/{assignment_id}/config/reset

Overwrite the assignment’s config on disk with the system defaults (ExecutionConfig::default_config()). Returns the default config that was saved.

§Success Response (200 OK)

{
  "success": true,
  "message": "Assignment configuration reset to defaults",
  "data": { ... full ExecutionConfig ... }
}