GET
/api/v2/courses
List courses
Courses you can see (admins: all; instructors and authors: their own; organisation managers: published courses available to their company). Search, filter by status or category. Paged.
tool: courses_list
scope: courses:read
Needs any of: courses.view_all, courses.create
| Argument |
In |
Type |
About |
| q |
query |
string, up to 120 characters |
|
| status |
query |
one of: draft, published, archived |
|
| category_id |
query |
integer |
|
| page |
query |
integer ≥ 1 |
Page number, from 1. |
| per_page |
query |
integer 1–100 |
Rows per page (default 25, at most 100). |
GET
/api/v2/courses/{course}
Get a course
One course: details, certificate rules, course rules (lesson_order, exam_access, completion_rule, exam_release, and exam_unlock_mode for its classroom dates), outline (modules, lesson titles and each lesson's requirement: required, optional or after_exam), course page sections, accreditations and enrolment counts. Also the description and each section as HTML, the categories, whether you may change the course (can_edit) and, if so, its edit page and the sections that are hidden from the course page.
tool: courses_get
scope: courses:read
Needs any of: courses.view_all, courses.create
| Argument |
In |
Type |
About |
| course * |
path |
string |
Course id, uuid or slug. |
PATCH
/api/v2/courses/{course}
Change a course's rules
Change how a course runs. lesson_order: free (learners choose the order) or sequential (each required lesson unlocks the next). exam_access: after_content (the exam opens once the required lessons are done) or any_time. completion_rule: content_and_exam (required lessons and the exam pass) or exam_only (the exam pass alone, a test-out). exam_release: automatic (the exam opens by the rules above) or trainer (as well as those rules, a trainer opens it for each learner, on the course page). exam_access, completion_rule and exam_release only for a course whose certificate policy is on_exam_pass. Only what you give changes. Preview first: it shows before and after, and any warnings. Other course settings are changed in the web app.
tool: courses_update
scope: courses:write
confirm first
Needs any of: courses.edit
| Argument |
In |
Type |
About |
| course * |
path |
string |
Course id, uuid or slug. |
| lesson_order |
body |
one of: free, sequential |
|
| exam_access |
body |
one of: after_content, any_time |
|
| completion_rule |
body |
one of: content_and_exam, exam_only |
|
| exam_release |
body |
one of: automatic, trainer |
|
| confirm_token |
body |
string |
Leave out to preview (nothing changes). Send the token from the preview, with the same arguments, to carry it out. Or send it in the X-Confirm-Token header. |
GET
/api/v2/course-categories
List course categories
The workspace's course categories, with their ids and how many courses are in each. Use the ids as category_ids when creating or changing a course.
tool: course_categories_list
scope: courses:read
Needs any of: courses.view_all, courses.create
POST
/api/v2/courses
Create a course
Make a new draft course. type: html (lessons built here, the default), scorm_12, scorm_2004, xapi (a package is uploaded to it afterwards) or video (one video, give video_url). template gives an html course a starter structure of modules and lessons. Any of the detail fields can be given now or later with courses_update_details. The course is always a draft and always free: publish it with courses_set_status; price and selling are set in the web app.
tool: courses_create
scope: content:write
retry-safe
Needs any of: courses.create
| Argument |
In |
Type |
About |
| type |
body |
one of: html, scorm_12, scorm_2004, xapi, video |
|
| video_url |
body |
string, up to 500 characters |
For type video: a YouTube or Vimeo link, or a direct link to an .mp4 file. |
| template |
body |
string, up to 40 characters |
A starter structure: blank (the default), compliance, onboarding, product, soft_skills. |
| title * |
body |
string, up to 255 characters |
The course name (2 to 255 characters). |
| summary |
body |
string, up to 500 characters |
One or two plain sentences for course cards. "" clears it. |
| description |
body |
string, up to 60000 characters |
The course description, as HTML (paragraphs, headings, lists, links, bold and italic; anything else is removed). "" clears it. |
| course_code |
body |
string, up to 40 characters |
The provider's own code for the course. "" clears it. |
| duration_minutes |
body |
integer 0–100000 |
Length in minutes. 0 clears it. |
| duration_display |
body |
string, up to 60 characters |
The length in words, as shown on the course page (for example "2 days"). "" clears it. |
| max_delegates |
body |
integer 0–10000 |
Most people on one date of the course. 0 clears it. |
| delivery_mode |
body |
one of: elearning, in_person, virtual, blended |
|
| website_url |
body |
string, up to 500 characters |
The provider's own web page for this course (https://...). "" clears it. |
| category_ids |
body |
list of integer |
The categories the course is in (ids from course_categories_list). The whole list: [] takes it out of every category. |
| primary_category_id |
body |
integer ≥ 1 |
Which of its categories is shown first. |
| available_from |
body |
string, up to 40 characters |
Learners can start the course from this date and time (ISO 8601). "" removes the limit. |
| available_until |
body |
string, up to 40 characters |
Learners can start the course until this date and time (ISO 8601). "" removes the limit. |
| certificate_policy |
body |
one of: none, on_completion, on_exam_pass |
none: no certificate. on_completion: a certificate when the course is completed. For a certificate on an exam pass use courses_set_exam, which attaches the exam and sets this. |
| certificate_validity_months |
body |
integer 0–600 |
How many months a certificate is valid for. 0: it never expires. |
| certificate_content |
body |
string, up to 2000 characters |
What the course covered, in plain text, for certificates that print it. "" clears it. |
| sections |
body |
list of objects (key, heading, body_html, visible) |
The course page sections, in order. This is the whole list: a section left out is removed, so read them with courses_get first. |
PATCH
/api/v2/courses/{course}/details
Change a course's details
Change what a course says about itself: title, summary, description, course code, duration, maximum delegates, delivery mode, its page on the provider's own website, categories, the dates it is available between, the certificate policy and validity, and the course page sections. Only what you give changes. sections and category_ids are whole lists: read the course with courses_get first. Preview first: it shows before and after for each field. The course rules are changed with courses_update; price, the web address, images and files are changed in the web app.
tool: courses_update_details
scope: content:write
confirm first
Needs any of: courses.edit
| Argument |
In |
Type |
About |
| course * |
path |
string |
Course id, uuid or slug. |
| title |
body |
string, up to 255 characters |
The course name (2 to 255 characters). |
| summary |
body |
string, up to 500 characters |
One or two plain sentences for course cards. "" clears it. |
| description |
body |
string, up to 60000 characters |
The course description, as HTML (paragraphs, headings, lists, links, bold and italic; anything else is removed). "" clears it. |
| course_code |
body |
string, up to 40 characters |
The provider's own code for the course. "" clears it. |
| duration_minutes |
body |
integer 0–100000 |
Length in minutes. 0 clears it. |
| duration_display |
body |
string, up to 60 characters |
The length in words, as shown on the course page (for example "2 days"). "" clears it. |
| max_delegates |
body |
integer 0–10000 |
Most people on one date of the course. 0 clears it. |
| delivery_mode |
body |
one of: elearning, in_person, virtual, blended |
|
| website_url |
body |
string, up to 500 characters |
The provider's own web page for this course (https://...). "" clears it. |
| category_ids |
body |
list of integer |
The categories the course is in (ids from course_categories_list). The whole list: [] takes it out of every category. |
| primary_category_id |
body |
integer ≥ 1 |
Which of its categories is shown first. |
| available_from |
body |
string, up to 40 characters |
Learners can start the course from this date and time (ISO 8601). "" removes the limit. |
| available_until |
body |
string, up to 40 characters |
Learners can start the course until this date and time (ISO 8601). "" removes the limit. |
| certificate_policy |
body |
one of: none, on_completion, on_exam_pass |
none: no certificate. on_completion: a certificate when the course is completed. For a certificate on an exam pass use courses_set_exam, which attaches the exam and sets this. |
| certificate_validity_months |
body |
integer 0–600 |
How many months a certificate is valid for. 0: it never expires. |
| certificate_content |
body |
string, up to 2000 characters |
What the course covered, in plain text, for certificates that print it. "" clears it. |
| sections |
body |
list of objects (key, heading, body_html, visible) |
The course page sections, in order. This is the whole list: a section left out is removed, so read them with courses_get first. |
| confirm_token |
body |
string |
Leave out to preview (nothing changes). Send the token from the preview, with the same arguments, to carry it out. Or send it in the X-Confirm-Token header. |
POST
/api/v2/courses/{course}/status
Publish, unpublish or archive a course
Change a course's status. published: learners who can see the course can find and start it; refused, with the reasons, when the course is not ready (no lessons, no package, a quiz with no questions). draft: taken back out. archived: put away. Preview first: it shows the change and how many people are enrolled.
tool: courses_set_status
scope: content:write
confirm first
Needs any of: courses.publish, courses.delete
| Argument |
In |
Type |
About |
| course * |
path |
string |
Course id, uuid or slug. |
| status * |
body |
one of: draft, published, archived |
|
| confirm_token |
body |
string |
Leave out to preview (nothing changes). Send the token from the preview, with the same arguments, to carry it out. Or send it in the X-Confirm-Token header. |
POST
/api/v2/courses/{course}/duplicate
Copy a course
Make a draft copy of a course: its modules and lessons, rules, sections, categories, skills, prerequisites and package. The copy is called "<title> (Copy)" unless you give a title. Enrolments, results and course dates are not copied.
tool: courses_duplicate
scope: content:write
retry-safe
Needs any of: courses.create
| Argument |
In |
Type |
About |
| course * |
path |
string |
Course id, uuid or slug. |
| title |
body |
string, up to 255 characters |
The copy's name (optional). |
GET
/api/v2/builder/content-guide
What lessons and page blocks take
The lesson types and the blocks of a page lesson, each with its fields, and the rules for text, addresses and ids. Read this before writing lesson content: content that does not match is refused, field by field.
tool: builder_content_guide
scope: content:write
Needs any of: courses.edit
GET
/api/v2/courses/{course}/structure
A course's modules and lessons
The structure of a course you can edit: its modules in order and each module's lessons, with ids, type, requirement, length and version. No lesson content: use builder_lesson_get for one lesson.
tool: builder_structure_get
scope: content:write
Needs any of: courses.edit
| Argument |
In |
Type |
About |
| course * |
path |
string |
Course id, uuid or slug. |
GET
/api/v2/lessons/{lesson}
Get a lesson with its content
One lesson of a course you can edit, with its whole content (which includes the right answers to its questions, so never show it to learners) and its version. Send that version back with builder_lessons_update.
tool: builder_lesson_get
scope: content:write
Needs any of: courses.edit
| Argument |
In |
Type |
About |
| lesson * |
path |
integer ≥ 1 |
Lesson id (from builder_structure_get). |
POST
/api/v2/courses/{course}/modules
Add a module
Add an empty module at the end of a course you can edit.
tool: builder_modules_create
scope: content:write
retry-safe
Needs any of: courses.edit
| Argument |
In |
Type |
About |
| course * |
path |
string |
Course id, uuid or slug. |
| title * |
body |
string, up to 255 characters |
|
PATCH
/api/v2/modules/{module}
Rename a module
Change a module's title.
tool: builder_modules_update
scope: content:write
Needs any of: courses.edit
| Argument |
In |
Type |
About |
| module * |
path |
integer ≥ 1 |
Module id (from builder_structure_get). |
| title * |
body |
string, up to 255 characters |
|
POST
/api/v2/courses/{course}/modules/reorder
Put a course's modules in order
Give every module id of the course once, in the new order.
tool: builder_modules_reorder
scope: content:write
Needs any of: courses.edit
| Argument |
In |
Type |
About |
| course * |
path |
string |
Course id, uuid or slug. |
| module_ids * |
body |
list of integer |
|
DELETE
/api/v2/modules/{module}
Remove a module
Remove a module and its lessons. Preview first: it lists the lessons and says whether they would be deleted for good, or archived (hidden, with learners' progress kept) because the course has learners.
tool: builder_modules_delete
scope: content:write
confirm first
Needs any of: courses.edit
| Argument |
In |
Type |
About |
| module * |
path |
integer ≥ 1 |
Module id (from builder_structure_get). |
| confirm_token |
body |
string |
Leave out to preview (nothing changes). Send the token from the preview, with the same arguments, to carry it out. Or send it in the X-Confirm-Token header. |
POST
/api/v2/modules/{module}/lessons
Add a lesson
Add a lesson, with its content, at the end of a module. type: page, html, video, document, audio, slide, interactive, scenario, quiz, exam. content depends on the type: builder_content_guide lists each type's fields and every page block. requirement: required (the default), optional, or after_exam.
tool: builder_lessons_create
scope: content:write
retry-safe
Needs any of: courses.edit
| Argument |
In |
Type |
About |
| module * |
path |
integer ≥ 1 |
Module id (from builder_structure_get). |
| type * |
body |
one of: page, html, video, document, audio, slide, interactive, scenario, quiz, exam, scorm_sco |
|
| title * |
body |
string, up to 255 characters |
|
| content * |
body |
object |
The lesson's content, in the shape builder_content_guide gives for its type. |
| requirement |
body |
one of: required, optional, after_exam |
|
| duration_minutes |
body |
integer 0–1440 |
|
PATCH
/api/v2/lessons/{lesson}
Change a lesson
Change a lesson's title, content, requirement or length. Only what you give changes, but content is the whole content: read the lesson with builder_lesson_get, change that, and send it back with the version you read. If someone else has saved the lesson since, it is refused and you read it again. Keep the ids of blocks that are already there. Preview first: it shows what would change and what learners would notice.
tool: builder_lessons_update
scope: content:write
confirm first
Needs any of: courses.edit
| Argument |
In |
Type |
About |
| lesson * |
path |
integer ≥ 1 |
|
| version * |
body |
string, up to 40 characters |
The version builder_lesson_get (or builder_structure_get) gave for this lesson. |
| title |
body |
string, up to 255 characters |
|
| content |
body |
object |
The whole content, in the shape builder_content_guide gives for the lesson's type. |
| requirement |
body |
one of: required, optional, after_exam |
|
| duration_minutes |
body |
integer 0–1440 |
0 clears it. |
| confirm_token |
body |
string |
Leave out to preview (nothing changes). Send the token from the preview, with the same arguments, to carry it out. Or send it in the X-Confirm-Token header. |
POST
/api/v2/modules/{module}/lessons/reorder
Put a module's lessons in order
Give every lesson id of the module once, in the new order. A lesson cannot be moved to another module.
tool: builder_lessons_reorder
scope: content:write
Needs any of: courses.edit
| Argument |
In |
Type |
About |
| module * |
path |
integer ≥ 1 |
|
| lesson_ids * |
body |
list of integer |
|
DELETE
/api/v2/lessons/{lesson}
Remove a lesson
Remove a lesson. Preview first: it says whether the lesson would be deleted for good, or archived (hidden, with learners' progress kept) because the course has learners.
tool: builder_lessons_delete
scope: content:write
confirm first
Needs any of: courses.edit
| Argument |
In |
Type |
About |
| lesson * |
path |
integer ≥ 1 |
|
| confirm_token |
body |
string |
Leave out to preview (nothing changes). Send the token from the preview, with the same arguments, to carry it out. Or send it in the X-Confirm-Token header. |
GET
/api/v2/lessons/{lesson}/revisions
A lesson's earlier versions
The saved earlier versions of a lesson (the newest 20): when each was saved and by whom. One is kept before every change to a lesson's title or content.
tool: builder_lesson_revisions_list
scope: content:write
Needs any of: courses.edit
| Argument |
In |
Type |
About |
| lesson * |
path |
integer ≥ 1 |
|
POST
/api/v2/lessons/{lesson}/revisions/{revision}/restore
Put back an earlier version of a lesson
Restore a lesson's title and content from one of its earlier versions (builder_lesson_revisions_list). The lesson as it is now is kept as a new earlier version, so this can be undone. Preview first.
tool: builder_lesson_restore
scope: content:write
confirm first
Needs any of: courses.edit
| Argument |
In |
Type |
About |
| lesson * |
path |
integer ≥ 1 |
|
| revision * |
path |
integer ≥ 1 |
|
| confirm_token |
body |
string |
Leave out to preview (nothing changes). Send the token from the preview, with the same arguments, to carry it out. Or send it in the X-Confirm-Token header. |
GET
/api/v2/exams
List exams
The workspace's exams (an author: their own): status, how many questions and attempts each has, and which courses use it. Filter by status or by words in the title. Paged.
tool: exams_list
scope: content:write
Needs any of: exams.author
| Argument |
In |
Type |
About |
| status |
query |
one of: draft, published, archived |
|
| q |
query |
string, up to 120 characters |
|
| page |
query |
integer ≥ 1 |
Page number, from 1. |
| per_page |
query |
integer 1–100 |
Rows per page (default 25, at most 100). |
GET
/api/v2/exams/{exam}
Get an exam
One exam: its settings, its structure (sections, questions with their right answers, grade bands) and the structure's version. Never show the answers to learners. Send the version back with exams_structure_set.
tool: exams_get
scope: content:write
Needs any of: exams.author
| Argument |
In |
Type |
About |
| exam * |
path |
integer ≥ 1 |
|
GET
/api/v2/exam-question-types
What exam questions take
The question types that can be written here and what each one's body holds, with an example; and the types that can only be kept as they are. Read this before writing questions for an exam or the bank.
tool: exams_question_types
scope: content:write
Needs any of: exams.author
POST
/api/v2/exams
Create an exam
Make a new draft exam with a "Pass 70%" grade band. Give it questions with exams_structure_set, publish it with exams_set_status, and attach it to a course with courses_set_exam.
tool: exams_create
scope: content:write
retry-safe
Needs any of: exams.author
| Argument |
In |
Type |
About |
| title * |
body |
string, up to 255 characters |
|
| description |
body |
string, up to 5000 characters |
Plain text shown before the exam starts. "" clears it. |
| time_limit_minutes |
body |
integer 0–600 |
0: no time limit. |
| max_attempts |
body |
integer 0–50 |
0: no limit. |
| cooldown_minutes_between_attempts |
body |
integer 0–10080 |
|
| randomise_questions |
body |
boolean |
|
| randomise_options |
body |
boolean |
|
| negative_marking |
body |
boolean |
|
| open_book |
body |
boolean |
|
| show_correct_answers |
body |
boolean |
|
| allow_review |
body |
boolean |
|
| show_results_mode |
body |
one of: immediate, at_end, never |
|
| questions_per_page |
body |
integer 0–50 |
0: every question on one page. |
| navigation |
body |
one of: free, sequential |
|
| grading_method |
body |
one of: highest, average, first, last |
Which attempt counts. |
PATCH
/api/v2/exams/{exam}
Change an exam's settings
Change an exam's title, description, time limit, attempts allowed, wait between attempts, shuffling, negative marking, open book, what the learner sees afterwards, questions per page, navigation and which attempt counts. Only what you give changes. Preview first. The questions are changed with exams_structure_set.
tool: exams_update
scope: content:write
confirm first
Needs any of: exams.author
| Argument |
In |
Type |
About |
| exam * |
path |
integer ≥ 1 |
|
| title |
body |
string, up to 255 characters |
|
| description |
body |
string, up to 5000 characters |
Plain text shown before the exam starts. "" clears it. |
| time_limit_minutes |
body |
integer 0–600 |
0: no time limit. |
| max_attempts |
body |
integer 0–50 |
0: no limit. |
| cooldown_minutes_between_attempts |
body |
integer 0–10080 |
|
| randomise_questions |
body |
boolean |
|
| randomise_options |
body |
boolean |
|
| negative_marking |
body |
boolean |
|
| open_book |
body |
boolean |
|
| show_correct_answers |
body |
boolean |
|
| allow_review |
body |
boolean |
|
| show_results_mode |
body |
one of: immediate, at_end, never |
|
| questions_per_page |
body |
integer 0–50 |
0: every question on one page. |
| navigation |
body |
one of: free, sequential |
|
| grading_method |
body |
one of: highest, average, first, last |
Which attempt counts. |
| confirm_token |
body |
string |
Leave out to preview (nothing changes). Send the token from the preview, with the same arguments, to carry it out. Or send it in the X-Confirm-Token header. |
PUT
/api/v2/exams/{exam}/structure
Set an exam's questions
Replace an exam's sections, questions and grade bands as a whole: read the exam with exams_get, change its structure, and send all three lists back with the version you read (a list left out is emptied). If someone has saved the exam since, it is refused and you read it again. exams_question_types lists what each question type takes. Preview first: it shows the counts before and after and what happens to attempts already made (they keep the questions they were asked).
tool: exams_structure_set
scope: content:write
confirm first
Needs any of: exams.author
| Argument |
In |
Type |
About |
| exam * |
path |
integer ≥ 1 |
|
| version * |
body |
string, up to 40 characters |
The version exams_get gave. |
| sections |
body |
list of objects () |
Each {title, description, weight, pass_threshold_percent, pool_size, questions}. A section with bank_category_id draws its questions from that bank category instead. |
| ungrouped_questions |
body |
list of objects () |
Questions outside any section. |
| grade_bands * |
body |
list of objects () |
Each {label, min_percent}: at least one, so that a learner can pass. certificate_template_id and badge_id are optional. |
| confirm_token |
body |
string |
Leave out to preview (nothing changes). Send the token from the preview, with the same arguments, to carry it out. Or send it in the X-Confirm-Token header. |
POST
/api/v2/exams/{exam}/status
Publish or archive an exam
published: learners on courses that use the exam can sit it; needs at least one question and one grade band (it also brings an archived exam back). archived: nobody can start it. Preview first: it lists the courses that use the exam.
tool: exams_set_status
scope: content:write
confirm first
Needs any of: exams.author
| Argument |
In |
Type |
About |
| exam * |
path |
integer ≥ 1 |
|
| status * |
body |
one of: published, archived |
|
| confirm_token |
body |
string |
Leave out to preview (nothing changes). Send the token from the preview, with the same arguments, to carry it out. Or send it in the X-Confirm-Token header. |
POST
/api/v2/exams/{exam}/duplicate
Copy an exam
Make a draft copy of an exam, called "<title> (copy)": every setting, section, question and grade band. Attempts are not copied.
tool: exams_duplicate
scope: content:write
retry-safe
Needs any of: exams.author
| Argument |
In |
Type |
About |
| exam * |
path |
integer ≥ 1 |
|
POST
/api/v2/courses/{course}/exam
Attach an exam to a course
Attach an exam to a course you can edit: the course then issues its certificate when the exam is passed. exam 0 takes the exam off and puts the certificate back to "on completion". Preview first. When the exam opens and what completes the course are then set with courses_update.
tool: courses_set_exam
scope: content:write
confirm first
Needs any of: courses.edit
| Argument |
In |
Type |
About |
| course * |
path |
string |
Course id, uuid or slug. |
| exam * |
body |
integer ≥ 0 |
Exam id (from exams_list), or 0 for none. |
| confirm_token |
body |
string |
Leave out to preview (nothing changes). Send the token from the preview, with the same arguments, to carry it out. Or send it in the X-Confirm-Token header. |
GET
/api/v2/question-categories
List question bank categories
The categories of the question bank, with ids and parents.
tool: question_categories_list
scope: content:write
Needs any of: exams.author
POST
/api/v2/question-categories
Add a question bank category
Add a category to the question bank, at the top or under another (parent_id).
tool: question_categories_create
scope: content:write
retry-safe
Needs any of: exams.author
| Argument |
In |
Type |
About |
| name * |
body |
string, up to 150 characters |
|
| parent_id |
body |
integer ≥ 1 |
|
GET
/api/v2/question-bank
List question bank questions
The reusable questions of the bank (an author: their own), newest first, without their answers: type, the start of the prompt, points, difficulty, category and tags. Filter by category, type or words in the prompt. Paged.
tool: question_bank_list
scope: content:write
Needs any of: exams.author
| Argument |
In |
Type |
About |
| category_id |
query |
integer ≥ 1 |
|
| type |
query |
string, up to 40 characters |
|
| q |
query |
string, up to 120 characters |
|
| page |
query |
integer ≥ 1 |
Page number, from 1. |
| per_page |
query |
integer 1–100 |
Rows per page (default 25, at most 100). |
GET
/api/v2/question-bank/{question}
Get a question bank question
One bank question with its body (the right answer included) and the exams that hold a copy of it.
tool: question_bank_get
scope: content:write
Needs any of: exams.author
| Argument |
In |
Type |
About |
| question * |
path |
integer ≥ 1 |
|
POST
/api/v2/question-bank
Add a question to the bank
Add a reusable question to the bank. exams_question_types lists the types and what each one's body holds. To use it in an exam, give {question_bank_id} in exams_structure_set.
tool: question_bank_create
scope: content:write
retry-safe
Needs any of: exams.author
| Argument |
In |
Type |
About |
| type * |
body |
string, up to 40 characters |
|
| prompt * |
body |
string, up to 20000 characters |
|
| body * |
body |
object |
|
| default_points |
body |
number |
|
| difficulty |
body |
one of: easy, medium, hard |
|
| category_id |
body |
integer ≥ 0 |
A category id (question_categories_list); 0 for none. |
| tags |
body |
list of string |
|
PATCH
/api/v2/question-bank/{question}
Change a question in the bank
Change a bank question's prompt, body, points, difficulty, category or tags. Only what you give changes; its type cannot change. Exams that already hold a copy keep their copy as it was.
tool: question_bank_update
scope: content:write
Needs any of: exams.author
| Argument |
In |
Type |
About |
| question * |
path |
integer ≥ 1 |
|
| prompt |
body |
string, up to 20000 characters |
|
| body |
body |
object |
|
| default_points |
body |
number |
|
| difficulty |
body |
one of: easy, medium, hard |
|
| category_id |
body |
integer ≥ 0 |
|
| tags |
body |
list of string |
|
POST
/api/v2/uploads/links
Get a link for the person to upload a file
You cannot send files. This gives a link the person opens in their browser, signed in to this workspace, to upload one file for one purpose. course_package: a SCORM, xAPI or cmi5 .zip for a package course (give course; version_policy keep or restart when the course already has a package). lesson_package: a SCORM .zip for one lesson (give lesson for a package lesson that is there, or module and title to make a new one). course_thumbnail: the course's picture (give course). media: an image, audio, PDF or MP4 for the media library, to use in lessons by its address. The link works for 30 minutes and only for that person. Then call uploads_status_get.
tool: uploads_link_create
scope: content:write
Needs any of: courses.edit, courses.create, scorm.upload
| Argument |
In |
Type |
About |
| purpose * |
body |
one of: course_package, lesson_package, course_thumbnail, media |
|
| course |
body |
string |
Course id, uuid or slug (course_package, course_thumbnail). |
| lesson |
body |
integer ≥ 1 |
A package lesson's id (lesson_package). |
| module |
body |
integer ≥ 1 |
With title: make a new package lesson at the end of this module (lesson_package). |
| title |
body |
string, up to 255 characters |
The new package lesson's title. |
| version_policy |
body |
one of: keep, restart |
For a new version of a course package: keep (the default) leaves people part-way through on the version they started; restart moves them to the new one from the beginning. |
GET
/api/v2/uploads/links/{upload}
Has the file arrived?
Where an upload link stands: waiting (nothing has arrived yet), done (with what came of it: a media file's address to use in lessons, a package's format and version, the course picture's address) or expired. Only for links you made.
tool: uploads_status_get
scope: content:write
Needs any of: courses.edit, courses.create, scorm.upload
| Argument |
In |
Type |
About |
| upload * |
path |
string, up to 36 characters |
The upload id uploads_link_create gave. |