Exams
Track exams, coursework and quizzes, record their results and read each subject's grade.
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
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.
Required scopes: tasks:view
AuthorizationBearer <token>OK
application/json- response
data*array<>curl -X GET 'https://workroad.app/api/v1/exams' \ -H 'Authorization: Bearer $WORKROAD_API_KEY'{ "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" } ]}Get each subject's grade
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.
Required scopes: tasks:view
AuthorizationBearer <token>OK
application/json- response
data*array<>curl -X GET 'https://workroad.app/api/v1/exams/grades' \ -H 'Authorization: Bearer $WORKROAD_API_KEY'{ "data": [ { "subjectId": "5f0c1d2e-3a4b-4c5d-8e6f-7a8b9c0d1e2f", "subjectName": "Biology", "targetPercent": 70, "average": 64, "weightDone": 0.5, "graded": 1, "pending": 1, "needed": 76 } ]}List tasks that look like exams
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.
Required scopes: tasks:view
AuthorizationBearer <token>OK
application/json- response
data*array<>curl -X GET 'https://workroad.app/api/v1/exams/candidates' \ -H 'Authorization: Bearer $WORKROAD_API_KEY'{ "data": [ { "taskId": "0e1f2a3b-4c5d-4e6f-8a9b-0c1d2e3f4a5b", "name": "Chemistry mock exam", "subjectId": "5f0c1d2e-3a4b-4c5d-8e6f-7a8b9c0d1e2f", "date": "2026-03-10", "timed": false } ]}Get an exam
One exam, piece of coursework or quiz, with the study sets and notes linked to it.
Required scopes: tasks:view
AuthorizationBearer <token>examId*stringExam id, scoped to the key's user.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidOK
application/json- response
data*curl -X GET 'https://workroad.app/api/v1/exams/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Authorization: Bearer $WORKROAD_API_KEY'{ "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" }}Create an exam
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.
Required scopes: tasks:create
AuthorizationBearer <token>Idempotency-Key?stringA client-generated key (1 to 255 visible ASCII characters) that makes this POST safe to retry. A retry with the same key and body replays the original response; the same key with a different body returns 409 idempotency_conflict. Stored for 24 hours.
^[\x21-\x7E]{1,255}$1 <= length <= 255application/json- body
title*stringSuch as Biology paper 1.
1 <= length <= 120kind?stringEXAM (the default), COURSEWORK or QUIZ.
"EXAM""EXAM""COURSEWORK""QUIZ"subjectId?|The user's subject it is for (GET /subjects), or null.
date*stringThe day it is (YYYY-MM-DD) in the user's time zone.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$datetime*stringThe start time (HH:MM, 24-hour) in the user's time zone.
^(?:[01]\d|2[0-3]):[0-5]\d$durationMinutes?|How long it lasts, or null.
room?|Where it is, or null.
weight?numberHow much it counts towards the subject's average, relative to its other exams. Defaults to 1.
0 <= value <= 10001resultPercent?|The result, 0 to 100, once the user has it. Null before.
resultLabel?|The grade as given, such as A* or 7, or null.
setIds?array<>Up to 20 of the user's study sets to revise for it.
items <= 20noteIds?array<>Up to 20 of the user's notes for it.
items <= 20Created
application/json- response
data*curl -X POST 'https://workroad.app/api/v1/exams' \ -H 'Authorization: Bearer $WORKROAD_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "title": "string", "date": "2019-08-24", "time": "string"}'{ "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" }}Update an exam
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.
Required scopes: tasks:update
AuthorizationBearer <token>examId*stringExam id, scoped to the key's user.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidapplication/json- body
Send only the fields to change. null clears subjectId, durationMinutes, room, resultPercent or resultLabel.
title?stringSuch as Biology paper 1.
1 <= length <= 120kind?stringEXAM, COURSEWORK or QUIZ.
"EXAM""COURSEWORK""QUIZ"subjectId?|The user's subject it is for (GET /subjects), or null.
date?stringThe day it is (YYYY-MM-DD) in the user's time zone.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$datetime?stringThe start time (HH:MM, 24-hour) in the user's time zone.
^(?:[01]\d|2[0-3]):[0-5]\d$durationMinutes?|How long it lasts, or null.
room?|Where it is, or null.
weight?numberHow 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.
0 <= value <= 1000resultPercent?|The result, 0 to 100, once the user has it. Null before.
resultLabel?|The grade as given, such as A* or 7, or null.
setIds?array<>Replaces the linked sets. Omit to keep them.
items <= 20noteIds?array<>Replaces the linked notes. Omit to keep them.
items <= 20expectedUpdatedAt?stringThe exam's updatedAt as you read it. When it changed since, the edit is refused with 409 stale instead of overwriting the other change.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$date-timeOK
application/json- response
data*curl -X PATCH 'https://workroad.app/api/v1/exams/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Authorization: Bearer $WORKROAD_API_KEY' \ -H 'Content-Type: application/json' \ -d '{}'{ "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" }}Delete an exam
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.
Required scopes: tasks:delete
AuthorizationBearer <token>examId*stringExam id, scoped to the key's user.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidOK
application/json- response
data*curl -X DELETE 'https://workroad.app/api/v1/exams/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Authorization: Bearer $WORKROAD_API_KEY'{ "data": { "id": "6c5b4a39-2817-4f6e-9d5c-4b3a29180f7e", "deleted": true }}Turn a task into an 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.
Required scopes: tasks:create
AuthorizationBearer <token>taskId*stringTask id, scoped to the key's user.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidIdempotency-Key?stringA client-generated key (1 to 255 visible ASCII characters) that makes this POST safe to retry. A retry with the same key and body replays the original response; the same key with a different body returns 409 idempotency_conflict. Stored for 24 hours.
^[\x21-\x7E]{1,255}$1 <= length <= 255Created
application/json- response
data*curl -X POST 'https://workroad.app/api/v1/tasks/497f6eca-6276-4993-bfeb-53cbbbba6f08/exam' \ -H 'Authorization: Bearer $WORKROAD_API_KEY'{ "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" } }}