Course document format
Write a course's content with every block type and question kind, and the course, chapter, page and outline documents that hold them.
Part of Tayl's API docs: requests go to
https://tayl.prowithAuthorization: Bearer <key>, and Errors explains every error code.
A course is one JSON document, CourseDocument, holding its chapters, pages, blocks, quizzes and styling. A chapter (CourseChapter) or page (CoursePage) can also be read and saved on its own, and CourseOutline lists chapters and pages without their content. Course authoring has the operations that read and save them, with every schema here but the blocks and questions, and its Making a good course explains how to build a course learners enjoy and can trust.
- A block's
typeand a question'skinddecide their fields: seeCourseBlockandCourseQuestion. - Image fields take the
idthatPOST /api/v1/mediareturns. - HTML fields are cleaned to the tags learners can see.
- Each document you send can hold up to 100,000 values, 15,000 records and 10 MB of text.
Schemas
CourseDocument
A course's content as one document. Read it, change it and send it back whole. Chapters, pages and blocks you send with their id keep their IDs and anything you leave as it is; those without one are new, and those you leave out are removed. Top-level fields you leave out keep their current values, and fields you leave out inside chapters take the builder's defaults. title, description, hero_image and appearance.display_theme belong to the course and change straight away; everything else is versioned. Unknown fields are refused.
title(string or null, at most 255 characters, required): Course title. An unfinished builder draft can have an empty or null title; saving through this API requires a nonblank title.description(string or null, at most 10000 characters): Short description shown with the course.hero_image(string or null): A file named by a value from this API: anidfromPOST /api/v1/media, or a value read from this organisation's course content. Null for none. Shown on the course card.duration_min_minutes(integer or null, 0–2147483647): Shortest expected duration, in minutes.duration_max_minutes(integer or null, 0–2147483647): Expected duration, in minutes.appearance(object, unknown fields refused): The course's theme.appearance.display_theme(one of"adapt","light","dark",null):adaptfollows each learner's light or dark preference;lightanddarkforce one. Null isadapt.appearance.theme_color(string or null): Main theme colour as hex. Null uses Tayl's own colours.appearance.theme_color_dark(string or null): Colour used when learners view in dark mode. Null usestheme_color. Either way, Tayl lightens it for text on the dark page.appearance.theme_secondary_color(string or null): Secondary theme colour as hex, used by quotes and charts. Null uses Tayl's own colours.appearance.theme_secondary_color_dark(string or null): Colour used when learners view in dark mode. Null usestheme_secondary_color.appearance.heading_font(one of"sans","serif","rounded","monospace",null): Heading typeface. Null uses Tayl's.appearance.body_font(one of"sans","serif","rounded","monospace",null): Body typeface. Null uses Tayl's.chapters(array of CourseChapter, at most 500 items, required): Chapters in order.
CourseOutline
A course's chapters and pages by ID and title, without their content. Send it back to reorder chapters, move pages between chapters, rename them, or add empty ones; content stays as it is. List every chapter and page once: leaving one out returns 422, and one marked "delete": true is removed, a chapter with the pages listed under it. Chapters and pages without an id are new and empty. Unknown fields are refused.
chapters(array of CourseOutlineChapter, required): Chapters in order.
CourseChapter
One chapter. Most chapters hold pages; give a quiz or a signing its own chapter. Learners see a chapter's pages, then its quiz, signing or SCORM package. Unknown fields are refused.
id(uuid or null): The chapter's ID, as read. Send it to change this chapter, which keeps its ID and every part you leave as it is; leave it out for a new chapter.title(string, 1–255 characters, required): Chapter title.header(boolean or null): Older section headings only: true makes the chapter a heading over the chapters after it. Leave false.picture(string or null): The picture in this chapter's circle on the learner's course page, named by a value from this API: anidfromPOST /api/v1/media, or a value read from this organisation's course content. Null shows the first photo in the chapter instead. In an imported course split into sections, give the section heading the picture.pages(array of CoursePage, at most 500 items): Pages in order.quiz(CourseQuiz or null): The chapter's quiz, if it has one.signing(CourseSigning or null): The document learners sign, if the chapter has one.scorm(string or null): A SCORM package already in this course, as read. Packages can't be uploaded through the API; keep the value to keep the package.
CourseOutlineChapter
One chapter of an outline. Unknown fields are refused.
id(uuid or null): The chapter's ID, as read. Leave it out for a new chapter.title(string, 1–255 characters): Chapter title. Leave it out to keep the current one; a new chapter needs one.header(boolean or null): Older section headings only: true makes the chapter a heading over the chapters after it. Leave it out to keep the current value.delete(boolean): True removes the chapter, its quiz, signing and SCORM package, and the pages listed under it. Move a page out first by listing it under another chapter.pages(array of CourseOutlinePage): The chapter's pages in order, including any moving here.
CoursePage
One page of a chapter. Unknown fields are refused.
id(uuid or null): The page's ID, as read. Send it to change this page, which keeps its ID, and its blocks if you leave them as they are; leave it out for a new page. A page can move to another chapter by appearing there.title(string, 1–255 characters, required): Page title.blocks(array of CourseBlock, at most 500 items): Blocks in order, top to bottom.
CourseQuiz
A scored quiz. Unknown fields are refused.
title(string, 1–255 characters, required): Quiz title, usually the chapter title.requires_pass(boolean or null): Whether learners must reachpassing_percentageto complete the course.passing_percentage(integer or null, 0–100): Score needed to pass, from 0 to 100; at least 1 whenrequires_passis true.shuffle_questions(boolean or null): Whether each attempt shuffles the questions.reveal_strategy(one of"reveal_all","hide_all","show_incorrect_with_feedback",null): What the results show: every answer, none, or only incorrect answers with feedback. Null isshow_incorrect_with_feedback.questions(array of CourseQuestion, at most 500 items): Questions in order.
CourseSigning
A document learners read and sign. Unknown fields are refused.
body(string or null): The document, as HTML.statement(string, at most 10000 characters): What learners agree to by signing.
CourseOutlinePage
One page of an outline. A page moves to another chapter by being listed under it. Unknown fields are refused.
id(uuid or null): The page's ID, as read. Leave it out for a new, empty page.title(string, 1–255 characters): Page title. Leave it out to keep the current one; a new page needs one.delete(boolean): True removes the page and its blocks.
CourseBlock
One block on a page. type decides which fields apply. One of these, chosen by type: text: CourseBlockText, large_text: CourseBlockLargeText, header: CourseBlockHeader, highlight: CourseBlockHighlight, quote: CourseBlockQuote, image: CourseBlockImage, video: CourseBlockVideo, embed: CourseBlockEmbed, text_beside_image: CourseBlockTextBesideImage, text_over_image: CourseBlockTextOverImage, image_grid: CourseBlockImageGrid, carousel: CourseBlockCarousel, accordion: CourseBlockAccordion, tab_list: CourseBlockTabList, table: CourseBlockTable, flashcard_container: CourseBlockFlashcardContainer, knowledge_check: CourseBlockKnowledgeCheck, bar_chart: CourseBlockBarChart, pie_chart: CourseBlockPieChart, line_chart: CourseBlockLineChart.
CourseQuestion
A quiz or knowledge check question. kind decides which fields apply. One of these, chosen by kind: single_choice: CourseQuestionSingleChoice, multiple_choice: CourseQuestionMultipleChoice, true_false: CourseQuestionTrueFalse, fill_in_the_gap: CourseQuestionFillInTheGap, boxing: CourseQuestionBoxing, match_the_pairs: CourseQuestionMatchThePairs, sequencing: CourseQuestionSequencing, hotspot_image: CourseQuestionHotspotImage.
CourseBlockText
Paragraphs of rich text. Unknown fields are refused.
id(uuid or null): The block's ID, as read. Send it to keep this block, or leave it out for a new one. A block moves to another page by appearing there.type("text", required): Alwaystext.html(string or null): Rich text as HTML. Tags and styles outside Tayl's allowed set are removed when learners see it.appearance(object, unknown fields refused): Presentation settings. Null values use the builder's defaults.appearance.text_color(string or null): Text colour. Null is the normal text colour.appearance.text_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour where it's easy to read in dark mode, and otherwise adjusts its lightness until it is. Ignored when the light colour is null.appearance.text_align(one of"left","center","right",null): Horizontal alignment.wrapper(CourseBlockWrapper): The band the block sits in.
CourseBlockLargeText
Large plain text. Kept for older courses; use text or header instead. Unknown fields are refused.
id(uuid or null): The block's ID, as read. Send it to keep this block, or leave it out for a new one. A block moves to another page by appearing there.type("large_text", required): Alwayslarge_text.text(string or null): Plain text; line breaks are kept.appearance(object, unknown fields refused): Presentation settings. Null values use the builder's defaults.appearance.text_color(string or null): Text colour. Null uses the course's theme colour, or the normal text colour.appearance.text_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour where it's easy to read in dark mode, and otherwise adjusts its lightness until it is. Ignored when the light colour is null.appearance.text_align(one of"left","center","right",null): Horizontal alignment.wrapper(CourseBlockWrapper): The band the block sits in.
CourseBlockHeader
A heading with an optional subtitle. Unknown fields are refused.
id(uuid or null): The block's ID, as read. Send it to keep this block, or leave it out for a new one. A block moves to another page by appearing there.type("header", required): Alwaysheader.title(string or null): Heading text.subtitle(string or null): Smaller text under the heading.level(one of"h1","h2","h3",null): Heading level. Null ish2.appearance(object, unknown fields refused): Presentation settings. Null values use the builder's defaults.appearance.text_color(string or null): Text colour. Null uses the course's theme colour, or the normal text colour.appearance.text_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour where it's easy to read in dark mode, and otherwise adjusts its lightness until it is. Ignored when the light colour is null.appearance.title_align(one of"left","center","right",null): Horizontal alignment.wrapper(CourseBlockWrapper): The band the block sits in.
CourseBlockHighlight
A callout box for a tip, warning or alert. Unknown fields are refused.
id(uuid or null): The block's ID, as read. Send it to keep this block, or leave it out for a new one. A block moves to another page by appearing there.type("highlight", required): Alwayshighlight.html(string or null): Rich text as HTML. Tags and styles outside Tayl's allowed set are removed when learners see it.style(one of"info","warning","alert",null): Callout style. Null isinfo.appearance(object, unknown fields refused): Presentation settings. Null values use the builder's defaults.appearance.text_color(string or null): Text colour. Null is the normal text colour.appearance.text_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour where it's easy to read in dark mode, and otherwise adjusts its lightness until it is. Ignored when the light colour is null.wrapper(CourseBlockWrapper): The band the block sits in.
CourseBlockQuote
A quotation. Unknown fields are refused.
id(uuid or null): The block's ID, as read. Send it to keep this block, or leave it out for a new one. A block moves to another page by appearing there.type("quote", required): Alwaysquote.html(string or null): Rich text as HTML. Tags and styles outside Tayl's allowed set are removed when learners see it.author(string or null): Who said it, as HTML.style(one of"default","pullquote",null):defaultis a bordered card;pullquoteis large centred text. Null isdefault.appearance(object, unknown fields refused): Presentation settings. Null values use the builder's defaults.appearance.text_color(string or null): Text colour. Null is the normal text colour.appearance.text_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour where it's easy to read in dark mode, and otherwise adjusts its lightness until it is. Ignored when the light colour is null.appearance.background_color(string or null): Hue the card's background, border and icon are mixed from, darkened in dark mode. Null uses the course's secondary theme colour, or cyan.appearance.background_color_dark(string or null): Hue used in dark mode, where it is mixed toward black. Null usesbackground_color.wrapper(CourseBlockWrapper): The band the block sits in.
CourseBlockImage
An image from the organisation's media library. Unknown fields are refused.
id(uuid or null): The block's ID, as read. Send it to keep this block, or leave it out for a new one. A block moves to another page by appearing there.type("image", required): Alwaysimage.image(string or null): A file named by a value from this API: anidfromPOST /api/v1/media, or a value read from this organisation's course content. Null for none.image_url(string or null): External image shown when no file is attached. Prefer uploading.thumbnail_url(string or null): Fallback external image from imports. Leave null.alt(string or null): Text describing the image for screen readers. Changing it in a document leaves other placements and published versions unchanged.caption(string or null): Caption shown under the image.appearance(object, unknown fields refused): Presentation settings. Null values use the builder's defaults.appearance.size(one of"small","medium","large","full",null): Display size. Null ismedium.appearance.corner_radius(one of"square","rounded","circle",null): Corner style. Null isrounded.appearance.click_action(one of"none","expand","link",null): What clicking does: nothing, open it larger, or followlink_url.appearance.link_url(string or null): Where the image links whenclick_actionislink.appearance.link_new_tab(boolean or null): Whether the link opens in a new tab. Null is true.appearance.focus_position(string or null, matching^(100|[1-9]?[0-9])% (100|[1-9]?[0-9])%$): The part of the picture that stays in view whencorner_radiusiscirclecrops it, asx% y%across and down from the top left, such as20% 75%. Null keeps the middle. A point suits one picture, so send null with a new image unless you choose one for it.wrapper(CourseBlockWrapper): The band the block sits in.
CourseBlockVideo
A YouTube or Vimeo video, or an uploaded file kept from earlier courses. Unknown fields are refused.
id(uuid or null): The block's ID, as read. Send it to keep this block, or leave it out for a new one. A block moves to another page by appearing there.type("video", required): Alwaysvideo.url(string or null): YouTube or Vimeo link, such ashttps://www.youtube.com/watch?v=....video(string or null): An uploaded video file read from this organisation's courses. Videos can't be uploaded through the API.video_url(string or null): External video file address kept from imports; learners don't see it. Leave null.caption(string or null): Caption shown under the video.appearance(object, unknown fields refused): Presentation settings. Null values use the builder's defaults.appearance.size(one of"small","medium","large","full",null): Display size. Null ismedium.appearance.corner_radius(one of"square","rounded",null): Corner style. Null isrounded.appearance.muted(boolean or null): Whether the video starts muted.appearance.show_controls(boolean or null): Whether learners see the player controls. Null is true.appearance.preload(one of"auto","metadata","none",null): How much of an uploaded file to load before play. Null isauto.appearance.start_time(string or null): Where playback starts, as seconds (90) or minutes and seconds (1:30).appearance.hide_branding(boolean or null): Whether to minimise the provider's branding.wrapper(CourseBlockWrapper): The band the block sits in.
CourseBlockEmbed
Embedded content from another site. Unknown fields are refused.
id(uuid or null): The block's ID, as read. Send it to keep this block, or leave it out for a new one. A block moves to another page by appearing there.type("embed", required): Alwaysembed.source(string or null): Anhttps://address to show in a frame, or<iframe>/<embed>HTML.file(string or null): A file attached by an import, read from this organisation's courses. Leave null.wrapper(CourseBlockWrapper): The band the block sits in.
CourseBlockTextBesideImage
Text with an image beside it. Unknown fields are refused.
id(uuid or null): The block's ID, as read. Send it to keep this block, or leave it out for a new one. A block moves to another page by appearing there.type("text_beside_image", required): Alwaystext_beside_image.html(string or null): Rich text as HTML. Tags and styles outside Tayl's allowed set are removed when learners see it.caption(string or null): Caption shown under the image.image(string or null): A file named by a value from this API: anidfromPOST /api/v1/media, or a value read from this organisation's course content. Null for none.image_url(string or null): External image shown when no file is attached, from imports. Prefer uploading.thumbnail_url(string or null): Fallback external image from imports. Leave null.appearance(object, unknown fields refused): Presentation settings. Null values use the builder's defaults.appearance.image_alignment(one of"left","right",null): Which side the image sits on. Null isleft.appearance.text_color(string or null): Text colour. Null is the normal text colour.appearance.text_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour where it's easy to read in dark mode, and otherwise adjusts its lightness until it is. Ignored when the light colour is null.appearance.text_align(one of"left","center","right",null): Horizontal text alignment.appearance.vertical_align(one of"top","center","bottom",null): Vertical text alignment. Null istop.appearance.image_width(one of"narrow","equal","wide",null): Image width relative to the text. Null isnarrow.appearance.gap(one of"none","s","m","l",null): Space between image and text. Null ism.appearance.corner_radius(one of"square","rounded","circle",null): Image corner style. Null isrounded.appearance.focus_position(string or null, matching^(100|[1-9]?[0-9])% (100|[1-9]?[0-9])%$): The part of the picture that stays in view whencorner_radiusiscirclecrops it, asx% y%across and down from the top left, such as20% 75%. Null keeps the middle. A point suits one picture, so send null with a new image unless you choose one for it.wrapper(CourseBlockWrapper): The band the block sits in.
CourseBlockTextOverImage
Text over a background image. Unknown fields are refused.
id(uuid or null): The block's ID, as read. Send it to keep this block, or leave it out for a new one. A block moves to another page by appearing there.type("text_over_image", required): Alwaystext_over_image.html(string or null): Rich text as HTML. Tags and styles outside Tayl's allowed set are removed when learners see it.image(string or null): A file named by a value from this API: anidfromPOST /api/v1/media, or a value read from this organisation's course content. Null for none.image_url(string or null): External image shown when no file is attached, from imports. Prefer uploading.thumbnail_url(string or null): Fallback external image from imports. Leave null.appearance(object, unknown fields refused): Presentation settings. Null values use the builder's defaults.appearance.text_align(one of"left","center","right",null): Horizontal text alignment. Null iscenter.appearance.background_color(string or null): Colour of the overlay between image and text. Null is black. Same in dark mode.appearance.text_color(string or null): Text colour. Null is white, or dark over a light overlay. Same in dark mode.appearance.overlay_opacity(integer or null, 0–100): Overlay opacity from 0 to 100.appearance.vertical_align(one of"top","center","bottom",null): Vertical text alignment.appearance.size(one of"small","medium","large","full",null): Block width; a shape keeps its proportions as it grows. Null ismedium.appearance.aspect_ratio(one of"fit","square","4-3","16-9","auto",null): Block shape.autofollows the image's own shape;fitkeeps the box as tall as the text. Hero blocks ignore it. Null isfit.appearance.focus_position(string or null, matching^(100|[1-9]?[0-9])% (100|[1-9]?[0-9])%$): The part of the image that stays in view when the block crops it, asx% y%across and down from the top left, such as20% 75%. Null keeps the middle. A point suits one picture, so send null with a new image unless you choose one for it.appearance.variant(one of"hero",null):herogives imported course banners their heading style. Leave null.wrapper(CourseBlockWrapper): The band the block sits in.
CourseBlockImageGrid
A grid of images. Unknown fields are refused.
id(uuid or null): The block's ID, as read. Send it to keep this block, or leave it out for a new one. A block moves to another page by appearing there.type("image_grid", required): Alwaysimage_grid.items(array of CourseImageGridItem, at most 500 items): Images in order.appearance(object, unknown fields refused): Presentation settings. Null values use the builder's defaults.appearance.text_color(string or null): Caption colour. Null is grey. Older courses only; leave null.appearance.text_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour where it's easy to read in dark mode, and otherwise adjusts its lightness until it is. Ignored when the light colour is null.appearance.columns(one of"2","3","4","5",null): Columns on wide screens. Null is3.appearance.aspect_ratio(one of"square","4-3","16-9","auto",null): Image shape. Null issquare.appearance.gap(one of"none","s","m","l",null): Space between images. Null ism.appearance.corner_radius(one of"square","rounded","circle",null): Corner style. Null isrounded.wrapper(CourseBlockWrapper): The band the block sits in.
CourseBlockCarousel
A slideshow of images. Unknown fields are refused.
id(uuid or null): The block's ID, as read. Send it to keep this block, or leave it out for a new one. A block moves to another page by appearing there.type("carousel", required): Alwayscarousel.items(array of CourseCarouselItem, at most 500 items): Slides in order.appearance(object, unknown fields refused): Presentation settings. Null values use the builder's defaults.appearance.text_color(string or null): Caption colour. Null is grey. Older courses only; leave null.appearance.text_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour where it's easy to read in dark mode, and otherwise adjusts its lightness until it is. Ignored when the light colour is null.appearance.aspect_ratio(one of"square","4-3","16-9","auto",null): Slide shape. Null is16-9.appearance.corner_radius(one of"square","rounded","circle",null): Corner style. Null isrounded.appearance.autoplay(one of"off","slow","medium","fast",null): Automatic advance speed. Null isoff.appearance.loop(one of"on","off",null): Whether the last slide leads back to the first. Null ison.appearance.show_dots(one of"on","off",null): Whether position dots show. Null ison.appearance.overlay_apply_to_all(boolean or null): Whether the overlay below applies to every slide instead of each slide's own.appearance.overlay_color(string or null): Overlay colour. Null shows no overlay. Same in dark mode.appearance.overlay_text_color(string or null): Colour of text on the overlay. Null is white. Same in dark mode.appearance.overlay_opacity(integer or null, 0–100): Overlay opacity from 0 to 100.appearance.overlay_text_align(one of"left","center","right",null): Horizontal alignment of overlay text.appearance.overlay_vertical_align(one of"top","center","bottom",null): Vertical position of overlay text. Null isbottom.wrapper(CourseBlockWrapper): The band the block sits in.
CourseBlockAccordion
Sections learners expand one at a time. Unknown fields are refused.
id(uuid or null): The block's ID, as read. Send it to keep this block, or leave it out for a new one. A block moves to another page by appearing there.type("accordion", required): Alwaysaccordion.items(array of CourseTab, at most 500 items): Sections in order.appearance(object, unknown fields refused): Presentation settings. Null values use the builder's defaults.appearance.text_color(string or null): Content text colour. Null is the normal text colour.appearance.text_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour where it's easy to read in dark mode, and otherwise adjusts its lightness until it is. Ignored when the light colour is null.appearance.header_text_color(string or null): Header text colour. Null is the normal text colour.appearance.header_text_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour where it's easy to read in dark mode, and otherwise adjusts its lightness until it is. Ignored when the light colour is null.appearance.header_style(one of"default","custom","none",null): Header look:customusesheader_bg_color. Null isdefault.appearance.header_bg_color(string or null): Header background whenheader_styleiscustom. Null is light grey, or dark blue in dark mode.appearance.header_bg_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour, or a dark tint of it when it is pale. Ignored when the light colour is null.wrapper(CourseBlockWrapper): The band the block sits in.
CourseBlockTabList
Content split across tabs. Unknown fields are refused.
id(uuid or null): The block's ID, as read. Send it to keep this block, or leave it out for a new one. A block moves to another page by appearing there.type("tab_list", required): Alwaystab_list.items(array of CourseTab, at most 500 items): Tabs in order.appearance(object, unknown fields refused): Presentation settings. Null values use the builder's defaults.appearance.text_color(string or null): Content text colour. Null is the normal text colour.appearance.text_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour where it's easy to read in dark mode, and otherwise adjusts its lightness until it is. Ignored when the light colour is null.appearance.header_text_color(string or null): Header text colour. Null is the normal text colour.appearance.header_text_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour where it's easy to read in dark mode, and otherwise adjusts its lightness until it is. Ignored when the light colour is null.appearance.header_style(one of"default","custom","none",null): Header look:customusesheader_bg_color. Null isdefault.appearance.header_bg_color(string or null): Header background whenheader_styleiscustom. Null is light grey, or dark blue in dark mode.appearance.header_bg_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour, or a dark tint of it when it is pale. Ignored when the light colour is null.appearance.header_text_align(one of"left","center","right",null): Tab title alignment.wrapper(CourseBlockWrapper): The band the block sits in.
CourseBlockTable
A table of plain text cells. Unknown fields are refused.
id(uuid or null): The block's ID, as read. Send it to keep this block, or leave it out for a new one. A block moves to another page by appearing there.type("table", required): Alwaystable.rows(array of (array of (string, at most 10000 characters), at most 50 items), at most 500 items): Rows of cell text. The first row is the header row; every row should have the same number of cells.appearance(object, unknown fields refused): Presentation settings. Null values use the builder's defaults.appearance.text_color(string or null): Text colour. Null is the normal text colour.appearance.text_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour where it's easy to read in dark mode, and otherwise adjusts its lightness until it is. Ignored when the light colour is null.appearance.text_align(one of"left","center","right",null): Cell text alignment.appearance.header_style(one of"default","custom","none",null): Header row look:customusesheader_bg_color. Null isdefault.appearance.header_bg_color(string or null): Header background whenheader_styleiscustom. Null is light grey, or dark blue in dark mode.appearance.header_bg_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour, or a dark tint of it when it is pale. Ignored when the light colour is null.appearance.header_text_color(string or null): Header row text colour. Null usestext_color.appearance.header_text_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour where it's easy to read in dark mode, and otherwise adjusts its lightness until it is. Ignored when the light colour is null.appearance.row_stripes(one of"on","off",null): Whether alternate rows are shaded. Null ison.appearance.borders(one of"all","horizontal","none",null): Cell borders. Null isall.wrapper(CourseBlockWrapper): The band the block sits in.
CourseBlockFlashcardContainer
A deck of flash cards learners turn over. Unknown fields are refused.
id(uuid or null): The block's ID, as read. Send it to keep this block, or leave it out for a new one. A block moves to another page by appearing there.type("flashcard_container", required): Alwaysflashcard_container.cards(array of CourseFlashcard, at most 500 items): Cards in order.appearance(object, unknown fields refused): Presentation settings. Null values use the builder's defaults.appearance.card_bg_color(string or null): Card background. Null is white, or dark blue in dark mode.appearance.card_bg_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour, or a dark tint of it when it is pale. Ignored when the light colour is null.appearance.card_text_color(string or null): Card text colour, also used over pictures. Null is the normal text colour, or white over pictures.appearance.card_text_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour where it's easy to read in dark mode, and otherwise adjusts its lightness until it is. Ignored when the light colour is null.appearance.layout(one of"grid","stack","deck",null):gridshows the cards in rows;stackshows them one under another;deckshows one card at a time, with previous and next buttons and a count such as "3 of 10". Null isgrid.appearance.aspect_ratio(one of"square","4-3","16-9","auto",null): Card shape. Null issquare.appearance.size(one of"compact","standard","large",null): Card size. Null isstandard.appearance.text_align(one of"left","center",null): Default card text alignment.wrapper(CourseBlockWrapper): The band the block sits in.
CourseBlockKnowledgeCheck
One practice question on the page. Learners see feedback; nothing is scored. Unknown fields are refused.
id(uuid or null): The block's ID, as read. Send it to keep this block, or leave it out for a new one. A block moves to another page by appearing there.type("knowledge_check", required): Alwaysknowledge_check.question(CourseQuestion or null): The question. Null leaves the block empty.wrapper(CourseBlockWrapper): The band the block sits in.
CourseBlockBarChart
A bar chart. Unknown fields are refused.
id(uuid or null): The block's ID, as read. Send it to keep this block, or leave it out for a new one. A block moves to another page by appearing there.type("bar_chart", required): Alwaysbar_chart.title(string or null): Title shown above the chart.data(array of CourseChartDataPoint, at most 500 items): Values in order.appearance(object, unknown fields refused): Presentation settings. Null values use the builder's defaults.appearance.text_color(string or null): Label colour. Null is the normal text colour.appearance.text_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour where it's easy to read in dark mode, and otherwise adjusts its lightness until it is. Ignored when the light colour is null.wrapper(CourseBlockWrapper): The band the block sits in.
CourseBlockPieChart
A pie chart. Unknown fields are refused.
id(uuid or null): The block's ID, as read. Send it to keep this block, or leave it out for a new one. A block moves to another page by appearing there.type("pie_chart", required): Alwayspie_chart.title(string or null): Title shown above the chart.data(array of CourseChartDataPoint, at most 500 items): Values in order.appearance(object, unknown fields refused): Presentation settings. Null values use the builder's defaults.appearance.text_color(string or null): Label colour. Null is the normal text colour.appearance.text_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour where it's easy to read in dark mode, and otherwise adjusts its lightness until it is. Ignored when the light colour is null.wrapper(CourseBlockWrapper): The band the block sits in.
CourseBlockLineChart
A line chart. Unknown fields are refused.
id(uuid or null): The block's ID, as read. Send it to keep this block, or leave it out for a new one. A block moves to another page by appearing there.type("line_chart", required): Alwaysline_chart.title(string or null): Title shown above the chart.data(array of CourseChartDataPoint, at most 500 items): Values in order.appearance(object, unknown fields refused): Presentation settings. Null values use the builder's defaults.appearance.color(string or null): Line colour. Null uses the course's secondary theme colour, or blue.appearance.text_color(string or null): Label colour. Null is the normal text colour, with grey axis labels.appearance.text_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour where it's easy to read in dark mode, and otherwise adjusts its lightness until it is. Ignored when the light colour is null.wrapper(CourseBlockWrapper): The band the block sits in.
CourseQuestionSingleChoice
Learners pick the one correct answer. Unknown fields are refused.
kind("single_choice", required): Alwayssingle_choice.text(string or null): The question as plain text. Forfill_in_the_gap, each[]marks a gap.image(string or null): A file named by a value from this API: anidfromPOST /api/v1/media, or a value read from this organisation's course content. Null for none. The hotspot image forhotspot_image.image_url(string or null): External image from imports. Leave null.randomize_order(boolean or null): Whether options appear in a random order.feedback_by_choice(boolean or null): Whether each answer's ownfeedbackshows when chosen.correct_message(string or null): Message shown for a correct answer.incorrect_message(string or null): Message shown for an incorrect answer.incorrect_hint(string or null): Hint shown whenincorrect_actionisshow_hint.incorrect_action(one of"nothing","show_hint","highlight_correct_answers","highlight_right_or_wrong",null): What happens after an incorrect answer. Null ishighlight_right_or_wrong.answers(array of CourseAnswer, at most 50 items, with at most 1 item wherecorrectistrue): Answers in order. At most one may be correct.
CourseQuestionMultipleChoice
Learners pick every correct answer. Unknown fields are refused.
kind("multiple_choice", required): Alwaysmultiple_choice.text(string or null): The question as plain text. Forfill_in_the_gap, each[]marks a gap.image(string or null): A file named by a value from this API: anidfromPOST /api/v1/media, or a value read from this organisation's course content. Null for none. The hotspot image forhotspot_image.image_url(string or null): External image from imports. Leave null.randomize_order(boolean or null): Whether options appear in a random order.feedback_by_choice(boolean or null): Whether each answer's ownfeedbackshows when chosen.correct_message(string or null): Message shown for a correct answer.incorrect_message(string or null): Message shown for an incorrect answer.incorrect_hint(string or null): Hint shown whenincorrect_actionisshow_hint.incorrect_action(one of"nothing","show_hint","highlight_correct_answers","highlight_right_or_wrong",null): What happens after an incorrect answer. Null ishighlight_right_or_wrong.answers(array of CourseAnswer, at most 50 items): Answers in order. Mark each correct one.
CourseQuestionTrueFalse
Learners say whether a statement is true. Unknown fields are refused.
kind("true_false", required): Alwaystrue_false.text(string or null): The question as plain text. Forfill_in_the_gap, each[]marks a gap.image(string or null): A file named by a value from this API: anidfromPOST /api/v1/media, or a value read from this organisation's course content. Null for none. The hotspot image forhotspot_image.image_url(string or null): External image from imports. Leave null.randomize_order(boolean or null): Whether options appear in a random order.feedback_by_choice(boolean or null): Whether each answer's ownfeedbackshows when chosen.correct_message(string or null): Message shown for a correct answer.incorrect_message(string or null): Message shown for an incorrect answer.incorrect_hint(string or null): Hint shown whenincorrect_actionisshow_hint.incorrect_action(one of"nothing","show_hint","highlight_correct_answers","highlight_right_or_wrong",null): What happens after an incorrect answer. Null ishighlight_right_or_wrong.answers(array of CourseAnswer, at most 50 items, with at most 1 item wherecorrectistrue): TheTrueandFalseanswers. Mark the correct one.
CourseQuestionFillInTheGap
Learners drag words into the gaps marked [] in the text. Unknown fields are refused.
kind("fill_in_the_gap", required): Alwaysfill_in_the_gap.text(string or null): The question as plain text. Forfill_in_the_gap, each[]marks a gap.image(string or null): A file named by a value from this API: anidfromPOST /api/v1/media, or a value read from this organisation's course content. Null for none. The hotspot image forhotspot_image.image_url(string or null): External image from imports. Leave null.randomize_order(boolean or null): Whether options appear in a random order.feedback_by_choice(boolean or null): Whether each answer's ownfeedbackshows when chosen.correct_message(string or null): Message shown for a correct answer.incorrect_message(string or null): Message shown for an incorrect answer.incorrect_hint(string or null): Hint shown whenincorrect_actionisshow_hint.incorrect_action(one of"nothing","show_hint","highlight_correct_answers","highlight_right_or_wrong",null): What happens after an incorrect answer. Null ishighlight_right_or_wrong.gaps(array of CourseGap, at most 50 items): One answer per[], in order. As in the course builder, answers beyond the markers are dropped and missing ones are added blank.distractors(array of (string, at most 255 characters), at most 50 items): Wrong words offered alongside the answers.
CourseQuestionBoxing
Learners sort items into categories. Unknown fields are refused.
kind("boxing", required): Alwaysboxing.text(string or null): The question as plain text. Forfill_in_the_gap, each[]marks a gap.image(string or null): A file named by a value from this API: anidfromPOST /api/v1/media, or a value read from this organisation's course content. Null for none. The hotspot image forhotspot_image.image_url(string or null): External image from imports. Leave null.randomize_order(boolean or null): Whether options appear in a random order.feedback_by_choice(boolean or null): Whether each answer's ownfeedbackshows when chosen.correct_message(string or null): Message shown for a correct answer.incorrect_message(string or null): Message shown for an incorrect answer.incorrect_hint(string or null): Hint shown whenincorrect_actionisshow_hint.incorrect_action(one of"nothing","show_hint","highlight_correct_answers","highlight_right_or_wrong",null): What happens after an incorrect answer. Null ishighlight_right_or_wrong.boxes(array of CourseBox, at most 50 items): Categories with the items that belong in each.unboxed_items(array of (string, at most 10000 characters), at most 500 items): Items not yet given a category; they stop the question being complete.
CourseQuestionMatchThePairs
Learners match each left-hand prompt to its answer. Unknown fields are refused.
kind("match_the_pairs", required): Alwaysmatch_the_pairs.text(string or null): The question as plain text. Forfill_in_the_gap, each[]marks a gap.image(string or null): A file named by a value from this API: anidfromPOST /api/v1/media, or a value read from this organisation's course content. Null for none. The hotspot image forhotspot_image.image_url(string or null): External image from imports. Leave null.randomize_order(boolean or null): Whether options appear in a random order.feedback_by_choice(boolean or null): Whether each answer's ownfeedbackshows when chosen.correct_message(string or null): Message shown for a correct answer.incorrect_message(string or null): Message shown for an incorrect answer.incorrect_hint(string or null): Hint shown whenincorrect_actionisshow_hint.incorrect_action(one of"nothing","show_hint","highlight_correct_answers","highlight_right_or_wrong",null): What happens after an incorrect answer. Null ishighlight_right_or_wrong.pairs(array of CoursePair, at most 50 items): Pairs in order.
CourseQuestionSequencing
Learners put steps in order. Unknown fields are refused.
kind("sequencing", required): Alwayssequencing.text(string or null): The question as plain text. Forfill_in_the_gap, each[]marks a gap.image(string or null): A file named by a value from this API: anidfromPOST /api/v1/media, or a value read from this organisation's course content. Null for none. The hotspot image forhotspot_image.image_url(string or null): External image from imports. Leave null.randomize_order(boolean or null): Whether options appear in a random order.feedback_by_choice(boolean or null): Whether each answer's ownfeedbackshows when chosen.correct_message(string or null): Message shown for a correct answer.incorrect_message(string or null): Message shown for an incorrect answer.incorrect_hint(string or null): Hint shown whenincorrect_actionisshow_hint.incorrect_action(one of"nothing","show_hint","highlight_correct_answers","highlight_right_or_wrong",null): What happens after an incorrect answer. Null ishighlight_right_or_wrong.sequence(array of (string, at most 10000 characters), at most 50 items): Steps in their correct order.
CourseQuestionHotspotImage
Learners click the right areas of an image. Unknown fields are refused.
kind("hotspot_image", required): Alwayshotspot_image.text(string or null): The question as plain text. Forfill_in_the_gap, each[]marks a gap.image(string or null): A file named by a value from this API: anidfromPOST /api/v1/media, or a value read from this organisation's course content. Null for none. The hotspot image forhotspot_image.image_url(string or null): External image from imports. Leave null.randomize_order(boolean or null): Whether options appear in a random order.feedback_by_choice(boolean or null): Whether each answer's ownfeedbackshows when chosen.correct_message(string or null): Message shown for a correct answer.incorrect_message(string or null): Message shown for an incorrect answer.incorrect_hint(string or null): Hint shown whenincorrect_actionisshow_hint.incorrect_action(one of"nothing","show_hint","highlight_correct_answers","highlight_right_or_wrong",null): What happens after an incorrect answer. Null ishighlight_right_or_wrong.hotspots(array of CourseHotspot, at most 50 items): Areas of the image.
CourseBlockWrapper
The band a block sits in on the page. Tayl ignores its background on blocks that draw their own card: highlight, quote, text_over_image, carousel, accordion, tab_list, table, knowledge_check, embed and the charts. Unknown fields are refused.
background_color(string or null): Background colour of the band. Null leaves it transparent.background_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour, or a dark tint of it when it is pale. Ignored when the light colour is null.padding_top(integer or null, 0–2147483647): Extra space above the block, in pixels. Older courses only; leave null.padding_bottom(integer or null, 0–2147483647): Extra space below the block, in pixels. Older courses only; leave null.min_height(integer or null, 0–2147483647): Minimum height in viewport-height units, used by imported banner images. Leave null.heading_font(one of"sans","serif","rounded","monospace",null): Heading typeface for this block. Null uses the course font.body_font(one of"sans","serif","rounded","monospace",null): Body typeface for this block. Null uses the course font.
CourseImageGridItem
One image in an image grid. Unknown fields are refused.
image(string or null): A file named by a value from this API: anidfromPOST /api/v1/media, or a value read from this organisation's course content. Null for none.image_url(string or null): External image shown when no file is attached, from imports. Prefer uploading.thumbnail_url(string or null): Fallback external image from imports. Leave null.caption(string or null): Caption shown under the image.appearance(object, unknown fields refused): Presentation settings. Null values use the builder's defaults.appearance.focus_position(string or null, matching^(100|[1-9]?[0-9])% (100|[1-9]?[0-9])%$): The part of the tile's picture that stays in view when the grid crops it to itsaspect_ratio(autoshows it whole), asx% y%across and down from the top left, such as20% 75%. Null keeps the middle. A point suits one picture, so send null with a new image unless you choose one for it.
CourseCarouselItem
One slide in a carousel. Unknown fields are refused.
image(string or null): A file named by a value from this API: anidfromPOST /api/v1/media, or a value read from this organisation's course content. Null for none.image_url(string or null): External image shown when no file is attached, from imports. Prefer uploading.thumbnail_url(string or null): Fallback external image from imports. Leave null.caption(string or null): Caption shown under the slide.html(string or null): Text over the slide, as HTML.appearance(object, unknown fields refused): This slide's overlay, used unless the carousel applies one overlay to every slide.appearance.overlay_color(string or null): Overlay colour. Null shows no overlay. Same in dark mode.appearance.overlay_text_color(string or null): Colour of text on the overlay. Null is white. Same in dark mode.appearance.overlay_opacity(integer or null, 0–100): Overlay opacity from 0 to 100.appearance.overlay_text_align(one of"left","center","right",null): Horizontal alignment of overlay text.appearance.overlay_vertical_align(one of"top","center","bottom",null): Vertical position of overlay text. Null isbottom.appearance.focus_position(string or null, matching^(100|[1-9]?[0-9])% (100|[1-9]?[0-9])%$): The part of the slide's picture that stays in view when the carousel crops it to itsaspect_ratio(autoshows it whole), asx% y%across and down from the top left, such as20% 75%. Null keeps the middle. A point suits one picture, so send null with a new image unless you choose one for it.
CourseTab
One section of an accordion or one tab of a tab list. Unknown fields are refused.
title(string or null): Section or tab title.html(string or null): Rich text as HTML. Tags and styles outside Tayl's allowed set are removed when learners see it.image(string or null): A file named by a value from this API: anidfromPOST /api/v1/media, or a value read from this organisation's course content. Null for none.
CourseFlashcard
One flash card. Unknown fields are refused.
front_html(string or null): Front text, as HTML. Paragraphs, headings, lists, links and inline styles only.back_html(string or null): Back text, as HTML. Paragraphs, headings, lists, links and inline styles only.front_image(string or null): A file named by a value from this API: anidfromPOST /api/v1/media, or a value read from this organisation's course content. Null for none.back_image(string or null): A file named by a value from this API: anidfromPOST /api/v1/media, or a value read from this organisation's course content. Null for none.appearance(object, unknown fields refused): This card's colours and alignment.appearance.front_overlay_color(string or null): Overlay colour over the front image. Null is black. Same in dark mode.appearance.front_overlay_text_color(string or null): Colour of text over the front image. Null usesfront_text_color, then the deck'scard_text_color, or white. Same in dark mode.appearance.front_overlay_opacity(integer or null, 0–100): Front overlay opacity from 0 to 100.appearance.back_overlay_color(string or null): Overlay colour over the back image. Null is black. Same in dark mode.appearance.back_overlay_text_color(string or null): Colour of text over the back image. Null usesback_text_color, then the deck'scard_text_color, or white. Same in dark mode.appearance.back_overlay_opacity(integer or null, 0–100): Back overlay opacity from 0 to 100.appearance.front_bg_color(string or null): Front background. Null uses the deck colour.appearance.front_bg_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour, or a dark tint of it when it is pale, or the deck's if both are null.appearance.front_text_color(string or null): Front text colour. Null uses the deck colour.appearance.front_text_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour where it's easy to read in dark mode, and otherwise adjusts its lightness until it is, or the deck's if both are null.appearance.back_bg_color(string or null): Back background. Null uses the deck colour.appearance.back_bg_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour, or a dark tint of it when it is pale, or the deck's if both are null.appearance.back_text_color(string or null): Back text colour. Null uses the deck colour.appearance.back_text_color_dark(string or null): Colour used when learners view in dark mode. Null keeps the light colour where it's easy to read in dark mode, and otherwise adjusts its lightness until it is, or the deck's if both are null.appearance.text_align(one of"left","center",null): This card's text alignment. Null uses the deck's.appearance.front_focus_position(string or null, matching^(100|[1-9]?[0-9])% (100|[1-9]?[0-9])%$): The part of the front picture that stays in view when the card crops it, asx% y%across and down from the top left, such as20% 75%. Null keeps the middle. A point suits one picture, so send null with a new image unless you choose one for it.appearance.back_focus_position(string or null, matching^(100|[1-9]?[0-9])% (100|[1-9]?[0-9])%$): The part of the back picture that stays in view when the card crops it, asx% y%across and down from the top left, such as20% 75%. Null keeps the middle. A point suits one picture, so send null with a new image unless you choose one for it.
CourseChartDataPoint
One value in a chart. Unknown fields are refused.
label(string or null): Label for the value.value(integer or null, -2147483648–2147483647): Whole-number value.color(string or null): Colour for this bar or slice. Null uses the course's secondary theme colour, or a default.
CourseAnswer
One answer to a choice question. Unknown fields are refused.
text(string or null): Answer text.correct(boolean or null): Whether this answer is correct.feedback(string or null): Feedback shown for this answer whenfeedback_by_choiceis on.
CourseGap
The answer for one [] gap, in order. Unknown fields are refused.
correct_answer(string or null): The word or phrase that fills the gap. Matching ignores case.hint(string or null): Hint for this gap.
CourseBox
A category learners sort items into. Unknown fields are refused.
name(string, at most 255 characters, required): Category name.items(array of (string, at most 10000 characters), at most 500 items): Items that belong in this category.
CoursePair
A matching pair. Unknown fields are refused.
left(string or null, at most 255 characters): Left-hand prompt.right(string or null, at most 255 characters): Matching right-hand answer.
CourseHotspot
An area of the hotspot image. Unknown fields are refused.
x(number or null, 0–100): Centre from the left edge, as a percentage of the image width.y(number or null, 0–100): Centre from the top edge, as a percentage of the image height.radius(number or null, 0–100): Radius as a percentage of the image width.correct(boolean or null): Whether learners must click this area. Null is true.description(string or null, at most 255 characters): What the area shows.