# Exams

> Track exams, coursework and quizzes, record their results and read each subject's grade.

Source: https://workroad.app/docs/api/exams

## Exams and results

An exam is any dated piece of assessed work: `kind` is `EXAM`, `COURSEWORK` or `QUIZ`. `POST /exams` takes a `title`, a `date` and a `time` in the user's time zone, and optionally its subject, length, room and `weight`. Exams show on the user's calendar and the exams page, and the revision plan works towards them. Exams use the tasks scopes: reading them needs `tasks:view`, and creating, changing and deleting them need `tasks:create`, `tasks:update` and `tasks:delete`.

A time the clocks skip on that day, such as 01:30 on the night the clocks go forward, returns 400 with `details.reason` `time-invalid`. A time the clocks pass twice is read as the first of the two. Each exam answers with its `startsAt` instant and the `date`, `time` and `timeZone` it was set in.

`PATCH /exams/{examId}` changes only the fields you send. Record the result with `resultPercent`, and the grade as the school gives it with `resultLabel`. Send `date` and `time` together to move the exam. `setIds` and `noteIds` replace the study sets and notes linked to it. They must be the user's own and not in the trash, or the call returns 400 `unknown-link`. Send back the `updatedAt` you read as `expectedUpdatedAt`, and an exam someone changed in the meantime returns 409 `stale` instead of losing their edit.

`DELETE /exams/{examId}` deletes an exam for good. The sets, notes and task linked to it stay.

## Grades

`GET /exams/grades` gives each subject's grade the way the exams page shows it. `average` is the weighted average of the results so far, and `weightDone` is the share of the subject's weight that has one. `needed` is what the exams still to come must average for the subject to reach its target. Above 100, the target is out of reach.

## Tasks that are exams

Some users wrote their exams down as tasks before WorkRoad tracked exams. `GET /exams/candidates` lists the dated tasks that read like an exam and haven't been converted. `POST /tasks/{taskId}/exam` makes an exam from one, with the task's name, subject and due time. A due day without a time starts at 09:00. The task stays, linked to the exam. Converting it again returns the same exam with `created: false`.

## List exams

`GET https://workroad.app/api/v1/exams`

Every exam, piece of coursework and quiz the user has, past and upcoming, oldest first. A student has tens of them, so the list is whole. Each subject's grade from them is at `GET /exams/grades`.

- MCP tool: `listExams` on `https://workroad.app/api/mcp`
- Required scopes: tasks:view
- Test mode: `GET https://workroad.app/api/test/v1/exams` checks the request and returns the example response without changing anything.

### Response

`200` OK

- `data`: array of objects, required
  - `id`: string (uuid), required
  - `title`: string, required
  - `kind`: one of `"EXAM"`, `"COURSEWORK"`, `"QUIZ"`, required. `EXAM`, `COURSEWORK` or `QUIZ`.
  - `subjectId`: string or null, required. The subject it is for, or null.
  - `startsAt`: string (date-time), required. When it starts.
  - `date`: string, required. The day it is (YYYY-MM-DD) in `timeZone`.
  - `time`: string, required. The start time (HH:MM) in `timeZone`.
  - `timeZone`: string, required. The time zone `date` and `time` were set in, the user's at the time.
  - `durationMinutes`: integer or null, required
  - `room`: string or null, required
  - `weight`: number, required
  - `resultPercent`: number or null, required. The result, 0 to 100, or null.
  - `resultLabel`: string or null, required
  - `sourceTaskId`: string or null, required. The task it was made from with `POST /tasks/{taskId}/exam`, or null.
  - `setIds`: array of string, required. The linked study sets still live.
  - `noteIds`: array of string, required. The linked notes still live.
  - `updatedAt`: string (date-time), required. Send it back as `expectedUpdatedAt` to edit safely.

#### Example

```json
{
  "data": [
    {
      "id": "6c5b4a39-2817-4f6e-9d5c-4b3a29180f7e",
      "title": "Biology paper 1",
      "kind": "EXAM",
      "subjectId": "5f0c1d2e-3a4b-4c5d-8e6f-7a8b9c0d1e2f",
      "startsAt": "2026-05-18T08:00:00.000Z",
      "date": "2026-05-18",
      "time": "09:00",
      "timeZone": "Europe/London",
      "durationMinutes": 105,
      "room": "Sports hall",
      "weight": 50,
      "resultPercent": null,
      "resultLabel": null,
      "sourceTaskId": null,
      "setIds": [],
      "noteIds": [],
      "updatedAt": "2026-02-01T12:00:00.000Z"
    }
  ]
}
```

### Errors

Every error has the body `{ "error": { "code", "message", "details" } }`.

- `400`: Invalid request body or query
- `401`: Missing, invalid, disabled or expired API key
- `402`: `api_allowance_reached`: this month's API and AI app requests on the free plan are used up. `details` has `limit`, `used`, `resetsAt` and `upgradeUrl`. Nothing ran; WorkRoad Plus has no monthly limit.
- `403`: The API key lacks the required scope
- `404`: No endpoint exists at this path.
- `405`: Method not allowed. Use a method from the Allow header.
- `429`: Rate limit exceeded. Wait for Retry-After before retrying. The rate-limit headers are absent when the key's own limiter rejected the request before the per-endpoint bucket check ran.
- `500`: Internal server error

## Get each subject's grade

`GET https://workroad.app/api/v1/exams/grades`

Each subject's weighted average from its exams' results, and what the exams still to come must average to reach the subject's target, as the app's exams page shows them. Exams without a subject count towards none.

- MCP tool: `listExamGrades` on `https://workroad.app/api/mcp`
- Required scopes: tasks:view
- Test mode: `GET https://workroad.app/api/test/v1/exams/grades` checks the request and returns the example response without changing anything.

### Response

`200` OK

- `data`: array of objects, required
  - `subjectId`: string (uuid), required
  - `subjectName`: string, required
  - `targetPercent`: number or null, required. The subject's target average, or null.
  - `average`: number or null, required. The weighted average of the results so far, or null before the first.
  - `weightDone`: number, required. The share of the subject's total weight that has a result, 0 to 1.
  - `graded`: integer, required
  - `pending`: integer, required
  - `needed`: number or null, required. What the exams without a result must average to reach the target. Null with no target or nothing left; above 100 means it is out of reach.

#### Example

```json
{
  "data": [
    {
      "subjectId": "5f0c1d2e-3a4b-4c5d-8e6f-7a8b9c0d1e2f",
      "subjectName": "Biology",
      "targetPercent": 70,
      "average": 64,
      "weightDone": 0.5,
      "graded": 1,
      "pending": 1,
      "needed": 76
    }
  ]
}
```

### Errors

Every error has the body `{ "error": { "code", "message", "details" } }`.

- `400`: Invalid request body or query
- `401`: Missing, invalid, disabled or expired API key
- `402`: `api_allowance_reached`: this month's API and AI app requests on the free plan are used up. `details` has `limit`, `used`, `resetsAt` and `upgradeUrl`. Nothing ran; WorkRoad Plus has no monthly limit.
- `403`: The API key lacks the required scope
- `404`: No endpoint exists at this path.
- `405`: Method not allowed. Use a method from the Allow header.
- `429`: Rate limit exceeded. Wait for Retry-After before retrying. The rate-limit headers are absent when the key's own limiter rejected the request before the per-endpoint bucket check ran.
- `500`: Internal server error

## List tasks that look like exams

`GET https://workroad.app/api/v1/exams/candidates`

Tasks the user wrote down for an exam before tracking it as one: dated, top-level, named or typed like an exam (exam, test, quiz, mock…), due in the last 60 days or later, and not converted yet. Up to 30, soonest first. Offer to convert them with `POST /tasks/{taskId}/exam`.

- MCP tool: `listExamCandidates` on `https://workroad.app/api/mcp`
- Required scopes: tasks:view
- Test mode: `GET https://workroad.app/api/test/v1/exams/candidates` checks the request and returns the example response without changing anything.

### Response

`200` OK

- `data`: array of objects, required
  - `taskId`: string (uuid), required. Convert it with `POST /tasks/{taskId}/exam`.
  - `name`: string, required
  - `subjectId`: string or null, required
  - `date`: string, required. The day it is due (YYYY-MM-DD).
  - `timed`: boolean, required. False for a due day without a time; the exam then starts at 09:00.

#### Example

```json
{
  "data": [
    {
      "taskId": "0e1f2a3b-4c5d-4e6f-8a9b-0c1d2e3f4a5b",
      "name": "Chemistry mock exam",
      "subjectId": "5f0c1d2e-3a4b-4c5d-8e6f-7a8b9c0d1e2f",
      "date": "2026-03-10",
      "timed": false
    }
  ]
}
```

### Errors

Every error has the body `{ "error": { "code", "message", "details" } }`.

- `400`: Invalid request body or query
- `401`: Missing, invalid, disabled or expired API key
- `402`: `api_allowance_reached`: this month's API and AI app requests on the free plan are used up. `details` has `limit`, `used`, `resetsAt` and `upgradeUrl`. Nothing ran; WorkRoad Plus has no monthly limit.
- `403`: The API key lacks the required scope
- `404`: No endpoint exists at this path.
- `405`: Method not allowed. Use a method from the Allow header.
- `429`: Rate limit exceeded. Wait for Retry-After before retrying. The rate-limit headers are absent when the key's own limiter rejected the request before the per-endpoint bucket check ran.
- `500`: Internal server error

## Get an exam

`GET https://workroad.app/api/v1/exams/{examId}`

One exam, piece of coursework or quiz, with the study sets and notes linked to it.

- MCP tool: `getExam` on `https://workroad.app/api/mcp`
- Required scopes: tasks:view
- Test mode: `GET https://workroad.app/api/test/v1/exams/{examId}` checks the request and returns the example response without changing anything.

### Path parameters

- `examId`: string (uuid), required. Exam id, scoped to the key's user.

### Response

`200` OK

- `data`: object, required
  - `id`: string (uuid), required
  - `title`: string, required
  - `kind`: one of `"EXAM"`, `"COURSEWORK"`, `"QUIZ"`, required. `EXAM`, `COURSEWORK` or `QUIZ`.
  - `subjectId`: string or null, required. The subject it is for, or null.
  - `startsAt`: string (date-time), required. When it starts.
  - `date`: string, required. The day it is (YYYY-MM-DD) in `timeZone`.
  - `time`: string, required. The start time (HH:MM) in `timeZone`.
  - `timeZone`: string, required. The time zone `date` and `time` were set in, the user's at the time.
  - `durationMinutes`: integer or null, required
  - `room`: string or null, required
  - `weight`: number, required
  - `resultPercent`: number or null, required. The result, 0 to 100, or null.
  - `resultLabel`: string or null, required
  - `sourceTaskId`: string or null, required. The task it was made from with `POST /tasks/{taskId}/exam`, or null.
  - `setIds`: array of string, required. The linked study sets still live.
  - `noteIds`: array of string, required. The linked notes still live.
  - `updatedAt`: string (date-time), required. Send it back as `expectedUpdatedAt` to edit safely.

#### Example

```json
{
  "data": {
    "id": "6c5b4a39-2817-4f6e-9d5c-4b3a29180f7e",
    "title": "Biology paper 1",
    "kind": "EXAM",
    "subjectId": "5f0c1d2e-3a4b-4c5d-8e6f-7a8b9c0d1e2f",
    "startsAt": "2026-05-18T08:00:00.000Z",
    "date": "2026-05-18",
    "time": "09:00",
    "timeZone": "Europe/London",
    "durationMinutes": 105,
    "room": "Sports hall",
    "weight": 50,
    "resultPercent": null,
    "resultLabel": null,
    "sourceTaskId": null,
    "setIds": [],
    "noteIds": [],
    "updatedAt": "2026-02-01T12:00:00.000Z"
  }
}
```

### Errors

Every error has the body `{ "error": { "code", "message", "details" } }`.

- `400`: Invalid request body or query
- `401`: Missing, invalid, disabled or expired API key
- `402`: `api_allowance_reached`: this month's API and AI app requests on the free plan are used up. `details` has `limit`, `used`, `resetsAt` and `upgradeUrl`. Nothing ran; WorkRoad Plus has no monthly limit.
- `403`: The API key lacks the required scope
- `404`: No exam with that id exists for this key's user.
- `405`: Method not allowed. Use a method from the Allow header.
- `429`: Rate limit exceeded. Wait for Retry-After before retrying. The rate-limit headers are absent when the key's own limiter rejected the request before the per-endpoint bucket check ran.
- `500`: Internal server error

## Create an exam

`POST https://workroad.app/api/v1/exams`

Adds an exam, piece of coursework or quiz on a day and time in the user's time zone. It shows on the calendar and the exams page, and the revision plan works towards it. Record the result later with `PATCH /exams/{examId}`. For an exam the user already wrote down as a task, use `POST /tasks/{taskId}/exam` instead.

- MCP tool: `createExam` on `https://workroad.app/api/mcp`
- Required scopes: tasks:create
- Test mode: `POST https://workroad.app/api/test/v1/exams` checks the request and returns the example response without changing anything.
- Next: link the sets to revise with `updateExam` when the user has them.

### Headers

- `Idempotency-Key`: string, optional, 1-255 visible ASCII characters. Makes the POST safe to retry: a retry with the same key and body replays the first response, and the same key with a different body returns 409 `idempotency_conflict`. Kept for 24 hours. Over MCP it is the `idempotencyKey` argument.

### Request body

JSON.

- `title`: string, required, 1-120 characters. Such as `Biology paper 1`.
- `kind`: one of `"EXAM"`, `"COURSEWORK"`, `"QUIZ"`, default `"EXAM"`. `EXAM` (the default), `COURSEWORK` or `QUIZ`.
- `subjectId`: string (uuid) or null. The user's subject it is for (`GET /subjects`), or null.
- `date`: string (date), required. The day it is (YYYY-MM-DD) in the user's time zone.
- `time`: string, required, matches `^(?:[01]\d|2[0-3]):[0-5]\d$`. The start time (HH:MM, 24-hour) in the user's time zone.
- `durationMinutes`: integer or null, 1 to 1440. How long it lasts, or null.
- `room`: string or null, up to 80 characters. Where it is, or null.
- `weight`: number, 0 to 1000, default `1`. How much it counts towards the subject's average, relative to its other exams. Defaults to 1.
- `resultPercent`: number or null, 0 to 100. The result, 0 to 100, once the user has it. Null before.
- `resultLabel`: string or null, up to 16 characters. The grade as given, such as `A*` or `7`, or null.
- `setIds`: array of string (uuid), up to 20 items. Up to 20 of the user's study sets to revise for it.
- `noteIds`: array of string (uuid), up to 20 items. Up to 20 of the user's notes for it.

### Response

`201` Created

- `data`: object, required
  - `id`: string (uuid), required
  - `title`: string, required
  - `kind`: one of `"EXAM"`, `"COURSEWORK"`, `"QUIZ"`, required. `EXAM`, `COURSEWORK` or `QUIZ`.
  - `subjectId`: string or null, required. The subject it is for, or null.
  - `startsAt`: string (date-time), required. When it starts.
  - `date`: string, required. The day it is (YYYY-MM-DD) in `timeZone`.
  - `time`: string, required. The start time (HH:MM) in `timeZone`.
  - `timeZone`: string, required. The time zone `date` and `time` were set in, the user's at the time.
  - `durationMinutes`: integer or null, required
  - `room`: string or null, required
  - `weight`: number, required
  - `resultPercent`: number or null, required. The result, 0 to 100, or null.
  - `resultLabel`: string or null, required
  - `sourceTaskId`: string or null, required. The task it was made from with `POST /tasks/{taskId}/exam`, or null.
  - `setIds`: array of string, required. The linked study sets still live.
  - `noteIds`: array of string, required. The linked notes still live.
  - `updatedAt`: string (date-time), required. Send it back as `expectedUpdatedAt` to edit safely.

#### Example

```json
{
  "data": {
    "id": "6c5b4a39-2817-4f6e-9d5c-4b3a29180f7e",
    "title": "Biology paper 1",
    "kind": "EXAM",
    "subjectId": "5f0c1d2e-3a4b-4c5d-8e6f-7a8b9c0d1e2f",
    "startsAt": "2026-05-18T08:00:00.000Z",
    "date": "2026-05-18",
    "time": "09:00",
    "timeZone": "Europe/London",
    "durationMinutes": 105,
    "room": "Sports hall",
    "weight": 50,
    "resultPercent": null,
    "resultLabel": null,
    "sourceTaskId": null,
    "setIds": [],
    "noteIds": [],
    "updatedAt": "2026-02-01T12:00:00.000Z"
  }
}
```

### Errors

Every error has the body `{ "error": { "code", "message", "details" } }`.

- `400`: Invalid body, a `subjectId`, set or note that isn't the user's or is in the trash (`details.reason` is `unknown-link`), or a time the clocks skip that day (`time-invalid`).
- `401`: Missing, invalid, disabled or expired API key
- `402`: `api_allowance_reached`: this month's API and AI app requests on the free plan are used up. `details` has `limit`, `used`, `resetsAt` and `upgradeUrl`. Nothing ran; WorkRoad Plus has no monthly limit.
- `403`: The API key lacks the required scope
- `404`: No endpoint exists at this path.
- `405`: Method not allowed. Use a method from the Allow header.
- `409`: The Idempotency-Key was reused with a different request body, or a request with the same key is still in progress.
- `429`: Rate limit exceeded. Wait for Retry-After before retrying. The rate-limit headers are absent when the key's own limiter rejected the request before the per-endpoint bucket check ran.
- `500`: Internal server error

## Update an exam

`PATCH https://workroad.app/api/v1/exams/{examId}`

Changes the fields you send and keeps the rest, such as recording the result once the user has it. `date` and `time` move it together, read in the user's time zone. `setIds` and `noteIds` replace the linked sets and notes.

- MCP tool: `updateExam` on `https://workroad.app/api/mcp`
- Required scopes: tasks:update
- Test mode: `PATCH https://workroad.app/api/test/v1/exams/{examId}` checks the request and returns the example response without changing anything.

### Path parameters

- `examId`: string (uuid), required. Exam id, scoped to the key's user.

### Request body

JSON.

- `title`: string, 1-120 characters. Such as `Biology paper 1`.
- `kind`: one of `"EXAM"`, `"COURSEWORK"`, `"QUIZ"`. `EXAM`, `COURSEWORK` or `QUIZ`.
- `subjectId`: string (uuid) or null. The user's subject it is for (`GET /subjects`), or null.
- `date`: string (date). The day it is (YYYY-MM-DD) in the user's time zone.
- `time`: string, matches `^(?:[01]\d|2[0-3]):[0-5]\d$`. The start time (HH:MM, 24-hour) in the user's time zone.
- `durationMinutes`: integer or null, 1 to 1440. How long it lasts, or null.
- `room`: string or null, up to 80 characters. Where it is, or null.
- `weight`: number, 0 to 1000. How much it counts towards the subject's average, relative to its other exams: 40 and 60 are 40 % and 60 %, two of weight 1 count the same.
- `resultPercent`: number or null, 0 to 100. The result, 0 to 100, once the user has it. Null before.
- `resultLabel`: string or null, up to 16 characters. The grade as given, such as `A*` or `7`, or null.
- `setIds`: array of string (uuid), up to 20 items. Replaces the linked sets. Omit to keep them.
- `noteIds`: array of string (uuid), up to 20 items. Replaces the linked notes. Omit to keep them.
- `expectedUpdatedAt`: string (date-time). The exam's `updatedAt` as you read it. When it changed since, the edit is refused with 409 `stale` instead of overwriting the other change.

### Response

`200` OK

- `data`: object, required
  - `id`: string (uuid), required
  - `title`: string, required
  - `kind`: one of `"EXAM"`, `"COURSEWORK"`, `"QUIZ"`, required. `EXAM`, `COURSEWORK` or `QUIZ`.
  - `subjectId`: string or null, required. The subject it is for, or null.
  - `startsAt`: string (date-time), required. When it starts.
  - `date`: string, required. The day it is (YYYY-MM-DD) in `timeZone`.
  - `time`: string, required. The start time (HH:MM) in `timeZone`.
  - `timeZone`: string, required. The time zone `date` and `time` were set in, the user's at the time.
  - `durationMinutes`: integer or null, required
  - `room`: string or null, required
  - `weight`: number, required
  - `resultPercent`: number or null, required. The result, 0 to 100, or null.
  - `resultLabel`: string or null, required
  - `sourceTaskId`: string or null, required. The task it was made from with `POST /tasks/{taskId}/exam`, or null.
  - `setIds`: array of string, required. The linked study sets still live.
  - `noteIds`: array of string, required. The linked notes still live.
  - `updatedAt`: string (date-time), required. Send it back as `expectedUpdatedAt` to edit safely.

#### Example

```json
{
  "data": {
    "id": "6c5b4a39-2817-4f6e-9d5c-4b3a29180f7e",
    "title": "Biology paper 1",
    "kind": "EXAM",
    "subjectId": "5f0c1d2e-3a4b-4c5d-8e6f-7a8b9c0d1e2f",
    "startsAt": "2026-05-18T08:00:00.000Z",
    "date": "2026-05-18",
    "time": "09:00",
    "timeZone": "Europe/London",
    "durationMinutes": 105,
    "room": "Sports hall",
    "weight": 50,
    "resultPercent": null,
    "resultLabel": null,
    "sourceTaskId": null,
    "setIds": [],
    "noteIds": [],
    "updatedAt": "2026-02-01T12:00:00.000Z"
  }
}
```

### Errors

Every error has the body `{ "error": { "code", "message", "details" } }`.

- `400`: Invalid body, a `subjectId`, set or note that isn't the user's or is in the trash (`details.reason` is `unknown-link`), or a time the clocks skip that day (`time-invalid`).
- `401`: Missing, invalid, disabled or expired API key
- `402`: `api_allowance_reached`: this month's API and AI app requests on the free plan are used up. `details` has `limit`, `used`, `resetsAt` and `upgradeUrl`. Nothing ran; WorkRoad Plus has no monthly limit.
- `403`: The API key lacks the required scope
- `404`: No exam with that id exists for this key's user.
- `405`: Method not allowed. Use a method from the Allow header.
- `409`: The exam changed since `expectedUpdatedAt` (`details.reason` is `stale`). Read it again and retry.
- `429`: Rate limit exceeded. Wait for Retry-After before retrying. The rate-limit headers are absent when the key's own limiter rejected the request before the per-endpoint bucket check ran.
- `500`: Internal server error

## Delete an exam

`DELETE https://workroad.app/api/v1/exams/{examId}`

Deletes the exam for good, with its result and links. The linked sets and notes, and a task it was made from, stay. There is no trash for exams.

- MCP tool: `deleteExam` on `https://workroad.app/api/mcp`
- Required scopes: tasks:delete
- Test mode: `DELETE https://workroad.app/api/test/v1/exams/{examId}` checks the request and returns the example response without changing anything.

### Path parameters

- `examId`: string (uuid), required. Exam id, scoped to the key's user.

### Response

`200` OK

- `data`: object, required
  - `id`: string (uuid), required
  - `deleted`: `true`, required

#### Example

```json
{
  "data": {
    "id": "6c5b4a39-2817-4f6e-9d5c-4b3a29180f7e",
    "deleted": true
  }
}
```

### Errors

Every error has the body `{ "error": { "code", "message", "details" } }`.

- `400`: Invalid request body or query
- `401`: Missing, invalid, disabled or expired API key
- `402`: `api_allowance_reached`: this month's API and AI app requests on the free plan are used up. `details` has `limit`, `used`, `resetsAt` and `upgradeUrl`. Nothing ran; WorkRoad Plus has no monthly limit.
- `403`: The API key lacks the required scope
- `404`: No exam with that id exists for this key's user.
- `405`: Method not allowed. Use a method from the Allow header.
- `429`: Rate limit exceeded. Wait for Retry-After before retrying. The rate-limit headers are absent when the key's own limiter rejected the request before the per-endpoint bucket check ran.
- `500`: Internal server error

## Turn a task into an exam

`POST https://workroad.app/api/v1/tasks/{taskId}/exam`

Makes an exam from a dated task, with its name, subject and due time; a due day without a time starts at 09:00. The task stays as it is and points at the exam. Converting the same task again returns the first exam with `created: false`.

- MCP tool: `convertTaskToExam` on `https://workroad.app/api/mcp`
- Required scopes: tasks:create
- Test mode: `POST https://workroad.app/api/test/v1/tasks/{taskId}/exam` checks the request and returns the example response without changing anything.
- Next: set its time, length and weight with `updateExam` if the user knows them.

### Path parameters

- `taskId`: string (uuid), required. Task id, scoped to the key's user.

### Headers

- `Idempotency-Key`: string, optional, 1-255 visible ASCII characters. Makes the POST safe to retry: a retry with the same key and body replays the first response, and the same key with a different body returns 409 `idempotency_conflict`. Kept for 24 hours. Over MCP it is the `idempotencyKey` argument.

### Response

`201` Created

- `data`: object, required
  - `created`: boolean, required. False when the task had been converted before; `exam` is that one.
  - `exam`: object, required
    - `id`: string (uuid), required
    - `title`: string, required
    - `kind`: one of `"EXAM"`, `"COURSEWORK"`, `"QUIZ"`, required. `EXAM`, `COURSEWORK` or `QUIZ`.
    - `subjectId`: string or null, required. The subject it is for, or null.
    - `startsAt`: string (date-time), required. When it starts.
    - `date`: string, required. The day it is (YYYY-MM-DD) in `timeZone`.
    - `time`: string, required. The start time (HH:MM) in `timeZone`.
    - `timeZone`: string, required. The time zone `date` and `time` were set in, the user's at the time.
    - `durationMinutes`: integer or null, required
    - `room`: string or null, required
    - `weight`: number, required
    - `resultPercent`: number or null, required. The result, 0 to 100, or null.
    - `resultLabel`: string or null, required
    - `sourceTaskId`: string or null, required. The task it was made from with `POST /tasks/{taskId}/exam`, or null.
    - `setIds`: array of string, required. The linked study sets still live.
    - `noteIds`: array of string, required. The linked notes still live.
    - `updatedAt`: string (date-time), required. Send it back as `expectedUpdatedAt` to edit safely.

#### Example

```json
{
  "data": {
    "created": true,
    "exam": {
      "id": "6c5b4a39-2817-4f6e-9d5c-4b3a29180f7e",
      "title": "Biology paper 1",
      "kind": "EXAM",
      "subjectId": "5f0c1d2e-3a4b-4c5d-8e6f-7a8b9c0d1e2f",
      "startsAt": "2026-05-18T08:00:00.000Z",
      "date": "2026-05-18",
      "time": "09:00",
      "timeZone": "Europe/London",
      "durationMinutes": 105,
      "room": "Sports hall",
      "weight": 50,
      "resultPercent": null,
      "resultLabel": null,
      "sourceTaskId": null,
      "setIds": [],
      "noteIds": [],
      "updatedAt": "2026-02-01T12:00:00.000Z"
    }
  }
}
```

### Errors

Every error has the body `{ "error": { "code", "message", "details" } }`.

- `400`: Invalid request body or query
- `401`: Missing, invalid, disabled or expired API key
- `402`: `api_allowance_reached`: this month's API and AI app requests on the free plan are used up. `details` has `limit`, `used`, `resetsAt` and `upgradeUrl`. Nothing ran; WorkRoad Plus has no monthly limit.
- `403`: The API key lacks the required scope
- `404`: No task with that id and a due date exists for this key's user.
- `405`: Method not allowed. Use a method from the Allow header.
- `409`: The Idempotency-Key was reused with a different request body, or a request with the same key is still in progress.
- `429`: Rate limit exceeded. Wait for Retry-After before retrying. The rate-limit headers are absent when the key's own limiter rejected the request before the per-endpoint bucket check ran.
- `500`: Internal server error
