---
title: "Attach Teacher"
method: POST
path: "/admin/teacher-approvals/{teacher_id}/attach"
tags: ["admin"]
---

# Attach Teacher

`POST /admin/teacher-approvals/{teacher_id}/attach`

Resolve one teacher of the « À rattacher » queue.

## Path parameters

- `teacher_id` string, required

## Request body

- union
  - UseFrenchSchoolAction
    - `action` 'use_french_school', required
    - `french_school_id` string, required
  - CreateFrenchSchoolAction
    - `action` 'create_french_school', required
    - `name` string, required
    - `city` string, required
    - `uai` string, nullable
    - `kind` 'france' | 'abroad'
    - `country` string, nullable
    - `create_b2b_school` boolean
    - `email_domain` string, nullable
  - CreateB2BSchoolAction
    - `action` 'create_b2b_school', required
    - `name` string, nullable
    - `email_domain` string, nullable
    - `contact_email` string, nullable
    - `contact_name` string, nullable
  - AttachToSchoolAction
    - `action` 'attach_to_school', required
    - `school_id` string, required
  - IgnoreAction
    - `action` 'ignore', required

## Response `200`

Successful Response

- AttachResponse
  - `status` 'attached' | 'no_b2b' | 'pending_review' | 'ignored' | 'none', required
  - `school` SchoolSummary
    - `id` string, required
    - `name` string, required
  - `french_school` FrenchSchoolSummary
    - `id` string, required
    - `uai` string, required
    - `name` string, required
    - `city` string, required
    - `postal_code` string, required
    - `kind` 'france' | 'abroad', required
    - `country` string, required

## Other responses

- `422` — Validation Error

---

[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)
