---
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`

## 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-exams/{exam_id}/sharing`
- Auth: OAuth 2 (password, token URL `api/login`)

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/379e4a57dee8?raw)
