v1

latestOpenAPI 3.1.0MIT2026-07-243952451019.0 KB
Courses::Section

Create Section

Add a new Section

post/courses/{course_id}/sections

Path parameters

course_idinteger required

Request body

Example request

{
  "courses_section": {
    "courses_section": {
      "title": "Module 1",
      "description": "Example Course Section",
      "days_till_drip_access": 5,
      "blocker_section_id": 123,
      "blocker_lesson_id": 123,
      "is_hidden_from_non_members": true
    }
  }
}

Response

Created

idinteger

ID

public_idstring nullable

Public ID

course_idinteger

Course ID

titlestring

Title

published_atstring date-time nullable

Published at

descriptionstring nullable

Description

days_till_drip_accessinteger nullable

Days until drip access

blocker_section_idstring nullable

Blocker section

blocker_lesson_idstring

Blocker lesson

current_pathstring nullable

Current Path

is_hidden_from_non_membersboolean nullable

Current Path

upgrade_urlstring nullable

Upgrade URL

parent_idstring nullable

Parent ID is pointing to the parent section. If it's nil then it's the <b>root</b> section.

sort_orderinteger nullable

Builder display order within the parent module. Scoped per parent, so it is not globally unique across the sections list (the root section and each parent's first child both start at 0).

created_atstring date-time nullable

Created at

updated_atstring date-time nullable

Updated at

Example response

{
  "id": 1,
  "public_id": "sSwcZK",
  "course_id": 3,
  "title": "Module 1",
  "published_at": "2025-01-01T00:00:00.000Z",
  "description": "Example Course Section",
  "days_till_drip_access": 5,
  "blocker_section_id": null,
  "blocker_lesson_id": null,
  "current_path": "/section-example",
  "is_hidden_from_non_members": true,
  "upgrade_url": null,
  "parent_id": null,
  "sort_order": 0,
  "created_at": "2025-01-01T00:00:00.000Z",
  "updated_at": "2025-01-01T00:00:00.000Z"
}