---
title: "Share Assignment With Teacher"
method: POST
path: "/teacher/assignments/{assignment_id}/share-with-teacher"
tags: ["teacher_assignments"]
---

# Share Assignment With Teacher

`POST /teacher/assignments/{assignment_id}/share-with-teacher`

## Request

- Base URL: `https://api.excellence-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.excellence-ai.com/teacher/assignments/{assignment_id}/share-with-teacher`
- Auth: OAuth 2 (password, token URL `api/login`)

Share an assignment directly with another teacher in the same school.
Creates a complete copy (devoir and exercises) for the target teacher with
a modified title.

## Path parameters

- `assignment_id` string, required

## Request body

- ShareWithTeacherRequest: Request to share assignment with a specific teacher
  - `teacher_id` string, required

## Response `200`

Successful Response

- ShareWithTeacherResponse: Response after sharing assignment with a teacher
  - `status` string, required
  - `message` string, required
  - `new_assignment_id` 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/379e4a57dee8?raw)
