Skip to content
Get your keyGet a key

Reference · Communities

POST/communities/{communityId}/courses

Lay out a draft course: its sections, lessons and words

Make a course in one of their communities, as its Classroom’s New course does, laid out whole: its title, summary and description, and its sections and lessons in order, with the words of each text lesson and assignment. The course stays a draft: videos are added, and the course sent for review, on its page (the answer links it). Works in a live community too, since nobody sees a draft course. Free: nothing runs and nothing is charged. A repeat with the same Idempotency-Key gets the first answer back instead of a second course.

Key needs
create · Make things and spend credits
Spends
Nothing
Answers
Data
Request
curl -X POST https://vessero.com/api/v1/communities/communityId/courses \
  -H "Authorization: Bearer $VESSERO_API_KEY" \
  -H "Idempotency-Key: 47f8f6f5-ea00-4fb1-925f-76aac956a0ec" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "text"
  }'

Path

  • communityIdstringrequired—

Header

  • Idempotency-KeystringYour id for this request: 8–64 letters, digits, - or _. A repeat within 10 minutes gets the first answer back and never runs twice. Use the same one for the quote and the run.

Body

  • titlestringrequiredThe course’s title.
  • summarystringOne or two lines on what members learn.
  • descriptionstringThe longer description on its page.
  • sectionsobject[] · up to 40Its sections, in order. Leave out for an empty course.
    • titlestringrequiredThe section’s title.
    • lessonsobject[] · up to 50requiredIts lessons, in order.

Answers

  • 200okWhat it did, as data.
  • 400invalid_requestA field is missing or not accepted: see details.
  • 404not_foundNot found on this account.
  • 403feature_unavailableThe studio this needs is switched off for the account right now.