---
title: "Add Teacher To School"
method: POST
path: "/admin/schools/{school_id}/teachers"
tags: ["Admin - Schools"]
---

# Add Teacher To School

`POST /admin/schools/{school_id}/teachers`

Create a new teacher account or add existing teacher to a school.
If the teacher already exists, adds them as a member.
If they don't exist and password is provided, creates a new account.
Only accessible by admin users.

## Path parameters

- `school_id` string, required — The ID of the school

## Request body

- AddTeacherToSchoolRequest — Request model for creating a new teacher account and adding to school
  - `email` string, email, required
  - `full_name` string, nullable
  - `password` string, nullable
  - `subject` 'maths' | 'physique-chimie'

## Response `200`

Successful Response

- AddTeacherToSchoolResponse — Response model for adding teacher to school
  - `message` string, required
  - `teacher_id` string, required
  - `created_new_account` boolean, 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)
