---
title: "Update Exam Sharing"
method: PUT
path: "/teacher-exams/{exam_id}/sharing"
tags: ["Teacher Exams Sharing"]
---

# Update Exam Sharing

`PUT /teacher-exams/{exam_id}/sharing`

Update sharing options for a teacher exam with proper permission checks.

Users can update sharing if:
- They own the exam directly, OR
- They have write access through folder inheritance

## Path parameters

- `exam_id` string, required

## Request body

- UpdateSharingRequest
  - `sharing_options` SharingOptions, required — Model for sharing configuration across folders, exams, and exercises
    - `shared_with_school` boolean
    - `shared_with` string[]
    - `read_only` boolean

## Response `200`

Successful Response

- ShareExamResponse
  - `status` string, required
  - `message` string, required
  - `sharing` ShareExamRequest, required
    - `shared_with_school` boolean
    - `shared_with` string[]
    - `read_only` boolean

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