---
title: "Resolve Class List"
method: POST
path: "/admin/class-list-import/resolve"
tags: ["admin-class-list-import"]
---

# Resolve Class List

`POST /admin/class-list-import/resolve`

What already exists for each row of the (edited) draft. Writes nothing.

## Request body

- ClassListResolveRequest
  - `classes` DraftClassSchema[], required
    - `name` string, required
    - `grade` 'sixieme' | 'cinquieme' | 'quatrieme' | 'troisieme' | 'seconde' | 'premiere' | 'terminale' | 'prepa', nullable
    - `teacher` DraftTeacherSchema
      - `first_name` string, nullable
      - `last_name` string, nullable
      - `email` string, nullable
    - `students` DraftStudentSchema[]
      - `first_name` string, required
      - `last_name` string, required
      - `email` string, nullable
    - `teacher_user_id` string, nullable

## Response `200`

Successful Response

- ClassListResolveResponse
  - `classes` ClassResolutionSchema[], required
    - `teacher` TeacherResolutionSchema, required
      - `status` 'matched_email' | 'matched_name' | 'ambiguous' | 'not_found' | 'missing', required
      - `candidates` TeacherCandidateSchema[], required
        - `user_id` string, required
        - `email` string, required
        - `first_name` string, nullable
        - `last_name` string, nullable
        - `subject` string, nullable
        - `matched_by` 'email' | 'name', required
    - `existing_class` ExistingClassSchema
      - `class_id` string, required
      - `class_code` string, required
      - `name` string, required
      - `school_year` string, nullable
      - `pending_count` integer, required
    - `students` StudentResolutionSchema[], required
      - `candidates` StudentCandidateSchema[], required
        - `user_id` string, required
        - `email` string, required
        - `first_name` string, nullable
        - `last_name` string, nullable
        - `matched_by` 'email' | 'name', required
      - `duplicate_in_draft` boolean, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-14** `0a41d91c9d20` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/excellence-ai/apis/excellence-learning/changes/admin/class-list-import/resolve/post.md)

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) · [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) · [OpenAPI document](https://skmtc.dev/excellence-ai/apis/excellence-learning/revisions/2a0c1636fd3b?raw)
