Function headless_lms_server::controllers::main_frontend::users::post_user_consents
source ยท pub async fn post_user_consents(
payload: Json<ConsentData>,
user: AuthUser,
pool: Data<PgPool>,
) -> ControllerResult<Json<UserResearchConsent>>
Expand description
POST /api/v0/main-frontend/users/user-research-consents
- Adds a research consent for a student.