Lessons

Upload lesson files

Attaches already-uploaded files to a lesson. Upload the bytes first with POST /files (presigned upload), then reference the resulting ids here: { "file_ids": ["file_..."] }. Appends to the existing set and de-duplicates, so re-sending an already-attached id is a safe no-op. Returns the full file list.

post/lessons/{lesson_id}/files

Request

  • Base URL: https://api.crevio.co/v1
  • URL: https://api.crevio.co/v1/lessons/{lesson_id}/files
  • Auth: API key in header Authorization

Path parameters

lesson_idstring required

The lesson ID

Headers

Idempotency-Keystring

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

file_idsstring[] required

Ids of files already uploaded via POST /files (e.g. "file_abc123") to attach to the lesson

Response

Files attached

object'list' required
has_moreboolean required
urlstring required

Changes

No recorded changes to this operation across all 2 revisions of this API.