Courses::Section

Update Section. See Permitted section fields (create and update) in the Courses Skill for the writable fields.

put/courses/sections/{id}

Request

Path parameters

idstring 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

OK

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_idinteger nullable

Blocker section

blocker_lesson_idinteger nullable

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"
}

Changes

    • breaking

      the request property / became not nullable

    • breaking

      the request property / became not nullable

    • breaking

      the response property became nullable for the status

    • breaking

      the response's property type changed from string to integer null for status

    • breaking

      the response's property type changed from string null to integer null for status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status