---
title: "Share Class Plan Material"
method: POST
path: "/chatrooms/{room_name}/plan/materials"
tags: ["chatrooms"]
---

# Share Class Plan Material

`POST /chatrooms/{room_name}/plan/materials`

Attach an uploaded file to this class's plan. Host only.

The client uploads to `/api/upload/assignment-file` first and posts the
reference it got back. Returns the material as a client reads it — a
freshly signed link, never the stored reference.

## Path parameters

- `room_name` string, required

## Headers

- `authorization` string, nullable

## Request body

- ShareClassMaterialRequest
  - `ref` string, required
  - `name` string, nullable
  - `shared` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/fluentea/apis/aurqa-language-learning-platform-refactored.md) · [All operations](https://skmtc.dev/fluentea/apis/aurqa-language-learning-platform-refactored/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fluentea/aurqa-language-learning-platform-refactored/revisions/45cbba31aa7d/schema)
