Skip to main content
POST

Authorizations

Authorization
string
header
required

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

Body

application/json
lesson_id
string
required
Required string length: 1 - 255
title
string
required

Step title. Required on creation and cannot be blank. Maximum 255 characters.

Required string length: 1 - 255
position
integer

Position within the lesson, starting at 1. Defaults to the end on creation or when moving to another lesson. Moving a step shifts the other steps.

Required range: x >= 1
description
string | null

Rich text content. Send null to clear it. Scripts, embedded content and signed attachment markup are not accepted.

Maximum string length: 200000
content_format
enum<string> | null

Format of description, form_description and optional_topic_post_body_template. Defaults to HTML. Returned content is HTML. Quiz and form field descriptions accept HTML. For blockquotes, use HTML.

Available options:
html,
markdown,
null
Maximum string length: 200000
quiz
object

Quiz settings, questions and answers. Existing IDs must belong to this quiz. Omitted questions and answers stay unchanged. Send _destroy=true to delete one. Quiz editing is unavailable while question generation is in progress.

fields
object[]

Fields for a form step, up to 50 per request. Existing field IDs must belong to this step and option IDs to their field. Omitted fields stay unchanged. Send _destroy=true to delete one.

Maximum array length: 50
form_description
string | null

Rich text content. Send null to clear it. Scripts, embedded content and signed attachment markup are not accepted.

Maximum string length: 200000
is_published
boolean | null

Whether the step is published. Defaults to false. Send true or false on update. Null is accepted only on creation.

min_duration
integer | null

Setting not shown in the current step editor.

Required range: x >= 0
max_duration
integer | null

Setting not shown in the current step editor.

Required range: x >= 0
is_optional
boolean | null

Whether the step is optional. Defaults to false. Optional steps do not count toward progression. A lesson containing only optional steps does not lock the next lesson. Send true or false on update. Null is accepted only on creation.

action_type
enum<string> | null

Step type. Defaults to basic and cannot be changed after creation.

Available options:
basic,
input_text,
textarea,
link,
quiz,
post,
topic,
milestone,
file_upload,
form,
null
Maximum string length: 200000
reviewer_ids
string[]

Staff user IDs who manually validate this step. Applies to steps that support review. Send [] to use the program's default reviewers. The response lists the reviewers who apply.

Maximum array length: 100
Required string length: 1 - 255
unlock_badge_id
string | null

Badge ID awarded when a member completes this milestone. Members can display the badge on their community profile. Send null to remove it.

Maximum string length: 200000
miscellaneous_permanent_action_type
boolean | null

Setting not shown in the current step editor.

Required HTTP(S) URL for a link step. Available variables: {{full_name}} or {{name}} {{first_name}} {{last_name}} {{email}} {{type}} (User or Member)

Maximum string length: 200000
miscellaneous_input_text_action_type
string | null

Input label for a text-line step. Defaults to the school language's standard label. Send null to restore it. An empty label is not accepted.

Maximum string length: 200000
miscellaneous_textarea_action_type
string | null

Input label for a text-paragraph step. Defaults to the school language's standard label. Send null to restore it. An empty label is not accepted.

Maximum string length: 200000
miscellaneous_post_action_type
string | null

Existing community post ID in this school for a reply step. Members need access to that space to complete it.

Maximum string length: 200000
miscellaneous_topic_action_type
string | null

Existing community space/category ID in this school for a create-post step. Members need access to that space to complete it.

Maximum string length: 200000
miscellaneous_topic_title_option
string | null

Prefilled title for the community post members create in a topic step.

Maximum string length: 200000
miscellaneous_milestone_requires_review_option
boolean | null

Require members to provide proof before this milestone can be validated. Defaults to false.

miscellaneous_milestone_action_type
enum<string> | null

Milestone proof type. Defaults to file_upload. Set miscellaneous_milestone_requires_review_option to true to require proof.

Available options:
file_upload,
text,
none,
null
Maximum string length: 200000
miscellaneous_milestone_text_proof_label_option
string | null

Label for milestone text proof. Send null to restore the school language's default label.

Maximum string length: 200000
optional_topic_post_body_template
string | null

Prefilled body for a community post created from this step. Send null to clear it. Scripts, embedded content and signed attachment markup are not accepted.

Maximum string length: 200000
miscellaneous_milestone_triggers_testimonial_toggle_option
boolean | null

Ask for a testimonial when a member completes this milestone. Requires Smart Testimonials to be enabled.

miscellaneous_milestone_triggers_testimonial_text_option
string | null

Text of the testimonial request. Requires Smart Testimonials to be enabled. Send null to restore the school language's default text.

Maximum string length: 200000
miscellaneous_accept_rich_text_option
boolean | null

Allow formatted answers for a text-paragraph step or milestone text proof. Send null to turn it off.

miscellaneous_title_form
string | null

Heading inside the form, separate from the step title.

Maximum string length: 200000
miscellaneous_display_type_form
enum<string> | null

Show form questions one at a time or all together. Defaults to step_by_step.

Available options:
step_by_step,
all,
null
Maximum string length: 200000

Response

Successful request.

id
string
required
lesson_id
string
required
title
string
required
position
integer
required
action_type
enum<string>
required
Available options:
basic,
input_text,
textarea,
link,
quiz,
post,
topic,
milestone,
file_upload,
form
is_published
boolean
required
is_optional
boolean
required
min_duration
integer | null
required
max_duration
integer | null
required
description
string
form_description
string
reviewer_ids
string[]
unlock_badge_id
string | null
miscellaneous_permanent_action_type
boolean | null
miscellaneous_input_text_action_type
string | null
miscellaneous_textarea_action_type
string | null
miscellaneous_post_action_type
string | null
miscellaneous_topic_action_type
string | null
miscellaneous_topic_title_option
string | null
miscellaneous_milestone_requires_review_option
boolean
miscellaneous_milestone_action_type
string | null
miscellaneous_milestone_text_proof_label_option
string | null
optional_topic_post_body_template
string
miscellaneous_milestone_triggers_testimonial_toggle_option
boolean | null
miscellaneous_milestone_triggers_testimonial_text_option
string | null
miscellaneous_accept_rich_text_option
boolean | null
miscellaneous_title_form
string | null
miscellaneous_display_type_form
string | null
quiz
object
fields
object[]