async fn update_marketing_consent(
payload: Json<UserMarketingConsentPayload>,
pool: Data<PgPool>,
course_id: Path<Uuid>,
user: AuthUser,
) -> ControllerResult<Json<Uuid>>
Expand description
POST /api/v0/course-material/courses/:course_id/user-marketing-consent
- Adds or updates user’s marketing consent for a specific course.