Admin: Course Landing Pages
post/api/admin/course_landing_pages

Request

  • The document declares no server URL.
  • Auth: API key in cookie JWT and API key in header X-XSRF-TOKEN

Request body

courseIdinteger required
slugstring nullable required
namestring nullable required
mainboolean nullable required
listedboolean nullable required
footerboolean nullable required
footerNamestring nullable required
state'draft' | 'archived' | 'published' required

Publication state shared by landing pages.

orderstring nullable required
landingPageToRedirectIdinteger nullable required
metaTitlestring nullable required
metaDescriptionstring nullable required
headerstring nullable required
descriptionstring nullable required
usedInHeaderstring nullable required
usedInDescriptionstring nullable required
outcomesHeaderstring nullable required
outcomesDescriptionstring nullable required
outcomesImageAttachmentIdinteger nullable required

Attachment id from POST /admin/attachments, or null.

Response

The request has succeeded and a new resource has been created as a result.

idinteger required
courseIdinteger required
courseSlugstring required
createdAtstring date-time required
slugstring required
namestring required
mainboolean nullable required
listedboolean nullable required
state'draft' | 'archived' | 'published' required

Publication state shared by landing pages.

orderstring nullable required

Free-form ordering key (legacy stores it as a string).

footerboolean nullable required

Footer visibility + link caption. Part of the read model so the admin edit form can round-trip the fields it writes.

footerNamestring nullable required
landingPageToRedirectIdinteger nullable required
metaTitlestring required
metaDescriptionstring required
headerstring required
descriptionstring required
usedInHeaderstring nullable required
usedInDescriptionstring nullable required
outcomesHeaderstring nullable required
outcomesDescriptionstring nullable required
outcomesImagestring nullable required
durationinteger required

Estimated duration in hours.

enrollmentsCountinteger required

Changes