Create content (attachment) for a lesson (lecture)

Create a new content item for a specific lesson.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

Course ID

integer
required

Lecture ID

Body Params
string
enum
string
length ≤ 100000

Required for text, code_embed, code_display kinds.

string
length ≤ 50
string
length ≤ 2048

Required for embed kind. External URLs are referenced directly and are not downloaded or re-hosted by Teachable. Only files uploaded via the POST /v2/uploads endpoint are stored on Teachable's CDN. The caller is responsible for ensuring externally-hosted media remains available at the provided URL.

boolean
boolean
string
length ≤ 10000

Required for open_response_question kind.

boolean
boolean
string
length ≤ 2048

External URLs are referenced directly and are not downloaded or re-hosted by Teachable. Only files uploaded via the POST /v2/uploads endpoint are stored on Teachable's CDN. The caller is responsible for ensuring externally-hosted media remains available at the provided URL.

string
length ≤ 255
string
length ≤ 255
file
object

Required for file, image, video, audio, pdf_embed kinds.

Headers
string
required

Generated Admin API key

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json