---
title: "Share Exercise"
method: POST
path: "/teacher_exercises/{exercise_id}/share"
tags: ["teacher_exercises"]
---

# Share Exercise

`POST /teacher_exercises/{exercise_id}/share`

Share a teacher exercise with proper permission checks.

Users can share if:
- They own the exercise directly, OR
- They have write access through folder inheritance

## Path parameters

- `exercise_id` string, required

## Request body

- ShareExerciseRequest
  - `shared_with_school` boolean
  - `shared_with` string[]
  - `read_only` boolean

## Response `200`

Successful Response

- ShareExerciseResponse
  - `status` string, required
  - `message` 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-service-production.skmtc.workers.dev/v1/apis/excellence-ai/excellence-learning/revisions/437cd8414e9e/schema)
