# Assigning training

Assign courses, pathways and signable documents from the content library to people and groups, and change or archive those assignments.

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

The people and group lists from [People and groups](https://tayl.pro/api/v1/docs/people.md) are repeated here, so finding who to assign training to needs only this page.

## Making an assignment

1. Find the course, pathway or signable document with `GET /api/v1/courses`, `/api/v1/pathways` or `/api/v1/signable-documents`. Content can be assigned once its `in_library` is true; an admin or content manager adds Tayl's own courses to the library in Tayl first.
2. Find the people or groups to assign it to with `GET /api/v1/users` or `GET /api/v1/groups`, or use your own `external_id`s.
3. Create the assignment with `POST /api/v1/assignments`, naming the content and its `targets`. Tayl publishes it and, in the background, creates a task for every person targeted, including each member of a targeted group.

[Reporting](https://tayl.pro/api/v1/docs/reporting.md) covers following up on who has completed it.

## Assignment rules

- How long a completion stays valid, when recertification opens, whether certificates are issued and the minimum time to spend are set for the content in the content library, not on assignments: sending them returns `422`. Read the values that apply from `effective_settings`, whose `sources` say where each one comes from. Pathways don't expire: the courses and documents in them renew on their own settings.
- Publishing returns `422 not_publishable` if another published assignment already covers the same content and people.
- `requires_recompletion` asks people who already completed a course, or signed a document, to do it again on the assigned version. Earlier completions and signatures are kept.
- `requires_recompletion` does not reopen completed pathways. When enabled on a pathway assignment, carried-over or imported course evidence must be dated after the assignment date.
- A personal key follows its person's assignment permissions. A manager's key assigns only to people and groups they manage and cannot directly target an admin (`422 unresolvable_target`). Admins, organisation-group admins and platform staff can assign organisation-wide, including to admins.

## Operations

### Content library

Published courses, pathways, and signable documents available to assign.

#### 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"}
```

#### List pathways

`GET https://tayl.pro/api/v1/pathways` · `listPathways` · Scope `content:read`

Lists the published pathways the organisation can see: its own and those shared through its organisation group, which stay visible only while the group shares them, even if assignments still use them. `since` considers changes to pathways and to their places in the organisation's or group's library. A pathway leaving a library leaves no trace for `since`, so reconcile against the full list regularly.

**Parameters**

- `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` (PathwayList): A page of pathways, sorted by title. Headers: Link.
- Errors: `400`, `401`, `402`, `403`, `429`.

**Example response** (`200`)

```json
{"pathways":[{"id":"019cf5b0-7c00-7000-8000-000000000007","title":"Front of house onboarding","current_version_id":"019cf5b0-7c00-7000-8000-000000000008","current_version_number":2,"published_at":"2026-02-25T10:00:00Z","created_at":"2025-12-01T09:00:00Z","updated_at":"2026-02-25T10:00:00Z"}],"meta":{"page":1,"per_page":25,"total_pages":1,"total_count":1}}
```

#### Get a pathway

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

Returns a visible published pathway and the version UUID that a new assignment will deliver.

**Parameters**

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

**Responses**

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

**Example response** (`200`)

```json
{"id":"019cf5b0-7c00-7000-8000-000000000007","title":"Front of house onboarding","current_version_id":"019cf5b0-7c00-7000-8000-000000000008","current_version_number":2,"published_at":"2026-02-25T10:00:00Z","created_at":"2025-12-01T09:00:00Z","updated_at":"2026-02-25T10:00:00Z"}
```

#### List signable documents

`GET https://tayl.pro/api/v1/signable-documents` · `listSignableDocuments` · Scope `content:read`

Lists the published signable documents the organisation can see: its own and those shared through its organisation group, which stay visible only while the group shares them, even if assignments still use them. `since` considers changes to documents and to their places in the organisation's or group's library. A document leaving a library leaves no trace for `since`, so reconcile against the full list regularly.

**Parameters**

- `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` (SignableDocumentList): A page of signable documents, sorted by title. Headers: Link.
- Errors: `400`, `401`, `402`, `403`, `429`.

**Example response** (`200`)

```json
{"signable_documents":[{"id":"019cf5b0-7c00-7000-8000-000000000009","title":"Employee handbook","compliance_training":true,"current_version_id":"019cf5b0-7c00-7000-8000-00000000000a","current_version_number":4,"published_at":"2026-03-01T10:00:00Z","created_at":"2025-10-01T09:00:00Z","updated_at":"2026-03-01T10:00:00Z"}],"meta":{"page":1,"per_page":25,"total_pages":1,"total_count":1}}
```

#### Get a signable document

`GET https://tayl.pro/api/v1/signable-documents/{id}` · `getSignableDocument` · Scope `content:read`

Returns a visible published document and the version UUID that a new assignment will deliver.

**Parameters**

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

**Responses**

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

**Example response** (`200`)

```json
{"id":"019cf5b0-7c00-7000-8000-000000000009","title":"Employee handbook","compliance_training":true,"current_version_id":"019cf5b0-7c00-7000-8000-00000000000a","current_version_number":4,"published_at":"2026-03-01T10:00:00Z","created_at":"2025-10-01T09:00:00Z","updated_at":"2026-03-01T10:00:00Z"}
```

### Assignments

Assign training to people and groups. Tayl creates learner tasks automatically.

#### List assignments

`GET https://tayl.pro/api/v1/assignments` · `listAssignments` · Scope `assignments:read`

Lists the organisation's assignments in every state except draft, as drafts are still being set up in Tayl. `since` considers changes to assignments; replacing targets changes the assignment, but a change to a setting it inherits from the content library doesn't.

**Parameters**

- `page` (query, integer, at least 1, default `1`): Page to fetch.
- `per_page` (query, integer, 1–100, default `25`): Records per page.
- `state` (query, one of `"scheduled"`, `"published"`, `"archived"`, `"frozen"`): Return only records currently in this lifecycle state.
- `assignable_type` (query, one of `"course"`, `"pathway"`, `"signable_document"`): Content kind used with `assignable_id`; both filters must be supplied together.
- `assignable_id` (query, uuid): Content UUID: only assignments of that course, pathway or document.
- `target_type` (query, one of `"user"`, `"group"`): Only assignments with at least one target of this kind.
- `external_id` (query, string): Exact external_id match.
- `since` (query, date-time): Inclusive ISO 8601 cursor. Each endpoint documents which change timestamps it considers.
- `sort` (query, one of `"created_at"`, `"updated_at"`, default `"created_at"`): Field used to order the result set.
- `order` (query, one of `"asc"`, `"desc"`, default `"asc"`): Sort direction.

**Responses**

- `200` (AssignmentList): A page of assignments. Headers: Link.
- Errors: `400`, `401`, `402`, `403`, `429`.

**Example response** (`200`)

```json
{"assignments":[{"id":"019cf5b0-7c00-7000-8000-00000000000b","external_id":"asg-food-safety-london-2026","state":"published","assignable_type":"course","assignable_id":"019cf5b0-7c00-7000-8000-000000000005","assignable_version_id":"019cf5b0-7c00-7000-8000-000000000006","title":"Food safety essentials","targets":[{"type":"group","id":"019cf5b0-7c00-7000-8000-000000000003","external_id":"loc-london"}],"due_in_days":14,"due_on":null,"issues_certificates":true,"requires_recompletion":true,"require_sequential_progress":false,"include_future_members":true,"send_notification":true,"title_override":null,"effective_settings":{"due_in_days":14,"valid_for_months":12,"available_to_recertify_within_days":30,"issues_certificates":true,"minimum_minutes_required":10,"sources":{"due_in_days":{"source":"assignment","required":false,"locked":false},"valid_for_months":{"source":"content_library","required":false,"locked":false},"available_to_recertify_within_days":{"source":"content_library","required":false,"locked":false},"issues_certificates":{"source":"assignment","required":false,"locked":false},"minimum_minutes_required":{"source":"content_library","required":false,"locked":false}}},"published_at":"2026-03-12T09:00:00Z","scheduled_publish_at":null,"archived_at":null,"created_at":"2026-03-12T09:00:00Z","updated_at":"2026-03-12T09:00:00Z"}],"meta":{"page":1,"per_page":25,"total_pages":1,"total_count":1}}
```

#### Create an assignment

`POST https://tayl.pro/api/v1/assignments` · `createAssignment` · Scope `assignments:write`

Creates and publishes an assignment in one call, then creates a task in the background for every person targeted, including each member of a targeted group. The content must be published, visible to the organisation and in its library. Targets mix people and groups, by UUID or `external_id`. Training rules come from the content library, though an assignment may set its own due date; validity, recertification, certificates and minimum time can't be changed here. Publishing fails with 422 if another published assignment already covers the same content and people.

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

**Responses**

- `201` (Assignment): The published assignment.
- Errors: `400`, `401`, `402`, `403`, `409`, `422`, `429`.

**Example request**

```json
{"assignable_type":"course","assignable_id":"019cf5b0-7c00-7000-8000-000000000005","external_id":"asg-food-safety-london-2026","targets":[{"group_external_id":"loc-london"}],"due_in_days":14}
```

#### Get an assignment

`GET https://tayl.pro/api/v1/assignments/{id}` · `getAssignment` · Scope `assignments:read`

Returns one non-draft assignment, with the people and groups it's for and the settings learners get.

**Parameters**

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

**Responses**

- `200` (Assignment): The assignment.
- Errors: `400`, `401`, `402`, `403`, `404`, `429`.

**Example response** (`200`)

```json
{"id":"019cf5b0-7c00-7000-8000-00000000000b","external_id":"asg-food-safety-london-2026","state":"published","assignable_type":"course","assignable_id":"019cf5b0-7c00-7000-8000-000000000005","assignable_version_id":"019cf5b0-7c00-7000-8000-000000000006","title":"Food safety essentials","targets":[{"type":"group","id":"019cf5b0-7c00-7000-8000-000000000003","external_id":"loc-london"}],"due_in_days":14,"due_on":null,"issues_certificates":true,"requires_recompletion":true,"require_sequential_progress":false,"include_future_members":true,"send_notification":true,"title_override":null,"effective_settings":{"due_in_days":14,"valid_for_months":12,"available_to_recertify_within_days":30,"issues_certificates":true,"minimum_minutes_required":10,"sources":{"due_in_days":{"source":"assignment","required":false,"locked":false},"valid_for_months":{"source":"content_library","required":false,"locked":false},"available_to_recertify_within_days":{"source":"content_library","required":false,"locked":false},"issues_certificates":{"source":"assignment","required":false,"locked":false},"minimum_minutes_required":{"source":"content_library","required":false,"locked":false}}},"published_at":"2026-03-12T09:00:00Z","scheduled_publish_at":null,"archived_at":null,"created_at":"2026-03-12T09:00:00Z","updated_at":"2026-03-12T09:00:00Z"}
```

#### Update an assignment

`PATCH https://tayl.pro/api/v1/assignments/{id}` · `updateAssignment` · Scope `assignments:write`

Updates the assignment's own settings and, optionally, who it's for. Fields you leave out keep their values, and null returns a setting to the one it inherits. Validity, recertification, certificates and minimum time are set in the content library and can't be changed here. Setting one of `due_in_days` and `due_on` clears the other. A `targets` array replaces the people and groups: added ones get tasks in the background, and tasks kept only by removed ones are cancelled. Replacing them fails with 422, changing nothing, when another published assignment already covers the same content and one of the new targets. Archived assignments can't change, and frozen ones can't change their targets (422).

**Parameters**

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

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

**Responses**

- `200` (Assignment): The updated assignment.
- Errors: `400`, `401`, `402`, `403`, `404`, `409`, `422`, `429`.

**Example request**

```json
{"due_in_days":21,"send_notification":false}
```

#### Archive an assignment

`DELETE https://tayl.pro/api/v1/assignments/{id}` · `archiveAssignment` · Scope `assignments:write`

Archives the assignment and removes it from learners' tasks, cancelling any task only this assignment kept. Archiving an archived assignment changes nothing.

**Parameters**

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

**Responses**

- `204`: Assignment archived.
- Errors: `400`, `401`, `402`, `403`, `404`, `429`.

#### Get an assignment by external ID

`GET https://tayl.pro/api/v1/assignments/by-external-id/{external_id}` · `getAssignmentByExternalId` · Scope `assignments:read`

Returns the non-draft assignment with this `external_id`.

**Parameters**

- `external_id` (path, string, required): The assignment's `external_id`.

**Responses**

- `200` (Assignment): The assignment.
- Errors: `400`, `401`, `402`, `403`, `404`, `429`.

**Example response** (`200`)

```json
{"id":"019cf5b0-7c00-7000-8000-00000000000b","external_id":"asg-food-safety-london-2026","state":"published","assignable_type":"course","assignable_id":"019cf5b0-7c00-7000-8000-000000000005","assignable_version_id":"019cf5b0-7c00-7000-8000-000000000006","title":"Food safety essentials","targets":[{"type":"group","id":"019cf5b0-7c00-7000-8000-000000000003","external_id":"loc-london"}],"due_in_days":14,"due_on":null,"issues_certificates":true,"requires_recompletion":true,"require_sequential_progress":false,"include_future_members":true,"send_notification":true,"title_override":null,"effective_settings":{"due_in_days":14,"valid_for_months":12,"available_to_recertify_within_days":30,"issues_certificates":true,"minimum_minutes_required":10,"sources":{"due_in_days":{"source":"assignment","required":false,"locked":false},"valid_for_months":{"source":"content_library","required":false,"locked":false},"available_to_recertify_within_days":{"source":"content_library","required":false,"locked":false},"issues_certificates":{"source":"assignment","required":false,"locked":false},"minimum_minutes_required":{"source":"content_library","required":false,"locked":false}}},"published_at":"2026-03-12T09:00:00Z","scheduled_publish_at":null,"archived_at":null,"created_at":"2026-03-12T09:00:00Z","updated_at":"2026-03-12T09:00:00Z"}
```

#### Update an assignment by external ID

`PATCH https://tayl.pro/api/v1/assignments/by-external-id/{external_id}` · `updateAssignmentByExternalId` · Scope `assignments:write`

Updates the assignment with this `external_id`, returning 404 if there's none: it doesn't create one.

**Parameters**

- `external_id` (path, string, required): The assignment's `external_id`.

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

**Responses**

- `200` (Assignment): The updated assignment.
- Errors: `400`, `401`, `402`, `403`, `404`, `409`, `422`, `429`.

**Example request**

```json
{"due_in_days":21,"send_notification":false}
```

#### Archive an assignment by external ID

`DELETE https://tayl.pro/api/v1/assignments/by-external-id/{external_id}` · `archiveAssignmentByExternalId` · Scope `assignments:write`

Archives the externally identified assignment and cancels tasks sustained only by that assignment.

**Parameters**

- `external_id` (path, string, required): The assignment's `external_id`.

**Responses**

- `204`: Assignment archived.
- Errors: `400`, `401`, `402`, `403`, `404`, `429`.

### Users

Repeated from [People and groups](https://tayl.pro/api/v1/docs/people.md), which has the rest of these operations.

#### List users

`GET https://tayl.pro/api/v1/users` · `listUsers` · Scope `users:read`

Lists the organisation's users, including archived ones but not people removed from the organisation or whose accounts were deleted. `since` considers changes to each person's membership of the organisation.

**Parameters**

- `page` (query, integer, at least 1, default `1`): Page to fetch.
- `per_page` (query, integer, 1–100, default `25`): Records per page.
- `email` (query, string): Exact email match (case-insensitive).
- `external_id` (query, ExternalId): Exact external_id match.
- `state` (query, one of `"pending"`, `"invited"`, `"onboarding"`, `"active"`, `"non_compliant"`, `"paused"`, `"suspended"`, `"archived"`): Return only records currently in this lifecycle state.
- `since` (query, date-time): Inclusive ISO 8601 cursor. Each endpoint documents which change timestamps it considers.
- `sort` (query, one of `"created_at"`, `"updated_at"`, `"email"`, default `"created_at"`): Field used to order the result set.
- `order` (query, one of `"asc"`, `"desc"`, default `"asc"`): Sort direction.

**Responses**

- `200` (UserList): A page of users. Headers: Link.
- Errors: `400`, `401`, `402`, `403`, `429`.

**Example response** (`200`)

```json
{"users":[{"id":"019cf5b0-7c00-7000-8000-000000000002","external_id":"usr-1042","email":"alex.chen@example.com","name":"Alex Chen","first_name":"Alex","last_name":"Chen","state":"active","invited_at":"2026-03-10T09:00:00Z","accepted_at":"2026-03-10T09:15:00Z","created_at":"2026-03-10T09:00:00Z","updated_at":"2026-03-16T10:00:00Z"}],"meta":{"page":1,"per_page":25,"total_pages":1,"total_count":1}}
```

### Groups

Repeated from [People and groups](https://tayl.pro/api/v1/docs/people.md), which has the rest of these operations.

#### List groups

`GET https://tayl.pro/api/v1/groups` · `listGroups` · Scope `groups:read`

Lists current groups. `since` considers group updated_at.

**Parameters**

- `page` (query, integer, at least 1, default `1`): Page to fetch.
- `per_page` (query, integer, 1–100, default `25`): Records per page.
- `external_id` (query, ExternalId): Exact external_id match.
- `category_id` (query, uuid): Return only groups assigned to this group category UUID.
- `automatic` (query, boolean): Filter to automatic (system-managed) or manual groups.
- `since` (query, date-time): Inclusive ISO 8601 cursor. Each endpoint documents which change timestamps it considers.
- `sort` (query, one of `"created_at"`, `"updated_at"`, `"name"`, default `"created_at"`): Field used to order the result set.
- `order` (query, one of `"asc"`, `"desc"`, default `"asc"`): Sort direction.

**Responses**

- `200` (GroupList): A page of groups. Headers: Link.
- Errors: `400`, `401`, `402`, `403`, `429`.

**Example response** (`200`)

```json
{"groups":[{"id":"019cf5b0-7c00-7000-8000-000000000003","external_id":"loc-london","name":"London","description":"People based at the London site","category_id":"019cf5b0-7c00-7000-8000-000000000004","automatic":false,"rule_user_group_ids":[],"category_made":false,"members_count":18,"created_at":"2026-02-01T09:00:00Z","updated_at":"2026-03-15T11:30:00Z"}],"meta":{"page":1,"per_page":25,"total_pages":1,"total_count":1}}
```

## Schemas

### CourseList

One page of courses.

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

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

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

### PathwayList

One page of published pathways in the organisation library.

- `pathways` (array of Pathway, required): Pathways on this page.
- `meta` (Meta, required): Metadata describing this page or bulk operation.

### Pathway

A published learning pathway in the organisation's library. Pass `id` as `assignable_id` (with `assignable_type: pathway`) when creating an assignment.

- `id` (uuid, required): Tayl UUID.
- `title` (string, required): Title shown to managers and learners.
- `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, required): When this version or assignment was published.
- `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.

### SignableDocumentList

One page of published signable documents in the organisation library.

- `signable_documents` (array of SignableDocument, required): Signable documents on this page.
- `meta` (Meta, required): Metadata describing this page or bulk operation.

### SignableDocument

A published document requiring signatures, in the organisation's library. Pass `id` as `assignable_id` (with `assignable_type: signable_document`) when creating an assignment.

- `id` (uuid, required): Tayl UUID.
- `title` (string or null, required): The current published version's title, as a document's title belongs to its version.
- `compliance_training` (boolean, required): The organisation's current compliance policy for this document.
- `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, required): When this version or assignment was published.
- `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.

### AssignmentList

One page of non-draft assignments.

- `assignments` (array of Assignment, required): Assignments on this page.
- `meta` (Meta, required): Metadata describing this page or bulk operation.

### Assignment

Content assigned to people and groups. The assignment's own settings are top-level fields; the settings learners get, wherever they come from, are under `effective_settings`.

- `id` (uuid, required): Tayl UUID.
- `external_id` (string or null): Caller-owned identifier, unique within the organisation.
- `state` (one of `"scheduled"`, `"published"`, `"archived"`, `"frozen"`, required): Current lifecycle state of the resource.
- `assignable_type` (one of `"course"`, `"pathway"`, `"signable_document"`, required): Kind of content represented by `assignable_id`.
- `assignable_id` (uuid, required): The assigned content's UUID.
- `assignable_version_id` (uuid or null, required): The minimum content version learners receive.
- `title` (string or null, required): The assignment's display title: `title_override` when set, otherwise the content's title.
- `targets` (array of AssignmentTarget, required): The people and groups the assignment is for.
- `due_in_days` (integer or null): Days from task creation until due. 0 means explicitly no due date; null inherits.
- `due_on` (date or null): Fixed due date. Can't be set with `due_in_days`.
- `issues_certificates` (boolean or null): A certificate setting kept from older course assignments. Read-only; null follows the content library.
- `requires_recompletion` (boolean, required): Whether learners who already completed a course or document must complete it again. Completed pathways are not reopened. When true on a pathway assignment, carried-over or imported course evidence must be dated after the assignment date.
- `require_sequential_progress` (boolean, required): Whether learners must view a course's pages in order. When true, later pages, quizzes, signing chapters and SCORM chapters stay locked until every page before them is viewed, and completion needs every page viewed. On a pathway assignment it applies to the pathway's courses; documents ignore it.
- `include_future_members` (boolean or null): Whether users who later join a targeted group are assigned too.
- `send_notification` (boolean or null): Whether Tayl notifies learners about newly created tasks.
- `title_override` (string or null): Assignment-specific title; null uses the content title.
- `effective_settings` (object, required): The settings learners get. They come from the content library, the organisation group's locks or the course's own requirements; due dates may be the assignment's own.
- `effective_settings.due_in_days` (integer or null, required): Relative number of days until a new task is due; null means inherited.
- `effective_settings.valid_for_months` (integer or null, required): Months a completion stays valid, as the content library sets; null means it doesn't expire, as for pathways.
- `effective_settings.available_to_recertify_within_days` (integer or null, required): Days before expiry when recertification opens, as the content library sets; null means no window is set, as for pathways.
- `effective_settings.issues_certificates` (boolean, required): Whether qualifying course completions issue certificates.
- `effective_settings.minimum_minutes_required` (integer or null, at least 0, required): Minimum learner engagement time required before completing the course.
- `effective_settings.sources` (object, unknown fields refused, required): Ownership metadata for each effective training setting, or null where a setting doesn't apply: certificates and minimum engagement apply only to courses, and validity and the recertification window only to courses and documents.
- `effective_settings.sources.due_in_days` (AssignmentSettingSource, required): Ownership metadata for the effective relative deadline.
- `effective_settings.sources.valid_for_months` (AssignmentSettingSource or null, required): Ownership metadata for how long completions remain valid, or null when validity does not apply.
- `effective_settings.sources.available_to_recertify_within_days` (AssignmentSettingSource or null, required): Ownership metadata for the recertification window, or null when validity does not apply.
- `effective_settings.sources.issues_certificates` (AssignmentSettingSource or null, required): Ownership metadata for certificate issuance, or null when certificates do not apply.
- `effective_settings.sources.minimum_minutes_required` (AssignmentSettingSource or null, required): Ownership metadata for minimum engagement, or null when minimum engagement does not apply.
- `published_at` (date-time or null): When this version or assignment was published.
- `scheduled_publish_at` (date-time or null): Scheduled publication time; null when publication is not scheduled.
- `archived_at` (date-time or null): When the record was archived; null while current.
- `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.

### AssignmentTarget

A person or group the assignment is for.

- `type` (one of `"user"`, `"group"`, required): Resource or event type discriminator.
- `id` (uuid, required): The user's or group's Tayl UUID.
- `external_id` (string or null): The person's or group's `external_id`, when set.

### AssignmentSettingSource

Ownership and write-protection metadata for one effective training setting. Unknown fields are refused.

- `source` (one of `"assignment"`, `"content_library"`, `"organisation_group"`, `"course_requirement"`, required): The authoritative owner of the effective value.
- `required` (boolean, required): Whether an explicit Course requirement fixes the value.
- `locked` (boolean, required): Whether the organisation is prevented from changing the value.

### AssignmentCreateInput

Published content, the people and groups to assign it to, and optional assignment settings. Validity, recertification, certificates and minimum time are set in the content library; sending them returns 422.

- `assignable_type` (one of `"course"`, `"pathway"`, `"signable_document"`, required): Kind of content represented by `assignable_id`.
- `assignable_id` (uuid, required): UUID of published content visible to the organisation and in its library (see the content endpoints).
- `external_id` (string or null): Caller-owned identifier, unique within the organisation.
- `targets` (array of AssignmentTargetInput, 1–500 items, required): The people and groups the assignment is for.
- `due_in_days` (integer or null, at least 0): Relative number of days until a new task is due; null means inherited.
- `due_on` (date or null): Fixed task due date; null means no fixed date.
- `requires_recompletion` (boolean): Whether learners who already completed a course or document must complete it again. Completed pathways are not reopened. When true on a pathway assignment, carried-over or imported course evidence must be dated after the assignment date.
- `require_sequential_progress` (boolean): Whether learners must view a course's pages in order. When true, later pages, quizzes, signing chapters and SCORM chapters stay locked until every page before them is viewed, and completion needs every page viewed. On a pathway assignment it applies to the pathway's courses; documents ignore it.
- `title_override` (string or null): Assignment-specific title; null uses the content title.
- `include_future_members` (boolean, default `true`): Whether people joining a targeted group later also receive a task.
- `send_notification` (boolean, default `true`): Whether Tayl notifies learners about newly created tasks.

### AssignmentTargetInput

Exactly one identifying key per entry. Unresolvable entries fail the whole request with a 422 pointing at the offending index. Send exactly one of `user_id`, `user_external_id`, `group_id`, `group_external_id`. Unknown fields are refused.

- `user_id` (uuid): UUID of the learner or organisation user.
- `user_external_id` (string, at least 1 character, matching `\S`): Caller-owned identifier of the learner, when set.
- `group_id` (uuid): UUID of the group.
- `group_external_id` (string, at least 1 character, matching `\S`): Caller-owned identifier of the group, when set.

### AssignmentUpdateInput

Fields you leave out keep their values, and null returns a setting to the one it inherits. Validity, recertification, certificates and minimum time are set in the content library; sending them returns 422. Setting one of `due_in_days` and `due_on` clears the other. A `targets` array replaces the people and groups: added ones get tasks, and tasks kept only by removed ones are cancelled.

- `external_id` (string or null): Caller-owned identifier used to reconcile this record with the source system.
- `targets` (array of AssignmentTargetInput, 1–500 items): The people and groups the assignment is for.
- `due_in_days` (integer or null, at least 0): Relative number of days until a new task is due; null means inherited.
- `due_on` (date or null): Fixed task due date; null means no fixed date.
- `requires_recompletion` (boolean): Whether learners who already completed a course or document must complete it again. Completed pathways are not reopened. When true on a pathway assignment, carried-over or imported course evidence must be dated after the assignment date.
- `require_sequential_progress` (boolean): Whether learners must view a course's pages in order. When true, later pages, quizzes, signing chapters and SCORM chapters stay locked until every page before them is viewed, and completion needs every page viewed. On a pathway assignment it applies to the pathway's courses; documents ignore it.
- `title_override` (string or null): Assignment-specific title; null uses the content title.
- `include_future_members` (boolean): Whether people joining a targeted group later also receive a task.
- `send_notification` (boolean): Whether Tayl notifies learners about newly created tasks.

### ExternalId

Caller-owned identifier, unique within the organisation. Matched case-sensitively; surrounding whitespace is stripped. String, at most 255 characters.

### UserList

One page of organisation users and its pagination metadata.

- `users` (array of User, required): Users on this page.
- `meta` (Meta, required): Metadata describing this page or bulk operation.

### User

A member of the organisation (an OrganisationUser). `state` tracks the membership lifecycle; archived users are retained with their learning history.

- `id` (uuid, required): Tayl UUID.
- `external_id` (NullableExternalId, required): Caller-owned identifier used to reconcile this record with the source system.
- `email` (email, required): The organisation contact email, normalised to lowercase.
- `name` (string, required): Display name: the linked account's name, the invited name, or the email.
- `first_name` (string or null, required): From the linked user account; null until the invitation is accepted.
- `last_name` (string or null, required): From the linked user account; null until the invitation is accepted.
- `state` (one of `"pending"`, `"invited"`, `"onboarding"`, `"active"`, `"non_compliant"`, `"paused"`, `"suspended"`, `"archived"`, required): Current lifecycle state of the resource.
- `invited_at` (date-time or null, required): When Tayl most recently sent the invitation; null when no invitation was sent.
- `accepted_at` (date-time or null, required): When the person accepted their invitation; null until acceptance.
- `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.

### NullableExternalId

Caller-owned identifier, unique within the organisation. Matched case-sensitively; surrounding whitespace is stripped. String or null, at most 255 characters.

### GroupList

One page of groups and its pagination metadata.

- `groups` (array of Group, required): Groups on this page.
- `meta` (Meta, required): Metadata describing this page or bulk operation.

### Group

A group of people. Automatic groups (`automatic: true`) are maintained by Tayl and read-only through the API. Rule-based groups (a non-empty `rule_user_group_ids`, `category_made: true`) are made only by Tayl, as a group category's subgroups: each holds everyone in both of the groups its rule names, and is read-only here apart from its memberships. People added to one directly (`source` `direct`) are in those groups through it.

- `id` (uuid, required): Tayl UUID.
- `external_id` (NullableExternalId, required): Caller-owned identifier used to reconcile this record with the source system.
- `name` (string, required): Human-readable name shown in Tayl.
- `description` (string or null, required): Optional explanatory text. Automatic groups describe the organisation's current criteria; changing those criteria advances updated_at and emits group.updated for the current group.
- `category_id` (uuid or null, required): Group category UUID (see /group-categories).
- `automatic` (boolean, required): Whether Tayl maintains it automatically, so it can't be changed by hand or through the API.
- `rule_user_group_ids` (array of uuid, required): For a rule-based group, the two groups its members are all in: the group it is a subgroup of, then the other. Empty for a manual or automatic group. Only Tayl makes rule-based groups, so a create or update ignores this field.
- `category_made` (boolean, required): Whether Tayl made this rule-based group as a group category's subgroup, such as Bristol · Bar Staff when Location makes subgroups by Job Role. Tayl names it and keeps it up to date, so it can't be changed or deleted through the API, though people can be added to it directly.
- `members_count` (integer, required): Active member count.
- `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.
