# Add material to online lesson **POST /api/v1/online-lesson/{id}/add-material** Upload or link supporting materials for an online lesson (slides, notes, resources, etc.). Only admins and lecturers can add materials. ## Servers - Local server: http://localhost:3500 (Local server) - Production server: https://api.echoplain.social (Production server) ## Parameters ### Path parameters - **id** (string) UUID of the online lesson ### Body: application/json (object) Material data or file to upload - **title** (string) - **fileUrl** (string) - **fileType** (string) - **description** (string) ## Responses ### 201 Material added successfully ### 400 Invalid material data ### 403 Forbidden - Admin or Lecturer role required ### 404 Online lesson not found [Powered by Bump.sh](https://bump.sh)