Skip to main content
POST
Create a Section

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

Section title. Required on creation and cannot be blank or null. Maximum 255 characters.

Required string length: 1 - 255
product_id
string
required

Parent program ID. Required on creation. Changing it moves the section and its lessons. You need edit access to both programs. Without section_group_id, a move uses the destination program's last group.

Required string length: 1 - 255
description
string | null

Section description. Maximum 200000 characters. Empty by default. Send null to clear it.

Maximum string length: 200000
drip_delay
integer | null

Delay in days before the section becomes available, from 0 to 32767. Uses the member program drip start or earliest offer access, adjusted by their drip boost. Defaults to 0. Null is accepted only on creation.

Required range: 0 <= x <= 32767
position
integer | null

Position within the program, starting at 1. Defaults to the end. Moving a section shifts the other sections. Send null to clear its position. Group order is set separately with section_group_position.

Required range: x >= 0
section_group_position
integer

Position within the selected group, starting at 1. Defaults to the end when creating a section or changing groups. Must fit the number of sections in the group. Null is not accepted.

Required range: x >= 1
is_published
boolean | null

Whether the section is published. Defaults to true, including in a draft program. Send false to create a draft section. Null is accepted only on creation.

section_group_id
string | null

Group ID within the selected program. Defaults to the last group when creating a section or moving it to another program. Send null on update to remove the group. Changing groups places the section at the end of the new group.

Maximum string length: 255

Response

Successful operation.

id
string
product_id
string
section_group_id
string | null
section_group_position
integer | null
name
string
description
string
position
integer | null
drip_delay
integer
is_published
boolean
image_cover_url
string | null