Skip to main content
POST
Duplicate a Step

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Step ID.

Body

application/json
name
string

Name of the copy, up to 255 characters. Omitted or empty uses Copy of followed by the original name, in the school language. The complete name must fit the limit.

Maximum string length: 10000
idempotency_key
string

Optional key to prevent duplicate copies when retrying a request. Reuse it only with identical arguments. Different arguments or a different operation return 422. Without a key, every request creates a new copy.

Required string length: 1 - 255
destination_lesson_id
string

Destination lesson ID. Defaults to the source lesson. The copy is placed at the end.

Required string length: 1 - 255

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[]