# Course authoring

Build, change and publish the organisation's own courses, for example from a presentation, whole or a chapter or page at a time.

> Part of [Tayl's API docs](https://tayl.pro/api/v1/docs.md): requests go to `https://tayl.pro` with `Authorization: Bearer <key>`, and [Errors](https://tayl.pro/api/v1/docs/errors.md) explains every error code.

Each course is a JSON document. Tayl's courses, and courses shared through an organisation group, can't be read or changed this way, except by Tayl staff (see **Tayl's own courses**). The course, chapter, page and outline documents are described under **Schemas** below. Their blocks and questions are described in [Course document format](https://tayl.pro/api/v1/docs/course-document.md): read it too before writing a course's content.

## Before you start

- The organisation's plan must include Course Builder, which an admin or billing admin adds in Tayl under **Settings > Features**. Without it, every write returns `403 course_builder_unavailable`.
- `content:read` reads courses and drafts. `content:write` creates courses, changes and discards drafts, deletes never-published courses and uploads images. `content:publish` publishes, archives and unarchives, so a key without it leaves its drafts for a person to publish in Tayl.
- A personal key reads and writes course content only if its person authors courses in Tayl; otherwise it returns `403 not_permitted`.
- Everything you save in a draft, including the course's title, description, hero image and display theme, waits until the draft is published.

## Making a good course

Build what a skilled instructional designer would make in Tayl's course builder, not the source material pasted onto pages. People take these courses at work, often on a phone. The person's instructions and brief come first; these are the defaults.

### Plan around the learner

- **Start from outcomes.** Find out who the course is for, the workplace task it supports, what learners already know, where it applies and how long it should take. Write for people new to their job unless told otherwise. Read all the source, write down what learners must be able to do afterwards, and plan how you'll teach and then check each outcome before choosing blocks.
- **Cover the source faithfully.** Teach everything in the source that the outcomes need, keeping exact wording where it matters, such as quantities, temperatures, times, policy and legal text. Leave out what serves no outcome and list it for the person. When something important is missing, unclear or looks out of date, ask them or list it rather than guessing.
- **Give everything a purpose.** Every page, block, image and question must serve an outcome, and learners should see why it's there. Keep what learners need inside the course; links to other material are optional further reading. Never invent data, stories, quotes or policy to fill a block.
- **Check the facts.** Check facts and figures against current, authoritative sources, and add context only from a reputable source you can name, never to contradict or replace the source's own rules, figures or wording. Say what you couldn't check rather than guessing. List the sources you used and the date you checked them on the course's last page, as optional further reading.
- **Be precise about the law.** For legal or compliance content, state where it applies, who is responsible, the steps required and any important exceptions. Never simplify an obligation away. Put a policy learners must accept in a `signing` chapter of its own.

### Make the learning path clear

- **Open with an overview.** Make the first chapter's first page a short overview: who the course is for, its learning outcomes, about how long it takes and how learners are assessed. Show the outcomes on the page, not in an accordion. Like the sources page, it needs no picture or activity, so tell the person why if `review` suggests one. Set `duration_min_minutes` and `duration_max_minutes` to cover reading, interactions, practice and feedback, and keep the course's `description` to a sentence or two for the course card.
- **Introduce every chapter.** Open each chapter with what it covers, why it matters in the learner's job and what they'll be able to do afterwards, such as in a `header` with a `subtitle` on a band, or a `text_over_image` at `size` `full` when you have a picture that shows the topic. Keep chapter titles short and unnumbered. Tayl shows the chapter and page titles above every page, so don't repeat them in a first `header`, and make a `subtitle` add something the title doesn't.
- **Teach before you test.** Explain unfamiliar ideas before the rules that depend on them, such as what personal information is before when to share it, and give a topic that's new to entry-level learners a short, plain introduction. Put a `knowledge_check` only after everything it needs has been taught, including what learners need to rule out the wrong answers.
- **Never repeat anything.** Say each thing once: don't repeat an explanation, list, summary, title or image. To reinforce a point, ask learners to recall or apply it with a new question, with feedback that explains the answer.
- **Use scenarios only from the source or brief.** Don't invent characters or a storyline. When you use a supplied scenario, introduce each person and their role first. A short situation in a question, such as "A guest asks whether a dish contains nuts", is fine.
- **Keep each page to one idea.** Aim for two to six pages a chapter, with page titles learners will recognise. Start each page with a sentence or two saying what it teaches, then give the detail. Keep each `text` block to about 150 words, put no more than two in a row, and give each page a picture or something to do that serves its point.

### Choose purposeful blocks

- **Choose blocks to suit the content.** Review every block type and question kind in Course document format, then choose each block for what it does for learners, not for variety. When a brief asks for every type, use each only where it serves an outcome, and tell the person which you left out and why.
  - `header` and `text` to explain (not `large_text`, which is kept for older courses), `highlight` for a tip, warning or must-know rule, and `quote` only for a quotation an outcome needs, saying who said it and in what context;
  - `image`, `text_beside_image`, `text_over_image` and `image_grid` for pictures and diagrams that teach;
  - `carousel` for related items or stages that learners move through themselves, such as roles or steps: leave `autoplay` off, and give each slide its own picture (a slide without one shows "Image unavailable") and a caption, which is also its alt text;
  - `accordion` for detail learners open when they need it, with a specific topic or question as each heading and something useful behind each click;
  - `tab_list` for parallel options such as do and don't, and `table` for comparisons, saying what's being compared and why it matters;
  - `bar_chart`, `pie_chart` or `line_chart` only for the source's real figures;
  - `flashcard_container` to make learners recall or decide, and `video` or `embed` for media the source links to;
  - `knowledge_check` blocks and quiz questions, each with the `kind` that suits it: `sequencing` for steps in order, `match_the_pairs` for terms and meanings, `boxing` for sorting, `hotspot_image` for finding something in a picture, and `fill_in_the_gap`, `true_false`, `single_choice` or `multiple_choice` otherwise.
- **Introduce every interaction.** Before a carousel, accordion, tab list or deck of flash cards, say what's in it and what to do, such as "Use the arrows to explore the five roles and what each contributes." For an accordion, say whether to open every section or only the one that applies.
- **Make flash cards prompt thought.** Put a prompt on the front, such as a question or a picture of a situation, and ask learners to answer before they turn the card; put a brief answer and its reason on the back. Give every front its own `front_image` that shows what the card is about (its text is white on a dark overlay), or, without a fitting picture, a colour deep enough for white text (`front_bg_color`, with `front_text_color` `#ffffff`). Leave the backs plain so they're easy to read, and leave the deck's `card_text_color` null when fronts have pictures, as it colours their text too. Keep each side short, a few words on the front and a sentence or two on the back, with about six cards to a deck. Set the deck's `layout` to `deck` to show one card at a time, with previous and next buttons, when learners should work through the cards in order; it also keeps a longer deck from turning into a long column on a phone.
- **Practise, then check.** Put an unscored `knowledge_check` after each key idea, so learners recall and apply it as they go, and end each chapter learners must know with a `quiz` that checks its outcomes. Use plausible wrong answers, and feedback that explains the right decision and what it means in practice.

### Make images and design work together

- **Use images that teach.** Each image should show a learning point or make learners think; never add one for decoration. Prefer the source's own pictures to stock images. When you choose or create others, keep one style throughout, and vary the people, settings, actions and framing.
- **Use each image once.** That includes the course's `hero_image`, each chapter's `picture` and the pictures in carousels and flash cards. Give the course a `hero_image` and each chapter its own `picture` that shows its topic: a chapter without one shows its first picture instead, which then appears twice.
- **Keep text out of images.** Don't add images that contain text; put the wording in the course's own text instead. A source photo whose text is the point, such as a food label, is fine: repeat its text in the `alt` and on the page. Give each `image` an `alt` saying what it shows, and choose videos with captions.
- **Use colour to mean something.** A block's band (`wrapper.background_color`) marks a kind of moment, such as a chapter's opening or a page's key points. Use one or two kinds, the same way through the course, and leave most blocks on the page itself. Consecutive blocks whose bands show the same colour in light and dark mode form one section, so a `header`, its `text` and an `image` can share a background; a different colour, or none, starts a new one. Highlights, quotes, accordions, tabs, tables, knowledge checks, charts, embeds, carousels and text over image don't show a band.
- **Keep it readable in light and dark mode.** Learners can see the course either way. Text you leave uncoloured is dark in light mode and light in dark mode. Leave `_dark` colours null too: Tayl turns a pale background into a dark tint of it and adjusts text colours that would be hard to read, and keeps other colours as they are. Set a `_dark` colour only when a background needs a particular one. Colour text only where a background needs it, as a deep flash card front needs white. Text needs a contrast of at least 4.5:1 with what's behind it. Send colours as hex, such as `#3f5da5`.
- **Make it look like theirs.** Set the course's `appearance` to the organisation's brand colours when you know them, which Tayl uses for headings, links, buttons and block headers. Leave `heading_font` and `body_font` null for Tayl's unless the organisation's brand calls for another.

### Write plainly

- **Write calmly and clearly,** unless the organisation has its own style: friendly but restrained, professional without corporate jargon. Use British spelling unless the organisation uses another, short sentences, the active voice, simple words and contractions. Define terms and abbreviations at first use, and use few adjectives and adverbs. Avoid humour, marketing language, exaggeration and dramatic phrasing: clarity, accuracy and practical use come first.

### Review before you hand it over

- **Check the whole course.** Read the draft back against the source for accuracy and coverage. Check that every outcome is taught and then checked, nothing is tested before it's taught, nothing repeats, every block and image has a purpose, and every question has its right answer marked.
- **Work through `review`.** Each read or save of a course, chapter or page returns `review`, suggestions such as a picture without `alt` text: act on them, or tell the person why one doesn't apply.
- **Hand it over honestly.** Give the person the course's `editor_url`, and tell them what you changed, what you left out or weren't sure about, and everything you added with its source and the date you checked it. You can't see the course as a learner through the API, so ask them to preview it on a computer and a phone. Never claim a check you didn't do. Unless they asked you to publish, leave it as a draft for them to publish in Tayl.

## Building a course

1. Upload each image with `POST /api/v1/media` and keep the `id` it returns. Send the file as multipart form data or, if you can only send JSON, the image's public `url` for Tayl to download; through Tayl's MCP server, use `tayl_upload_image`. Images must be JPEG, PNG, GIF, WebP or AVIF, up to 10 MB and 50 megapixels, so convert others first, such as EMF, WMF, SVG or TIFF images from a presentation. Uploading the same file again returns the image already in the library.
2. Create the course with `POST /api/v1/courses`, putting those IDs in image fields such as `image` or `hero_image`. The course starts as a draft only people in the course builder can see. Keep its `id`; `GET /api/v1/courses?status=draft` finds it again.
3. Read the draft with `GET /api/v1/courses/{id}/draft`, change it, and save it with `PUT` (the whole document) or `PATCH` (a JSON Patch, sent as `application/json-patch+json`). Send the `etag` from your last read or write as `If-Match`: each write returns the new one.
4. If the person asked you to publish, publish with `POST /api/v1/courses/{id}/draft/publish` once `publishable` is true. On a first publish you can send `training_rules` for the content library, such as `{"training_rules":{"due_in_days":14}}`; otherwise the course's recommended rules apply.

To change a published course, first start its draft with `POST /api/v1/courses/{id}/draft`, as opening the course builder does. Until then, reading or saving the draft returns `404 no_draft`. Learners keep the published version until the draft is published.

## Working a part at a time

A big course can be built and changed a chapter or page at a time:

- `GET /api/v1/courses/{id}/draft/outline` lists the chapters and pages by `id` and title, without their content. Send it back with `PUT` or `PATCH` to reorder, rename, move pages between chapters or add empty ones. It must list every chapter and page; to remove one, keep it with `"delete": true`.
- `/api/v1/courses/{id}/draft/chapters/{chapter_id}` and `/api/v1/courses/{id}/draft/pages/{page_id}` read, replace, patch or remove one chapter or page. `POST /api/v1/courses/{id}/draft/chapters` adds a chapter after the last, and `POST /api/v1/courses/{id}/draft/chapters/{chapter_id}/pages` adds a page to a chapter.
- The published version's outline, chapters and pages read the same way under `/api/v1/courses/{id}/content`.

One `etag` covers the whole course, so each part's write changes it for every part. A `412 version_changed` means the course changed after your last read, perhaps in the course builder: read it again and reapply your changes.

## Saving

- Saving replaces what the document holds: the whole draft, or one chapter or page. Chapters, pages and blocks keep their `id` when you send it back; leave it out for a new one. Ones you leave out are removed.
- To move a block to another page, send it with its `id` on that page. A page's document can name only its own blocks and a chapter's only those on its pages, so move a block to another chapter by saving the whole draft.
- Fields you leave out inside a chapter, page or block take the builder's defaults, and `null` means the default too. A course's top-level fields you leave out, such as `hero_image`, keep their values.
- Existing files, such as videos and SCORM packages, are kept as they are when a document is saved.
- A document Tayl can't use returns `422` with a `pointer` to each field to fix.

## Tayl's own courses

A Tayl staff member's own key or AI assistant works on Tayl's own courses, which every organisation uses, as its organisation's courses:

- A person publishes, archives and unarchives them in Tayl, so leave your drafts for them.
- Many came from Taylv2, which keeps them in step with it while their `syncs_from_v2` is `true`. The first change you save to one, though not starting its draft, stops that for good, so before changing one, check that the person means Tayl to take it over.
- A course has settings once it's been published. `GET /api/v1/courses/{id}/settings` reads what it recommends to each organisation, the requirements it fixes for every organisation, its certification, whether organisations have to ask Tayl for it (`availability.on_request`), and the categories, industries, regions and accreditors it lists, with the `choices` each list can take. `PATCH` changes them for every organisation straight away, so change only what the person asks for: a requirement applies even to learners part-way through. Settings need `content:settings`, which only Tayl staff's own keys hold.

## Limits and timing

Each document you send, whether a course, chapter or page, can hold up to 100,000 values, 15,000 records and 10 MB of text, or returns `422 document_too_large`; build a bigger course a chapter or page at a time. Values are every object, list, field name and field value. Records are what a save writes: one for each object and each text in a list, plus each block's content, a knowledge check's quiz, the blank cells and gaps it fills in, and two for each file. A page saves in well under a second and most chapters and courses in a few seconds, but a document near the limits can take about a minute. Allow at least 90 seconds before treating a save as timed out. A save that times out may still have been saved, so read the draft before trying again, or for a new course, look for it with `GET /api/v1/courses?status=draft`.

## Not available yet

- Uploading videos, SCORM packages, PDFs or documents. Videos can be YouTube or Vimeo links.
- Course categories and tags, preview links, and settings outside the course document, such as certification and captions, for an organisation's own courses.
- Webhook events for courses.
- Authoring pathways, signable documents or resources.
- Marking a course as drafted by AI.

## Operations

### Course authoring

Read a course your organisation authored as one document, save it as a draft, upload images for it and publish it.

#### Create a course

`POST https://tayl.pro/api/v1/courses` · `createCourse` · Scope `content:write` · Needs Course Builder

Creates a course in your organisation from a course document. It starts as a draft only people in the course builder see; `course.editor_url` opens it there for review, and `GET /api/v1/courses?status=draft` lists it until it's published. Read `publishable` and `publish_error` to see whether it's ready to publish. A document over the limits in the course authoring guide returns 422 `document_too_large`: start a bigger course with its first chapters and add the rest with `POST /api/v1/courses/{id}/draft/chapters`.

**Body** (`application/json`): CourseDocument.

**Responses**

- `201` (CourseContent): The new course and its draft. Headers: ETag.
- `422`: The document isn't valid. Each error's `pointer` names the field, as a JSON Pointer under `/data`.
- Errors: `400`, `401`, `402`, `403`, `413`, `429`.

**Example request**

```json
{"title":"Allergen awareness","description":"What every server needs to know","hero_image":null,"duration_min_minutes":null,"duration_max_minutes":20,"appearance":{"display_theme":"adapt","theme_color":"#3f5da5","theme_color_dark":null,"theme_secondary_color":null,"theme_secondary_color_dark":null,"heading_font":null,"body_font":null},"chapters":[{"title":"The 14 allergens","header":false,"pages":[{"title":"Why it matters","blocks":[{"type":"text","html":"<p>One wrong ingredient can put a guest in hospital. Every dish lists its allergens, so you can answer their questions with confidence.</p>","wrapper":{"background_color":"#eef2fb","background_color_dark":"#1c2a4f"}},{"type":"highlight","html":"<p>Never guess an ingredient. If you're not sure, ask the kitchen.</p>","style":"warning"},{"type":"flashcard_container","cards":[{"front_html":"<p>Celery</p>","back_html":"<p>Includes celeriac and celery salt.</p>","appearance":{"front_bg_color":"#3f5da5","front_text_color":"#ffffff"}},{"front_html":"<p>Mustard</p>","back_html":"<p>Includes liquid mustard, mustard powder and seeds.</p>","appearance":{"front_bg_color":"#3f5da5","front_text_color":"#ffffff"}}]},{"type":"knowledge_check","question":{"kind":"single_choice","text":"A guest is allergic to celery. Which of these could contain it?","correct_message":"Right: celery salt is made from celery seeds.","incorrect_message":"Not quite: celery salt is made from celery seeds, so it contains celery.","answers":[{"text":"Celery salt","correct":true},{"text":"Black pepper","correct":false},{"text":"Sea salt","correct":false}]}}]}],"quiz":null,"signing":null,"scorm":null}]}
```

#### Delete a course

`DELETE https://tayl.pro/api/v1/courses/{id}` · `deleteCourse` · Scope `content:write` · Needs Course Builder

Deletes a course your organisation created that has never been published. A published course can't be deleted; archive it instead. Send the `etag` you last read as `If-Match` so a course someone has changed since isn't deleted.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.
- `If-Match` (header, string): Optional: the `etag` you last read. If the course has changed since, it isn't deleted and this returns 412.

**Responses**

- `204`: Done. There's no response body.
- `422`: The course has been published.
- Errors: `400`, `401`, `402`, `403`, `404`, `412`, `429`.

#### Get a course's published content

`GET https://tayl.pro/api/v1/courses/{id}/content` · `getCourseContent` · Scope `content:read` · Personal keys: people who author courses only

Returns the published version of a course your organisation authored as one document, with the files it names. Courses from Tayl or shared by your organisation group aren't available. A course that has never been published has only a draft; read it with `GET /api/v1/courses/{id}/draft`. To change a published course, start its draft with `POST /api/v1/courses/{id}/draft` and work on that.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.

**Responses**

- `200` (CourseContent): The published content. Headers: ETag.
- Errors: `400`, `401`, `402`, `403`, `404`, `429`.

**Example response** (`200`)

```json
{"course":{"id":"019cf5b0-7c00-7000-8000-000000000005","status":"published","published_at":"2026-10-01T09:00:00Z","current_version_id":"019cf5b0-7c00-7000-8000-000000000006","editor_url":"https://tayl.pro/create/courses/019cf5b0-7c00-7000-8000-000000000005/edit"},"version":{"id":"019cf5b0-7c00-7000-8000-000000000006","number":1,"draft":false,"updated_at":"2026-10-21T09:00:00Z"},"etag":"\"5d41402abc4b2a76b9719d911017c592\"","publishable":false,"publish_error":"There's no draft to publish.","review":[{"pointer":"/hero_image","code":"no_hero_image","message":"Give the course a hero_image, which learners see on their task and at the top of the course."},{"pointer":"/chapters/0/pages/0","code":"nothing_to_see_or_do","message":"This page is only text. Add a picture or diagram that shows its point, or something to do, such as a knowledge_check, flashcard_container or tab_list."},{"pointer":"/chapters/0","code":"no_practice","message":"Add a knowledge_check after a key idea, or a quiz, so learners recall what this chapter teaches."}],"media":{},"content":{"title":"Allergen awareness","description":"What every server needs to know","hero_image":null,"duration_min_minutes":null,"duration_max_minutes":20,"appearance":{"display_theme":"adapt","theme_color":"#3f5da5","theme_color_dark":null,"theme_secondary_color":null,"theme_secondary_color_dark":null,"heading_font":null,"body_font":null},"chapters":[{"id":"019cf5b0-7c00-7000-8000-000000000014","title":"The 14 allergens","header":false,"pages":[{"id":"019cf5b0-7c00-7000-8000-000000000025","title":"Why it matters","blocks":[{"id":"019cf5b0-7c00-7000-8000-000000000125","type":"text","html":"<p>Every dish must list its allergens.</p>"}]}],"quiz":null,"signing":null,"scorm":null}]}}
```

#### Get a course's published outline

`GET https://tayl.pro/api/v1/courses/{id}/content/outline` · `getCourseContentOutline` · Scope `content:read` · Personal keys: people who author courses only

Returns the chapters and pages of a course's published version by ID and title, without their content, so you can find your way around a large course before reading parts of it. A course that has never been published returns 404.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.

**Responses**

- `200` (CourseOutlineContent): The published outline. Headers: ETag.
- Errors: `400`, `401`, `402`, `403`, `404`, `429`.

**Example response** (`200`)

```json
{"course":{"id":"019cf5b0-7c00-7000-8000-000000000005","status":"published","published_at":"2026-10-01T09:00:00Z","current_version_id":"019cf5b0-7c00-7000-8000-000000000006","editor_url":"https://tayl.pro/create/courses/019cf5b0-7c00-7000-8000-000000000005/edit"},"version":{"id":"019cf5b0-7c00-7000-8000-000000000006","number":1,"draft":false,"updated_at":"2026-10-21T09:00:00Z"},"etag":"\"5d41402abc4b2a76b9719d911017c592\"","content":{"chapters":[{"id":"019cf5b0-7c00-7000-8000-000000000301","title":"The 14 allergens","header":false,"pages":[{"id":"019cf5b0-7c00-7000-8000-000000000401","title":"Why it matters"},{"id":"019cf5b0-7c00-7000-8000-000000000402","title":"Questions guests ask"}]},{"id":"019cf5b0-7c00-7000-8000-000000000302","title":"Serving guests safely","header":false,"pages":[{"id":"019cf5b0-7c00-7000-8000-000000000403","title":"Taking an order"}]},{"id":"019cf5b0-7c00-7000-8000-000000000303","title":"Old notes","header":false,"pages":[{"id":"019cf5b0-7c00-7000-8000-000000000404","title":"Draft notes"}]}]}}
```

#### Get a chapter of a course's published content

`GET https://tayl.pro/api/v1/courses/{id}/content/chapters/{chapter_id}` · `getCourseContentChapter` · Scope `content:read` · Personal keys: people who author courses only

Returns one chapter of a course's published version as a document: its title, quiz, signing and SCORM package, and its pages with their blocks, with the files it names. Find chapter IDs in the published outline.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.
- `chapter_id` (path, uuid, required): The chapter's ID, from the course's outline or content.

**Responses**

- `200` (CourseChapterContent): The chapter. Headers: ETag.
- Errors: `400`, `401`, `402`, `403`, `404`, `429`.

**Example response** (`200`)

```json
{"course":{"id":"019cf5b0-7c00-7000-8000-000000000005","status":"published","published_at":"2026-10-01T09:00:00Z","current_version_id":"019cf5b0-7c00-7000-8000-000000000006","editor_url":"https://tayl.pro/create/courses/019cf5b0-7c00-7000-8000-000000000005/edit"},"version":{"id":"019cf5b0-7c00-7000-8000-000000000006","number":1,"draft":false,"updated_at":"2026-10-21T09:00:00Z"},"etag":"\"5d41402abc4b2a76b9719d911017c592\"","review":[{"pointer":"/pages/0","code":"nothing_to_see_or_do","message":"This page is only text. Add a picture or diagram that shows its point, or something to do, such as a knowledge_check, flashcard_container or tab_list."},{"pointer":"","code":"no_practice","message":"Add a knowledge_check after a key idea, or a quiz, so learners recall what this chapter teaches."}],"media":{},"content":{"id":"019cf5b0-7c00-7000-8000-000000000011","title":"The 14 allergens","header":false,"pages":[{"id":"019cf5b0-7c00-7000-8000-000000000021","title":"Why it matters","blocks":[{"id":"019cf5b0-7c00-7000-8000-000000000121","type":"text","html":"<p>Every dish must list its allergens.</p>"}]}],"quiz":null,"signing":null,"scorm":null}}
```

#### Get a page of a course's published content

`GET https://tayl.pro/api/v1/courses/{id}/content/pages/{page_id}` · `getCourseContentPage` · Scope `content:read` · Personal keys: people who author courses only

Returns one page of a course's published version as a document, its title and blocks, with the files it names. Find page IDs in the published outline.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.
- `page_id` (path, uuid, required): The page's ID, from the course's outline or content.

**Responses**

- `200` (CoursePageContent): The page. Headers: ETag.
- Errors: `400`, `401`, `402`, `403`, `404`, `429`.

**Example response** (`200`)

```json
{"course":{"id":"019cf5b0-7c00-7000-8000-000000000005","status":"published","published_at":"2026-10-01T09:00:00Z","current_version_id":"019cf5b0-7c00-7000-8000-000000000006","editor_url":"https://tayl.pro/create/courses/019cf5b0-7c00-7000-8000-000000000005/edit"},"version":{"id":"019cf5b0-7c00-7000-8000-000000000006","number":1,"draft":false,"updated_at":"2026-10-21T09:00:00Z"},"etag":"\"5d41402abc4b2a76b9719d911017c592\"","review":[{"pointer":"","code":"nothing_to_see_or_do","message":"This page is only text. Add a picture or diagram that shows its point, or something to do, such as a knowledge_check, flashcard_container or tab_list."}],"media":{},"content":{"id":"019cf5b0-7c00-7000-8000-000000000022","title":"Why it matters","blocks":[{"id":"019cf5b0-7c00-7000-8000-000000000122","type":"text","html":"<p>Every dish must list its allergens.</p>"}]}}
```

#### Get a course's draft

`GET https://tayl.pro/api/v1/courses/{id}/draft` · `getCourseDraft` · Scope `content:read` · Personal keys: people who author courses only

Returns the draft of a course your organisation authored as one document, with the files it names, whether it can be published and the `etag` to send when saving it. A published course has no draft until one is started, with `POST` here or by editing the course in the course builder; until then this returns 404 `no_draft`.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.

**Responses**

- `200` (CourseContent): The draft content. Headers: ETag.
- Errors: `400`, `401`, `402`, `403`, `404`, `429`.

**Example response** (`200`)

```json
{"course":{"id":"019cf5b0-7c00-7000-8000-000000000005","status":"draft","published_at":null,"current_version_id":null,"editor_url":"https://tayl.pro/create/courses/019cf5b0-7c00-7000-8000-000000000005/edit"},"version":{"id":"019cf5b0-7c00-7000-8000-000000000006","number":1,"draft":true,"updated_at":"2026-10-21T09:00:00Z"},"etag":"\"5d41402abc4b2a76b9719d911017c592\"","publishable":true,"publish_error":null,"review":[{"pointer":"/hero_image","code":"no_hero_image","message":"Give the course a hero_image, which learners see on their task and at the top of the course."},{"pointer":"/chapters/0/pages/0","code":"nothing_to_see_or_do","message":"This page is only text. Add a picture or diagram that shows its point, or something to do, such as a knowledge_check, flashcard_container or tab_list."},{"pointer":"/chapters/0","code":"no_practice","message":"Add a knowledge_check after a key idea, or a quiz, so learners recall what this chapter teaches."}],"media":{},"content":{"title":"Allergen awareness","description":"What every server needs to know","hero_image":null,"duration_min_minutes":null,"duration_max_minutes":20,"appearance":{"display_theme":"adapt","theme_color":"#3f5da5","theme_color_dark":null,"theme_secondary_color":null,"theme_secondary_color_dark":null,"heading_font":null,"body_font":null},"chapters":[{"id":"019cf5b0-7c00-7000-8000-000000000015","title":"The 14 allergens","header":false,"pages":[{"id":"019cf5b0-7c00-7000-8000-000000000026","title":"Why it matters","blocks":[{"id":"019cf5b0-7c00-7000-8000-000000000126","type":"text","html":"<p>Every dish must list its allergens.</p>"}]}],"quiz":null,"signing":null,"scorm":null}]}}
```

#### Start a course's draft

`POST https://tayl.pro/api/v1/courses/{id}/draft` · `startCourseDraft` · Scope `content:write` · Needs Course Builder

Starts the draft that changes to a published course go to, as opening the course in the course builder does, and returns it. The draft starts as a copy of the published content; learners keep the published version until the draft is published. If the course already has a draft, this returns it with 200, and a course that has never been published is a draft already. Archived courses return 422 `course_archived`.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.

**Responses**

- `200` (CourseContent): The course's existing draft. Headers: ETag.
- `201` (CourseContent): The new draft. Headers: ETag.
- `422`: The course is archived.
- Errors: `400`, `401`, `402`, `403`, `404`, `429`.

**Example response** (`200`)

```json
{"course":{"id":"019cf5b0-7c00-7000-8000-000000000005","status":"draft","published_at":null,"current_version_id":null,"editor_url":"https://tayl.pro/create/courses/019cf5b0-7c00-7000-8000-000000000005/edit"},"version":{"id":"019cf5b0-7c00-7000-8000-000000000006","number":1,"draft":true,"updated_at":"2026-10-21T09:00:00Z"},"etag":"\"5d41402abc4b2a76b9719d911017c592\"","publishable":true,"publish_error":null,"review":[{"pointer":"/hero_image","code":"no_hero_image","message":"Give the course a hero_image, which learners see on their task and at the top of the course."},{"pointer":"/chapters/0/pages/0","code":"nothing_to_see_or_do","message":"This page is only text. Add a picture or diagram that shows its point, or something to do, such as a knowledge_check, flashcard_container or tab_list."},{"pointer":"/chapters/0","code":"no_practice","message":"Add a knowledge_check after a key idea, or a quiz, so learners recall what this chapter teaches."}],"media":{},"content":{"title":"Allergen awareness","description":"What every server needs to know","hero_image":null,"duration_min_minutes":null,"duration_max_minutes":20,"appearance":{"display_theme":"adapt","theme_color":"#3f5da5","theme_color_dark":null,"theme_secondary_color":null,"theme_secondary_color_dark":null,"heading_font":null,"body_font":null},"chapters":[{"id":"019cf5b0-7c00-7000-8000-000000000016","title":"The 14 allergens","header":false,"pages":[{"id":"019cf5b0-7c00-7000-8000-000000000027","title":"Why it matters","blocks":[{"id":"019cf5b0-7c00-7000-8000-000000000127","type":"text","html":"<p>Every dish must list its allergens.</p>"}]}],"quiz":null,"signing":null,"scorm":null}]}}
```

#### Replace a course's draft

`PUT https://tayl.pro/api/v1/courses/{id}/draft` · `replaceCourseDraft` · Scope `content:write` · Needs Course Builder

Saves a course document as the course's draft and returns it. Send the `etag` from your last read as `If-Match`; if the course changed since, you get 412 and nothing is saved.

Chapters, pages and blocks you send with their `id` keep it, and a block's content or a chapter's quiz, signing or SCORM package you leave as they are aren't rewritten; a block moves to another page by appearing there. Those without an `id` are new; chapters, pages and blocks you leave out are removed, and fields you leave out inside them take the builder's defaults. Top-level fields you leave out keep their current values. `title`, `description`, `hero_image` and `appearance.display_theme` belong to the course, so they change for learners straight away; everything else waits until the draft is published. Saving a document identical to the current content changes nothing. Archived courses can't be saved, and saving needs Course Builder. A document over the size limits returns 422 `document_too_large`. Change a bigger course a chapter or page at a time.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.
- `If-Match` (header, string, required): The `etag` from your last read or save of this course's content. A stale value returns 412.

**Body** (`application/json`): CourseDocument.

**Responses**

- `200` (CourseContent): The saved draft. Headers: ETag.
- `422`: The document isn't valid. Each error's `pointer` names the field, as a JSON Pointer under `/data`.
- Errors: `400`, `401`, `402`, `403`, `404`, `412`, `413`, `428`, `429`.

**Example request**

```json
{"title":"Allergen awareness","description":"What every server needs to know","hero_image":null,"duration_min_minutes":null,"duration_max_minutes":20,"appearance":{"display_theme":"adapt","theme_color":"#3f5da5","theme_color_dark":null,"theme_secondary_color":null,"theme_secondary_color_dark":null,"heading_font":null,"body_font":null},"chapters":[{"id":"019cf5b0-7c00-7000-8000-00000000001a","title":"The 14 allergens","header":false,"pages":[{"id":"019cf5b0-7c00-7000-8000-00000000002b","title":"Why it matters","blocks":[{"id":"019cf5b0-7c00-7000-8000-00000000012b","type":"text","html":"<p>Every dish must list its allergens.</p>"}]}],"quiz":null,"signing":null,"scorm":null}]}
```

#### Edit a course's draft with JSON Patch

`PATCH https://tayl.pro/api/v1/courses/{id}/draft` · `updateCourseDraft` · Scope `content:write` · Needs Course Builder

Applies RFC 6902 JSON Patch operations to the course's draft and saves the result like `PUT`. Paths are JSON Pointers into the document you read, so a typo fix is one `replace`. Send the `etag` from that read as `If-Match`. A malformed operation, or one that can't apply, returns 422 `invalid_patch` and nothing is saved.

Chapters, pages and blocks you send with their `id` keep it, and a block's content or a chapter's quiz, signing or SCORM package you leave as they are aren't rewritten; a block moves to another page by appearing there. Those without an `id` are new; chapters, pages and blocks you leave out are removed, and fields you leave out inside them take the builder's defaults. Top-level fields you leave out keep their current values. `title`, `description`, `hero_image` and `appearance.display_theme` belong to the course, so they change for learners straight away; everything else waits until the draft is published. Saving a document identical to the current content changes nothing. Archived courses can't be saved, and saving needs Course Builder. A document over the size limits returns 422 `document_too_large`. Change a bigger course a chapter or page at a time.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.
- `If-Match` (header, string, required): The `etag` from your last read or save of this course's content. A stale value returns 412.

**Body** (`application/json-patch+json`): CourseDocumentPatch.

**Responses**

- `200` (CourseContent): The saved draft. Headers: ETag.
- `422`: The document isn't valid. Each error's `pointer` names the field, as a JSON Pointer under `/data`.
- Errors: `400`, `401`, `402`, `403`, `404`, `412`, `413`, `428`, `429`.

**Example request**

```json
[{"op":"test","path":"/chapters/0/title","value":"The 14 allergens"},{"op":"replace","path":"/chapters/0/pages/0/blocks/0/html","value":"<p>Every dish must list all 14 allergens.</p>"},{"op":"add","path":"/chapters/0/pages/-","value":{"title":"Questions guests ask","blocks":[]}}]
```

#### Discard a course's draft

`DELETE https://tayl.pro/api/v1/courses/{id}/draft` · `discardCourseDraft` · Scope `content:write` · Needs Course Builder

Discards the draft of a published course, leaving the published version as it is. A course that has never been published is only a draft, so this returns 422 `not_discardable`; delete the course instead. Send the `etag` you last read as `If-Match` so a draft someone has changed since isn't discarded.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.
- `If-Match` (header, string): Optional: the `etag` you last read. If the course has changed since, nothing is discarded and this returns 412.

**Responses**

- `204`: Done. There's no response body.
- `422`: The course has no draft to discard.
- Errors: `400`, `401`, `402`, `403`, `404`, `412`, `429`.

#### Get a course's draft outline

`GET https://tayl.pro/api/v1/courses/{id}/draft/outline` · `getCourseDraftOutline` · Scope `content:read` · Personal keys: people who author courses only

Returns the chapters and pages of a course's draft by ID and title, without their content, with the `etag` to send when changing the draft. A large course reads quickly this way.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.

**Responses**

- `200` (CourseOutlineContent): The draft's outline. Headers: ETag.
- Errors: `400`, `401`, `402`, `403`, `404`, `429`.

**Example response** (`200`)

```json
{"course":{"id":"019cf5b0-7c00-7000-8000-000000000005","status":"draft","published_at":null,"current_version_id":null,"editor_url":"https://tayl.pro/create/courses/019cf5b0-7c00-7000-8000-000000000005/edit"},"version":{"id":"019cf5b0-7c00-7000-8000-000000000006","number":1,"draft":true,"updated_at":"2026-10-21T09:00:00Z"},"etag":"\"5d41402abc4b2a76b9719d911017c592\"","content":{"chapters":[{"id":"019cf5b0-7c00-7000-8000-000000000301","title":"The 14 allergens","header":false,"pages":[{"id":"019cf5b0-7c00-7000-8000-000000000401","title":"Why it matters"},{"id":"019cf5b0-7c00-7000-8000-000000000402","title":"Questions guests ask"}]},{"id":"019cf5b0-7c00-7000-8000-000000000302","title":"Serving guests safely","header":false,"pages":[{"id":"019cf5b0-7c00-7000-8000-000000000403","title":"Taking an order"}]},{"id":"019cf5b0-7c00-7000-8000-000000000303","title":"Old notes","header":false,"pages":[{"id":"019cf5b0-7c00-7000-8000-000000000404","title":"Draft notes"}]}]}}
```

#### Reorganise a course's draft

`PUT https://tayl.pro/api/v1/courses/{id}/draft/outline` · `replaceCourseDraftOutline` · Scope `content:write` · Needs Course Builder

Reorders the draft's chapters, moves pages between chapters, renames them, and adds or removes them, leaving the content of every page, quiz and signing as it is. List every chapter and page once, by `id`: leaving one out returns 422, and setting `"delete": true` on one removes it, a chapter with the pages listed under it. Chapters and pages without an `id` are new and empty. Titles and headers you leave out stay as they are. Archived courses can't change.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.
- `If-Match` (header, string, required): The `etag` from your last read or save of this course's draft. A stale value returns 412.

**Body** (`application/json`): CourseOutline.

**Responses**

- `200` (CourseOutlineContent): The reorganised outline. Headers: ETag.
- `422`: The outline isn't valid. Each error's `pointer` names the field, as a JSON Pointer under `/data`.
- Errors: `400`, `401`, `402`, `403`, `404`, `412`, `413`, `428`, `429`.

**Example request**

```json
{"chapters":[{"id":"019cf5b0-7c00-7000-8000-000000000302","pages":[{"id":"019cf5b0-7c00-7000-8000-000000000403"},{"id":"019cf5b0-7c00-7000-8000-000000000402"}]},{"id":"019cf5b0-7c00-7000-8000-000000000301","title":"The 14 allergens in food","pages":[{"id":"019cf5b0-7c00-7000-8000-000000000401"},{"title":"Allergens in drinks"}]},{"id":"019cf5b0-7c00-7000-8000-000000000303","delete":true,"pages":[{"id":"019cf5b0-7c00-7000-8000-000000000404"}]},{"title":"Check your knowledge","pages":[]}]}
```

#### Reorganise a course's draft with JSON Patch

`PATCH https://tayl.pro/api/v1/courses/{id}/draft/outline` · `updateCourseDraftOutline` · Scope `content:write` · Needs Course Builder

Applies RFC 6902 JSON Patch operations to the draft's outline and saves the result like `PUT`, so a `move` reorders a chapter or moves a page. A malformed operation, or one that can't apply, returns 422 `invalid_patch` and nothing is saved. Archived courses can't change.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.
- `If-Match` (header, string, required): The `etag` from your last read or save of this course's draft. A stale value returns 412.

**Body** (`application/json-patch+json`): CourseDocumentPatch.

**Responses**

- `200` (CourseOutlineContent): The reorganised outline. Headers: ETag.
- `422`: The outline isn't valid. Each error's `pointer` names the field, as a JSON Pointer under `/data`.
- Errors: `400`, `401`, `402`, `403`, `404`, `412`, `413`, `428`, `429`.

**Example request**

```json
[{"op":"move","from":"/chapters/0/pages/1","path":"/chapters/1/pages/-"}]
```

#### Add a chapter to a course's draft

`POST https://tayl.pro/api/v1/courses/{id}/draft/chapters` · `createCourseDraftChapter` · Scope `content:write` · Needs Course Builder

Adds a chapter after the draft's last one, with the pages, quiz, signing and SCORM package its document holds, and returns it with the IDs its chapter, pages and blocks now have. A new chapter, its pages and their blocks have no `id` until then, so send them without one. Move it with the outline. A chapter over the size limits returns 422 `document_too_large`. Archived courses can't change.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.
- `If-Match` (header, string, required): The `etag` from your last read or save of this course's draft. A stale value returns 412.

**Body** (`application/json`): CourseChapter.

**Responses**

- `201` (CourseChapterContent): The new chapter. Headers: ETag.
- `422`: The chapter isn't valid. Each error's `pointer` names the field, as a JSON Pointer under `/data`.
- Errors: `400`, `401`, `402`, `403`, `404`, `412`, `413`, `428`, `429`.

**Example request**

```json
{"title":"The 14 allergens","header":false,"pages":[{"title":"Why it matters","blocks":[{"type":"text","html":"<p>Every dish must list its allergens.</p>"}]}],"quiz":null,"signing":null,"scorm":null}
```

#### Get a chapter of a course's draft

`GET https://tayl.pro/api/v1/courses/{id}/draft/chapters/{chapter_id}` · `getCourseDraftChapter` · Scope `content:read` · Personal keys: people who author courses only

Returns one chapter of the draft as a document, with the files it names and the `etag` to send when changing it: its title, quiz, signing and SCORM package, and its pages with their blocks. Find chapter IDs in the draft's outline.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.
- `chapter_id` (path, uuid, required): The chapter's ID, from the course's outline or content.

**Responses**

- `200` (CourseChapterContent): The chapter. Headers: ETag.
- Errors: `400`, `401`, `402`, `403`, `404`, `429`.

**Example response** (`200`)

```json
{"course":{"id":"019cf5b0-7c00-7000-8000-000000000005","status":"draft","published_at":null,"current_version_id":null,"editor_url":"https://tayl.pro/create/courses/019cf5b0-7c00-7000-8000-000000000005/edit"},"version":{"id":"019cf5b0-7c00-7000-8000-000000000006","number":1,"draft":true,"updated_at":"2026-10-21T09:00:00Z"},"etag":"\"5d41402abc4b2a76b9719d911017c592\"","review":[{"pointer":"/pages/0","code":"nothing_to_see_or_do","message":"This page is only text. Add a picture or diagram that shows its point, or something to do, such as a knowledge_check, flashcard_container or tab_list."},{"pointer":"","code":"no_practice","message":"Add a knowledge_check after a key idea, or a quiz, so learners recall what this chapter teaches."}],"media":{},"content":{"id":"019cf5b0-7c00-7000-8000-000000000011","title":"The 14 allergens","header":false,"pages":[{"id":"019cf5b0-7c00-7000-8000-000000000021","title":"Why it matters","blocks":[{"id":"019cf5b0-7c00-7000-8000-000000000121","type":"text","html":"<p>Every dish must list its allergens.</p>"}]}],"quiz":null,"signing":null,"scorm":null}}
```

#### Replace a chapter of a course's draft

`PUT https://tayl.pro/api/v1/courses/{id}/draft/chapters/{chapter_id}` · `replaceCourseDraftChapter` · Scope `content:write` · Needs Course Builder

Replaces one chapter of the draft with the document you send and returns it. Pages and blocks you send with their `id` keep it, and a block's content or the chapter's quiz, signing or SCORM package you leave as they are aren't rewritten. Those without an `id` are new; the chapter's pages and blocks you leave out are removed, and fields you leave out take the builder's defaults. A block can move between the chapter's pages by appearing there. Pages move between chapters through the outline, and blocks with a whole-course save. A document identical to the chapter changes nothing. A chapter over the size limits returns 422 `document_too_large`. Archived courses can't change.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.
- `chapter_id` (path, uuid, required): The chapter's ID, from the course's outline or content.
- `If-Match` (header, string, required): The `etag` from your last read or save of this course's draft. A stale value returns 412.

**Body** (`application/json`): CourseChapter.

**Responses**

- `200` (CourseChapterContent): The chapter. Headers: ETag.
- `422`: The chapter isn't valid. Each error's `pointer` names the field, as a JSON Pointer under `/data`.
- Errors: `400`, `401`, `402`, `403`, `404`, `412`, `413`, `428`, `429`.

**Example request**

```json
{"id":"019cf5b0-7c00-7000-8000-000000000011","title":"The 14 allergens in food","header":false,"pages":[{"id":"019cf5b0-7c00-7000-8000-000000000021","title":"Why it matters","blocks":[{"id":"019cf5b0-7c00-7000-8000-000000000121","type":"text","html":"<p>Every dish must list its allergens.</p>"}]}],"quiz":null,"signing":null,"scorm":null}
```

#### Edit a chapter of a course's draft with JSON Patch

`PATCH https://tayl.pro/api/v1/courses/{id}/draft/chapters/{chapter_id}` · `updateCourseDraftChapter` · Scope `content:write` · Needs Course Builder

Applies RFC 6902 JSON Patch operations to one chapter of the draft and saves the result like `PUT`. Paths are JSON Pointers into the chapter you read. A malformed operation, or one that can't apply, returns 422 `invalid_patch` and nothing is saved. Archived courses can't change.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.
- `chapter_id` (path, uuid, required): The chapter's ID, from the course's outline or content.
- `If-Match` (header, string, required): The `etag` from your last read or save of this course's draft. A stale value returns 412.

**Body** (`application/json-patch+json`): CourseDocumentPatch.

**Responses**

- `200` (CourseChapterContent): The chapter. Headers: ETag.
- `422`: The chapter isn't valid. Each error's `pointer` names the field, as a JSON Pointer under `/data`.
- Errors: `400`, `401`, `402`, `403`, `404`, `412`, `413`, `428`, `429`.

**Example request**

```json
[{"op":"replace","path":"/title","value":"The 14 allergens in food"}]
```

#### Remove a chapter from a course's draft

`DELETE https://tayl.pro/api/v1/courses/{id}/draft/chapters/{chapter_id}` · `deleteCourseDraftChapter` · Scope `content:write` · Needs Course Builder

Removes one chapter of the draft with its pages, quiz, signing and SCORM package. Move a page you want to keep to another chapter first, with the outline. The response's `ETag` header has the draft's new etag. Archived courses can't change.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.
- `chapter_id` (path, uuid, required): The chapter's ID, from the course's outline or content.
- `If-Match` (header, string, required): The `etag` from your last read or save of this course's draft. A stale value returns 412.

**Responses**

- `204`: Done. There's no response body; the `ETag` header has the draft's new etag. Headers: ETag.
- `422`: The course is archived.
- Errors: `400`, `401`, `402`, `403`, `404`, `412`, `428`, `429`.

#### Add a page to a chapter of a course's draft

`POST https://tayl.pro/api/v1/courses/{id}/draft/chapters/{chapter_id}/pages` · `createCourseDraftPage` · Scope `content:write` · Needs Course Builder

Adds a page after the chapter's last page, before its quiz, and returns it with its new `id` and its blocks' IDs. A new page and its blocks have no `id` until then, so send them without one. Move it with the outline. A page over the size limits returns 422 `document_too_large`. Archived courses can't change.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.
- `chapter_id` (path, uuid, required): The chapter's ID, from the course's outline or content.
- `If-Match` (header, string, required): The `etag` from your last read or save of this course's draft. A stale value returns 412.

**Body** (`application/json`): CoursePage.

**Responses**

- `201` (CoursePageContent): The new page. Headers: ETag.
- `422`: The page isn't valid. Each error's `pointer` names the field, as a JSON Pointer under `/data`.
- Errors: `400`, `401`, `402`, `403`, `404`, `412`, `413`, `428`, `429`.

**Example request**

```json
{"title":"Questions guests ask","blocks":[{"type":"text","html":"<p>Ask about allergies before taking an order.</p>"}]}
```

#### Get a page of a course's draft

`GET https://tayl.pro/api/v1/courses/{id}/draft/pages/{page_id}` · `getCourseDraftPage` · Scope `content:read` · Personal keys: people who author courses only

Returns one page of the draft as a document, its title and blocks, with the files it names and the `etag` to send when changing it. Find page IDs in the draft's outline.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.
- `page_id` (path, uuid, required): The page's ID, from the course's outline or content.

**Responses**

- `200` (CoursePageContent): The page. Headers: ETag.
- Errors: `400`, `401`, `402`, `403`, `404`, `429`.

**Example response** (`200`)

```json
{"course":{"id":"019cf5b0-7c00-7000-8000-000000000005","status":"draft","published_at":null,"current_version_id":null,"editor_url":"https://tayl.pro/create/courses/019cf5b0-7c00-7000-8000-000000000005/edit"},"version":{"id":"019cf5b0-7c00-7000-8000-000000000006","number":1,"draft":true,"updated_at":"2026-10-21T09:00:00Z"},"etag":"\"5d41402abc4b2a76b9719d911017c592\"","review":[{"pointer":"","code":"nothing_to_see_or_do","message":"This page is only text. Add a picture or diagram that shows its point, or something to do, such as a knowledge_check, flashcard_container or tab_list."}],"media":{},"content":{"id":"019cf5b0-7c00-7000-8000-000000000022","title":"Why it matters","blocks":[{"id":"019cf5b0-7c00-7000-8000-000000000122","type":"text","html":"<p>Every dish must list its allergens.</p>"}]}}
```

#### Replace a page of a course's draft

`PUT https://tayl.pro/api/v1/courses/{id}/draft/pages/{page_id}` · `replaceCourseDraftPage` · Scope `content:write` · Needs Course Builder

Replaces one page of the draft with the document you send and returns it. Blocks you send with their `id` keep it, and their content if you leave that as it is; blocks without an `id` are new, blocks you leave out are removed, and fields you leave out take the builder's defaults. The page's document can name only its own blocks. A document identical to the page changes nothing. A page over the size limits returns 422 `document_too_large`. Archived courses can't change.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.
- `page_id` (path, uuid, required): The page's ID, from the course's outline or content.
- `If-Match` (header, string, required): The `etag` from your last read or save of this course's draft. A stale value returns 412.

**Body** (`application/json`): CoursePage.

**Responses**

- `200` (CoursePageContent): The saved page. Headers: ETag.
- `422`: The page isn't valid. Each error's `pointer` names the field, as a JSON Pointer under `/data`.
- Errors: `400`, `401`, `402`, `403`, `404`, `412`, `413`, `428`, `429`.

**Example request**

```json
{"id":"019cf5b0-7c00-7000-8000-000000000022","title":"Why allergens matter","blocks":[{"id":"019cf5b0-7c00-7000-8000-000000000122","type":"text","html":"<p>Every dish must list its allergens.</p>"}]}
```

#### Edit a page of a course's draft with JSON Patch

`PATCH https://tayl.pro/api/v1/courses/{id}/draft/pages/{page_id}` · `updateCourseDraftPage` · Scope `content:write` · Needs Course Builder

Applies RFC 6902 JSON Patch operations to one page of the draft and saves the result like `PUT`. Paths are JSON Pointers into the page you read, so a typo fix is one `replace`. A malformed operation, or one that can't apply, returns 422 `invalid_patch` and nothing is saved. Archived courses can't change.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.
- `page_id` (path, uuid, required): The page's ID, from the course's outline or content.
- `If-Match` (header, string, required): The `etag` from your last read or save of this course's draft. A stale value returns 412.

**Body** (`application/json-patch+json`): CourseDocumentPatch.

**Responses**

- `200` (CoursePageContent): The saved page. Headers: ETag.
- `422`: The page isn't valid. Each error's `pointer` names the field, as a JSON Pointer under `/data`.
- Errors: `400`, `401`, `402`, `403`, `404`, `412`, `413`, `428`, `429`.

**Example request**

```json
[{"op":"replace","path":"/title","value":"Why allergens matter"}]
```

#### Remove a page from a course's draft

`DELETE https://tayl.pro/api/v1/courses/{id}/draft/pages/{page_id}` · `deleteCourseDraftPage` · Scope `content:write` · Needs Course Builder

Removes one page of the draft with its blocks. The response's `ETag` header has the draft's new etag. Archived courses can't change.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.
- `page_id` (path, uuid, required): The page's ID, from the course's outline or content.
- `If-Match` (header, string, required): The `etag` from your last read or save of this course's draft. A stale value returns 412.

**Responses**

- `204`: Done. There's no response body; the `ETag` header has the draft's new etag. Headers: ETag.
- `422`: The course is archived.
- Errors: `400`, `401`, `402`, `403`, `404`, `412`, `428`, `429`.

#### Publish a course's draft

`POST https://tayl.pro/api/v1/courses/{id}/draft/publish` · `publishCourseDraft` · Scope `content:publish` · Needs Course Builder

Publishes the course's draft as its new version, which learners get when they start the course from now on; anyone part-way through keeps the version they started. The first publish also adds the course to your organisation's content library, ready to assign, with `training_rules` or the rules the course recommends. Check `publishable` and `publish_error` on the draft first: a draft without content, unchanged since the last publish, or of an archived course returns 422 `not_publishable`. Send the `etag` you reviewed as `If-Match` to publish only that content.

Keys without this scope can still prepare drafts for a person to review and publish in Tayl.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.
- `If-Match` (header, string): Optional: the `etag` you reviewed. If the draft has changed since, publishing returns 412.

**Body** (`application/json`, optional): CoursePublish.

**Responses**

- `200` (Course): The published course.
- `422`: The draft can't be published, or `training_rules` were sent for a course that's already been published.
- Errors: `400`, `401`, `402`, `403`, `404`, `412`, `429`.

**Example request**

```json
{"training_rules":{"due_in_days":14,"compliance_training":true}}
```

#### Archive a course

`POST https://tayl.pro/api/v1/courses/{id}/archive` · `archiveCourse` · Scope `content:publish` · Needs Course Builder

Archives a published course. It can't be assigned or recertified any more, but its published assignments keep running until you archive them in Tayl's content library.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.

**Responses**

- `200` (Course): The archived course.
- `422`: The course can't be archived.
- Errors: `400`, `401`, `402`, `403`, `404`, `429`.

**Example response** (`200`)

```json
{"id":"019cf5b0-7c00-7000-8000-000000000005","title":"Food safety essentials","description":"Safe food handling for new starters","status":"archived","platform_course":false,"syncs_from_v2":false,"in_library":true,"compliance_training":true,"current_version_id":"019cf5b0-7c00-7000-8000-000000000006","current_version_number":1,"published_at":"2026-10-21T10:00:00Z","created_at":"2025-11-01T09:00:00Z","updated_at":"2026-10-21T10:00:00Z"}
```

#### Unarchive a course

`POST https://tayl.pro/api/v1/courses/{id}/unarchive` · `unarchiveCourse` · Scope `content:publish` · Needs Course Builder

Restores an archived course to published, so it can be assigned and edited again.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.

**Responses**

- `200` (Course): The unarchived course.
- `422`: The course can't be unarchived.
- Errors: `400`, `401`, `402`, `403`, `404`, `429`.

**Example response** (`200`)

```json
{"id":"019cf5b0-7c00-7000-8000-000000000005","title":"Food safety essentials","description":"Safe food handling for new starters","status":"published","platform_course":false,"syncs_from_v2":false,"in_library":true,"compliance_training":true,"current_version_id":"019cf5b0-7c00-7000-8000-000000000006","current_version_number":1,"published_at":"2026-10-21T10:00:00Z","created_at":"2025-11-01T09:00:00Z","updated_at":"2026-10-21T10:00:00Z"}
```

#### Get a Tayl course's settings

`GET https://tayl.pro/api/v1/courses/{id}/settings` · `getCourseSettings` · Scope `content:settings`

For Tayl staff. Returns a Tayl course's recommendations, requirements, certification and availability, the categories, industries, regions and accreditors it lists, and the `choices` each list can take. A course has settings once a person has published it in Tayl; until then this returns 404.

**Parameters**

- `id` (path, uuid, required): The Tayl course's UUID.

**Responses**

- `200` (CourseSettings): The course's settings.
- Errors: `400`, `401`, `402`, `403`, `404`, `429`.

**Example response** (`200`)

```json
{"course_id":"019cf5b0-7c00-7000-8000-000000000005","syncs_from_v2":false,"recommendations":{"due_in_days":14,"valid_for_months":12,"available_to_recertify_within_days":30,"issues_certificates":true,"minimum_minutes_required":20,"compliance_training":true},"requirements":{"valid_for_months":null,"minimum_minutes":null},"certification":{"certified":true,"licensing_scotland":false},"availability":{"on_request":false},"category_ids":["019cf5b0-7c00-7000-8000-000000000501"],"industry_ids":["019cf5b0-7c00-7000-8000-000000000511"],"region_ids":["019cf5b0-7c00-7000-8000-000000000521"],"accreditor_ids":["019cf5b0-7c00-7000-8000-000000000531"],"choices":{"categories":[{"id":"019cf5b0-7c00-7000-8000-000000000501","name":"Food safety"},{"id":"019cf5b0-7c00-7000-8000-000000000502","name":"Health and safety"}],"industries":[{"id":"019cf5b0-7c00-7000-8000-000000000511","name":"Hospitality"}],"regions":[{"id":"019cf5b0-7c00-7000-8000-000000000521","name":"England"},{"id":"019cf5b0-7c00-7000-8000-000000000522","name":"Scotland"}],"accreditors":[{"id":"019cf5b0-7c00-7000-8000-000000000531","name":"CPD"}]}}
```

#### Change a Tayl course's settings

`PATCH https://tayl.pro/api/v1/courses/{id}/settings` · `updateCourseSettings` · Scope `content:settings`

For Tayl staff. A change reaches every organisation straight away, so make only the changes the person asks for. Fields you leave out keep their values, and each list you send replaces the course's, with ids from `choices`. While the course syncs from Taylv2 (`syncs_from_v2`), changing a setting V2 sets returns 422 `course_synced_from_v2`.

**Parameters**

- `id` (path, uuid, required): The Tayl course's UUID.

**Body** (`application/json`): CourseSettingsInput.

**Responses**

- `200` (CourseSettings): The course's settings, changed.
- `422`: A setting can't be changed. Each error's `pointer` names the field, as a JSON Pointer under `/data`: an id that isn't in `choices`, a value the course can't take, such as certifying it without an accreditor, or a setting Taylv2 sets while the course syncs from there.
- Errors: `400`, `401`, `402`, `403`, `404`, `429`.

**Example request**

```json
{"recommendations":{"due_in_days":14},"region_ids":["019cf5b0-7c00-7000-8000-000000000521","019cf5b0-7c00-7000-8000-000000000522"]}
```

#### Upload an image

`POST https://tayl.pro/api/v1/media` · `uploadCourseImage` · Scope `content:write` · Needs Course Builder

Adds an image to your organisation's media library for course documents and returns its `id`, which you put in a document's image field, such as `image`, `hero_image` or a card's `front_image`. Send the file as multipart form data or, if you can't send files, send JSON with a public `url` that returns the image and Tayl downloads it, following up to 3 redirects for up to 10 seconds. An organisation downloads 2 images at a time; more at once return `429 rate_limited`. If the library already holds the same file, you get that image with 200 instead of a copy. Retrying the same file after a transient upload failure is safe: any missing stored file is uploaded again before success is returned. Images must be JPEG, PNG, GIF, WebP or AVIF, up to 10 MB and 50 megapixels; anything wider or taller than 2400 pixels is scaled down. Videos can't be uploaded through the API.

**Body** (`multipart/form-data`): The image as a multipart form field. Unknown fields are refused.

- `file` (binary, required): The image file.

**Body** (`application/json`): The image's URL, for Tayl to download. Unknown fields are refused.

- `url` (uri, matching `^https://`, required): A public HTTPS URL that returns the image itself, not a page showing it.
- `filename` (string, at most 255 characters): The image's name in the library. Defaults to the last part of the URL's path.

**Responses**

- `200` (CourseImage): The library already holds this file; this is that image.
- `201` (CourseImage): The uploaded image.
- `422`: The file isn't an image Tayl accepts, or the URL didn't give one.
- Errors: `400`, `401`, `402`, `403`, `413`, `429`.

**Example request**

```json
{"url":"https://cdn.example.com/allergen-chart.png"}
```

### Content library

Repeated from [Assigning training](https://tayl.pro/api/v1/docs/assigning.md), which has the rest of these operations.

#### List courses

`GET https://tayl.pro/api/v1/courses` · `listCourses` · Scope `content:read`

Lists the published courses the organisation can see: its own, Tayl's, and those shared through its organisation group, which stay visible only while the group shares them, even if assignments still use them. A course can be assigned once `in_library` is true; an admin or content manager adds Tayl's courses to the library in Tayl. With `status=draft` or `status=archived`, it lists the organisation's own drafts or archived courses instead, such as a course created through the API that hasn't been published yet. `since` considers changes to courses and to their places in the organisation's or group's library. Removing one of Tayl's courses from the library doesn't count, as the course stays listed with `in_library` false and no new timestamp, so reconcile against the full list regularly.

**Parameters**

- `status` (query, one of `"published"`, `"draft"`, `"archived"`, default `"published"`): Which courses to list. `published` lists those the organisation can see; `draft` (including `autosaved` drafts) and `archived` list only its own.
- `page` (query, integer, at least 1, default `1`): Page to fetch.
- `per_page` (query, integer, 1–100, default `25`): Records per page.
- `since` (query, date-time): Inclusive ISO 8601 cursor. Each endpoint documents which change timestamps it considers.

**Responses**

- `200` (CourseList): A page of courses, sorted by title. Headers: Link.
- Errors: `400`, `401`, `402`, `403`, `429`.

**Example response** (`200`)

```json
{"courses":[{"id":"019cf5b0-7c00-7000-8000-000000000005","title":"Food safety essentials","description":"Safe food handling for new starters","status":"published","platform_course":true,"syncs_from_v2":false,"in_library":true,"compliance_training":true,"current_version_id":"019cf5b0-7c00-7000-8000-000000000006","current_version_number":3,"published_at":"2026-02-20T10:00:00Z","created_at":"2025-11-01T09:00:00Z","updated_at":"2026-02-20T10:00:00Z"}],"meta":{"page":1,"per_page":25,"total_pages":1,"total_count":1}}
```

#### Get a course

`GET https://tayl.pro/api/v1/courses/{id}` · `getCourse` · Scope `content:read`

Returns a visible published course and the version UUID that a new assignment will deliver, or one of the organisation's own drafts or archived courses.

**Parameters**

- `id` (path, uuid, required): The course's Tayl UUID.

**Responses**

- `200` (Course): The course, including its current published version UUID.
- Errors: `400`, `401`, `402`, `403`, `404`, `429`.

**Example response** (`200`)

```json
{"id":"019cf5b0-7c00-7000-8000-000000000005","title":"Food safety essentials","description":"Safe food handling for new starters","status":"published","platform_course":true,"syncs_from_v2":false,"in_library":true,"compliance_training":true,"current_version_id":"019cf5b0-7c00-7000-8000-000000000006","current_version_number":3,"published_at":"2026-02-20T10:00:00Z","created_at":"2025-11-01T09:00:00Z","updated_at":"2026-02-20T10:00:00Z"}
```

## 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: an `id` from `POST /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`): `adapt` follows each learner's light or dark preference; `light` and `dark` force one. Null is `adapt`.
- `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 uses `theme_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 uses `theme_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.

### CourseContent

A course's content with what you need to save it back or publish it. Unknown fields are refused.

- `course` (object, unknown fields refused, required): The course.
- `course.id` (uuid, required): Tayl UUID.
- `course.status` (one of `"draft"`, `"autosaved"`, `"published"`, `"archived"`, required): `draft` until first published; `autosaved` is a draft never saved explicitly.
- `course.published_at` (date-time or null, required): When the course was first published.
- `course.current_version_id` (uuid or null, required): UUID of the published version learners get.
- `course.editor_url` (uri, required): Where a person opens the course builder to review the course.
- `version` (object, unknown fields refused, required): The version this content belongs to.
- `version.id` (uuid, required): Tayl UUID.
- `version.number` (integer, required): Version number.
- `version.draft` (boolean, required): Whether this is the course's draft.
- `version.updated_at` (date-time, required): When the version last changed.
- `etag` (string, required): Send as `If-Match` when saving the draft, so a change made since you read it isn't overwritten. Also sent in the `ETag` header. The published content's etag identifies that version; changes go to the draft.
- `publishable` (boolean, required): Whether the course's draft can be published now.
- `publish_error` (string or null, required): Why the draft can't be published yet, or null.
- `review` (array of CourseReviewSuggestion, required): Suggestions that would make this content easier to learn from, such as a picture without `alt` text, at most 20; read a chapter or page for its own. They never stop a save or publish: work through them, or tell the person why one doesn't apply.
- `media` (map of CourseMediaFile, required): Each file the content names, by the value used in the content.
- `content` (CourseDocument, required): The content. Change it and send it back to save the draft.

### 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: an `id` from `POST /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.

### CourseReviewSuggestion

One way to make a course, chapter or page easier to learn from. Unknown fields are refused.

- `pointer` (string, required): Where it applies, as a JSON Pointer into `content`, such as `/chapters/0/pages/1/blocks/2`.
- `code` (one of `"long_text"`, `"missing_alt"`, `"no_feedback"`, `"no_hero_image"`, `"no_practice"`, `"nothing_to_see_or_do"`, `"plain_flashcards"`, `"repeats_page_title"`, `"text_run"`, required): What the suggestion is about.
- `message` (string, required): What to change and why, in a sentence.

### CourseMediaFile

A file named in the document. Unknown fields are refused.

- `url` (uri, required): Download address. It redirects to the file; treat it as private.
- `filename` (string, required): Original file name.
- `content_type` (string, required): MIME type.
- `byte_size` (integer, required): Size in bytes.

### 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 reach `passing_percentage` to complete the course.
- `passing_percentage` (integer or null, 0–100): Score needed to pass, from 0 to 100; at least 1 when `requires_pass` is 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 is `show_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.

### CourseBlock

One block on a page. `type` decides which fields apply. [Course document format](https://tayl.pro/api/v1/docs/course-document.md) describes it in full.

### CourseQuestion

A quiz or knowledge check question. `kind` decides which fields apply. [Course document format](https://tayl.pro/api/v1/docs/course-document.md) describes it in full.

### CourseOutlineContent

A course's outline with what you need to reorganise it. Unknown fields are refused.

- `course` (object, unknown fields refused, required): The course.
- `course.id` (uuid, required): Tayl UUID.
- `course.status` (one of `"draft"`, `"autosaved"`, `"published"`, `"archived"`, required): `draft` until first published; `autosaved` is a draft never saved explicitly.
- `course.published_at` (date-time or null, required): When the course was first published.
- `course.current_version_id` (uuid or null, required): UUID of the published version learners get.
- `course.editor_url` (uri, required): Where a person opens the course builder to review the course.
- `version` (object, unknown fields refused, required): The version this content belongs to.
- `version.id` (uuid, required): Tayl UUID.
- `version.number` (integer, required): Version number.
- `version.draft` (boolean, required): Whether this is the course's draft.
- `version.updated_at` (date-time, required): When the version last changed.
- `etag` (string, required): Send as `If-Match` when saving the draft, so a change made since you read it isn't overwritten. Also sent in the `ETag` header. The published content's etag identifies that version; changes go to the draft.
- `content` (CourseOutline, required): The chapters and pages, without their content.

### 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.

### 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.

### 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.

### CourseChapterContent

One chapter of a course's content with what you need to save it back. Unknown fields are refused.

- `course` (object, unknown fields refused, required): The course.
- `course.id` (uuid, required): Tayl UUID.
- `course.status` (one of `"draft"`, `"autosaved"`, `"published"`, `"archived"`, required): `draft` until first published; `autosaved` is a draft never saved explicitly.
- `course.published_at` (date-time or null, required): When the course was first published.
- `course.current_version_id` (uuid or null, required): UUID of the published version learners get.
- `course.editor_url` (uri, required): Where a person opens the course builder to review the course.
- `version` (object, unknown fields refused, required): The version this content belongs to.
- `version.id` (uuid, required): Tayl UUID.
- `version.number` (integer, required): Version number.
- `version.draft` (boolean, required): Whether this is the course's draft.
- `version.updated_at` (date-time, required): When the version last changed.
- `etag` (string, required): Send as `If-Match` when saving the draft, so a change made since you read it isn't overwritten. Also sent in the `ETag` header. The published content's etag identifies that version; changes go to the draft.
- `review` (array of CourseReviewSuggestion, required): Suggestions that would make this content easier to learn from, such as a picture without `alt` text, at most 20; read a chapter or page for its own. They never stop a save or publish: work through them, or tell the person why one doesn't apply.
- `media` (map of CourseMediaFile, required): Each file the content names, by the value used in the content.
- `content` (CourseChapter, required): The chapter. Change it and send it back to save it.

### CoursePageContent

One page of a course's content with what you need to save it back. Unknown fields are refused.

- `course` (object, unknown fields refused, required): The course.
- `course.id` (uuid, required): Tayl UUID.
- `course.status` (one of `"draft"`, `"autosaved"`, `"published"`, `"archived"`, required): `draft` until first published; `autosaved` is a draft never saved explicitly.
- `course.published_at` (date-time or null, required): When the course was first published.
- `course.current_version_id` (uuid or null, required): UUID of the published version learners get.
- `course.editor_url` (uri, required): Where a person opens the course builder to review the course.
- `version` (object, unknown fields refused, required): The version this content belongs to.
- `version.id` (uuid, required): Tayl UUID.
- `version.number` (integer, required): Version number.
- `version.draft` (boolean, required): Whether this is the course's draft.
- `version.updated_at` (date-time, required): When the version last changed.
- `etag` (string, required): Send as `If-Match` when saving the draft, so a change made since you read it isn't overwritten. Also sent in the `ETag` header. The published content's etag identifies that version; changes go to the draft.
- `review` (array of CourseReviewSuggestion, required): Suggestions that would make this content easier to learn from, such as a picture without `alt` text, at most 20; read a chapter or page for its own. They never stop a save or publish: work through them, or tell the person why one doesn't apply.
- `media` (map of CourseMediaFile, required): Each file the content names, by the value used in the content.
- `content` (CoursePage, required): The page. Change it and send it back to save it.

### CourseDocumentPatch

RFC 6902 JSON Patch operations, applied in order to the document you last read. The result is saved like a full replacement. Array of CourseDocumentPatchOperation, 1–1000 items.

### CourseDocumentPatchOperation

One RFC 6902 JSON Patch operation on the course document. `op` decides which fields apply. One of these, chosen by `op`: `add`: CourseDocumentPatchValueOperation, `replace`: CourseDocumentPatchValueOperation, `test`: CourseDocumentPatchValueOperation, `remove`: CourseDocumentPatchRemoveOperation, `move`: CourseDocumentPatchMoveOperation, `copy`: CourseDocumentPatchMoveOperation.

### CourseDocumentPatchValueOperation

Adds, replaces or tests a value. A failed `test` stops the whole patch. Unknown fields are refused.

- `op` (one of `"add"`, `"replace"`, `"test"`, required): The operation.
- `path` (string, required): JSON Pointer into the document, such as `/chapters/0/pages/1/blocks/2/html`. `-` appends to an array.
- `value` (any value, required): The value to add, replace with or test for.

### CourseDocumentPatchRemoveOperation

Removes a value. Unknown fields are refused.

- `op` (`"remove"`, required): The operation.
- `path` (string, required): JSON Pointer into the document, such as `/chapters/0/pages/1/blocks/2/html`. `-` appends to an array.

### CourseDocumentPatchMoveOperation

Moves or copies a value from `from` to `path`. Unknown fields are refused.

- `op` (one of `"move"`, `"copy"`, required): The operation.
- `from` (string, required): JSON Pointer to the value to move or copy.
- `path` (string, required): JSON Pointer into the document, such as `/chapters/0/pages/1/blocks/2/html`. `-` appends to an array.

### CoursePublish

Options for publishing a course's draft. Unknown fields are refused.

- `training_rules` (CourseTrainingRules): Rules for the content library, only when the course is first published. After that, change them in Tayl's content library.

### Course

A published course the organisation can see, or one of its own drafts or archived courses. Pass a published course's `id` as `assignable_id` (with `assignable_type: course`) when creating an assignment; learners get the current published version.

- `id` (uuid, required): Tayl UUID.
- `title` (string or null, required): Title shown to managers and learners. Null only for an unfinished `autosaved` draft.
- `description` (string or null): Optional explanatory text shown with the resource.
- `status` (one of `"draft"`, `"autosaved"`, `"published"`, `"archived"`, required): `draft` until first published; `autosaved` is a draft never saved explicitly. Only a published course can be assigned.
- `platform_course` (boolean, required): True for courses from the Tayl platform catalogue.
- `syncs_from_v2` (boolean, required): True while a Tayl course still syncs from Taylv2. The first change saved to its draft stops that for good, so check with the person first.
- `in_library` (boolean, required): Whether the course is in the organisation's content library. Must be true before the course can be assigned; an admin or content manager adds Tayl's courses to the library in Tayl.
- `compliance_training` (boolean or null, required): The organisation's current compliance policy for this course. Null when the course is visible but not in its library.
- `current_version_id` (uuid or null, required): UUID of the current published version, which new assignments deliver.
- `current_version_number` (integer or null): Human-facing number of the current published version.
- `published_at` (date-time or null, required): When the course was first published. Null for a draft.
- `created_at` (date-time, required): When the record was created, as an ISO 8601 UTC timestamp.
- `updated_at` (date-time, required): When the represented record last changed, as an ISO 8601 UTC timestamp.

### CourseTrainingRules

Training rules for the course in your organisation's content library. Fields you leave out take the rules the course recommends. Unknown fields are refused.

- `due_in_days` (integer or null, 0–365): Days learners have to complete the course after it's assigned. 0 or null means no due date.
- `valid_for_months` (integer or null, 1–120): How long a completion stays valid before it expires, in months. Null means it never expires.
- `available_to_recertify_within_days` (integer or null, 1–365): How many days before expiry learners can recertify. Needs `valid_for_months`.
- `issues_certificates` (boolean or null): Whether learners can download a PDF certificate when they complete the course.
- `minimum_minutes_required` (integer or null, 0–2147483647): Minutes learners must spend in the course before they can complete it.
- `compliance_training` (boolean or null): Whether current assignments of the course count towards your organisation's compliance. Null means false.

### CourseSettings

A Tayl course's settings, which reach every organisation, and the choices its lists can take. Unknown fields are refused.

- `course_id` (uuid, required): The course's Tayl UUID.
- `syncs_from_v2` (boolean, required): Whether the course still syncs from Taylv2, which then sets its validity, PDF certificates, categories and industries. Its first change of content or appearance in Tayl stops the sync for good.
- `recommendations` (CourseRecommendations, required): What the course recommends to each organisation.
- `requirements` (CourseRequirements, required): Rules the course fixes for every organisation.
- `certification` (CourseCertification, required): How the course is certified.
- `availability` (CourseAvailability, required): How organisations get the course.
- `category_ids` (array of uuid, unique, required): The categories the course is in, from `choices.categories`. Set by Taylv2 while the course syncs from there.
- `industry_ids` (array of uuid, unique, required): The industries the course is for, from `choices.industries`. Set by Taylv2 while the course syncs from there.
- `region_ids` (array of uuid, unique, required): The regions the course is for, from `choices.regions`.
- `accreditor_ids` (array of uuid, unique, required): The bodies that accredit the course, from `choices.accreditors`. Their logos appear on its certificates. While the course syncs from Taylv2, each sync adds V2's back.
- `choices` (object, unknown fields refused, required): What each list can hold.
- `choices.categories` (array of CourseSettingsChoice, required): Tayl's course categories, for `category_ids`.
- `choices.industries` (array of CourseSettingsChoice, required): Tayl's industries, for `industry_ids`.
- `choices.regions` (array of CourseSettingsChoice, required): Tayl's regions, for `region_ids`.
- `choices.accreditors` (array of CourseSettingsChoice, required): The accrediting bodies, for `accreditor_ids`.

### CourseRecommendations

What a Tayl course recommends, which each organisation's content library starts with when it adds the course and can change there. The names are the training rules a first publish takes. Unknown fields are refused.

- `due_in_days` (integer or null, 0–365): Days learners have to complete the course after it's assigned. 0 or null means no due date.
- `valid_for_months` (integer or null, 1–120): How long a completion stays valid before it expires, in months. Null means it never expires. Set by Taylv2 while the course syncs from there.
- `available_to_recertify_within_days` (integer or null, 1–365): How many days before expiry learners can recertify. It needs a validity, recommended or required; null means 30.
- `issues_certificates` (boolean): Whether learners can download a PDF certificate when they complete the course. Set by Taylv2 while the course syncs from there.
- `minimum_minutes_required` (integer or null, 0–2147483647): Minutes learners must spend in the course before they can complete it.
- `compliance_training` (boolean): Whether organisations that add the course start with it as compliance training.

### CourseRequirements

Rules a Tayl course fixes for every organisation, which no organisation or group can change. A change applies to every organisation straight away, including to learners part-way through. Unknown fields are refused.

- `valid_for_months` (integer or null, 1–120): How long a completion stays valid before it expires, in months. Null leaves each organisation to choose.
- `minimum_minutes` (integer or null, 0–2147483647): Minutes learners must spend in the course before they can complete it. Null leaves each organisation to choose.

### CourseCertification

How a Tayl course is certified. Unknown fields are refused.

- `certified` (boolean): Whether an awarding body officially certifies the course. A certified course needs an accreditor.
- `licensing_scotland` (boolean): Whether the course's certificate carries the learner and trainer declarations the Licensing (Training of Staff) (Scotland) Regulations 2007 require.

### CourseAvailability

How organisations get a Tayl course. Unknown fields are refused.

- `on_request` (boolean): Whether organisations ask Tayl for the course, such as one Tayl pays a licence for. Only Tayl staff add it to a library or share it with a group; everyone else is asked to get in touch. Turning it on leaves libraries that already have it alone.

### CourseSettingsChoice

A category, industry, region or accreditor a Tayl course's settings can list. Tayl staff add them in Tayl. Unknown fields are refused.

- `id` (uuid, required): Tayl UUID, to send in the matching list.
- `name` (string, required): Its name, as people see it in Tayl.

### CourseSettingsInput

Changes to a Tayl course's settings. Fields you leave out keep their values; each list you send replaces the course's. Unknown fields are refused.

- `recommendations` (CourseRecommendations): What the course recommends to each organisation.
- `requirements` (CourseRequirements): Rules the course fixes for every organisation.
- `certification` (CourseCertification): How the course is certified.
- `availability` (CourseAvailability): How organisations get the course.
- `category_ids` (array of uuid, unique): The categories the course is in, from `choices.categories`. Set by Taylv2 while the course syncs from there.
- `industry_ids` (array of uuid, unique): The industries the course is for, from `choices.industries`. Set by Taylv2 while the course syncs from there.
- `region_ids` (array of uuid, unique): The regions the course is for, from `choices.regions`.
- `accreditor_ids` (array of uuid, unique): The bodies that accredit the course, from `choices.accreditors`. Their logos appear on its certificates. While the course syncs from Taylv2, each sync adds V2's back.

### CourseImage

An image in the organisation's media library, ready to use in course documents. Unknown fields are refused.

- `id` (string, required): Put this in a course document's image field, such as `image`, `hero_image` or `front_image`, to use the image.
- `url` (uri, required): Download address. It redirects to the file; treat it as private.
- `filename` (string, required): Original file name.
- `content_type` (string, required): MIME type.
- `byte_size` (integer, required): Size in bytes, after images wider or taller than 2400 pixels are scaled down.

### CourseList

One page of courses.

- `courses` (array of Course, required): Courses on this page.
- `meta` (Meta, required): Metadata describing this page or bulk operation.

### Meta

Pagination details on every list. Page links also come in the RFC 8288 `Link` header, as `first`, `prev`, `next` and `last`.

- `page` (integer, required): Current page (1-based).
- `per_page` (integer, required): Records per page (default 25, max 100).
- `total_pages` (integer, required): Number of pages available for the current filters.
- `total_count` (integer, required): Total records matching the current filters.
