openapi: 3.1.0 info: title: Dexwize Academy Service version: 1.0.0 description: > Partner training and certification (E37): learning paths, lessons (video, interactive, documents, SCORM 1.2/2004, xAPI and hands-on labs), randomized timed exams, certificates with a public verification page, and the vendor portal's authoring, review and publish workflow. Learners hold academy permissions (partner staff and admins, and customer admins when their plan includes the Academy); authoring needs a platform session. Three paths are public by design: certificate verification (name, level, status and dates only), the HMAC-signed package player paths, and the xAPI statements endpoint, which accepts only a launch token. Catalog text may contain the {{product}} placeholder, which clients replace with the active brand's product name. servers: - url: https://api.dexwize.example security: - bearer: [] paths: /v1/academy/paths: get: operationId: listAcademyPaths parameters: [{ $ref: '#/components/parameters/Locale' }] responses: '200': description: Learning paths visible to the caller, with their enrolment and progress content: application/json: schema: { type: array, items: { $ref: '#/components/schemas/PathView' } } '403': { description: No Academy permission } /v1/academy/paths/{id}/enrol: post: operationId: enrolInPath parameters: [{ $ref: '#/components/parameters/Id' }] requestBody: required: true content: application/json: schema: type: object required: [displayName] properties: { displayName: { type: string, maxLength: 200 } } responses: '200': description: The enrolment (an existing one is returned again) content: application/json: schema: { $ref: '#/components/schemas/Enrolment' } '404': { description: Path not found or not visible } /v1/academy/enrolments/{id}/courses/{courseId}/lessons/{lessonId}/complete: post: operationId: completeLesson description: Self-reported completion for videos, documents and interactive lessons only. parameters: [{ $ref: '#/components/parameters/Id' }, { $ref: '#/components/parameters/CourseId' }, { $ref: '#/components/parameters/LessonId' }] responses: '200': description: The updated enrolment content: application/json: schema: { $ref: '#/components/schemas/Enrolment' } '400': { description: 'SCORM, xAPI and lab lessons complete through their own tracking' } '404': { description: Not found } /v1/academy/enrolments/{id}/courses/{courseId}/lessons/{lessonId}/scorm: post: operationId: reportScormRuntime description: > Persists a batch of SCORM run-time values from the API shim (LMSCommit/Commit, or LMSFinish/Terminate with terminate), in the order they were set. Values are validated against the data model again; refused ones are listed with their SCORM error code and not stored. Session time is added to the attempt's total time. parameters: [{ $ref: '#/components/parameters/Id' }, { $ref: '#/components/parameters/CourseId' }, { $ref: '#/components/parameters/LessonId' }] requestBody: required: true content: application/json: schema: type: object required: [cmi] properties: cmi: { type: object, additionalProperties: { type: string, maxLength: 64000 }, maxProperties: 2000 } session: { type: [integer, 'null'], description: The SCO session from the launch; a replaced session is refused (409) } terminate: { type: [boolean, 'null'], description: The SCO terminated (LMSFinish or Terminate) } responses: '200': description: Whether the lesson is now complete, and the values refused content: application/json: schema: { $ref: '#/components/schemas/ScormCommitResult' } '400': { description: 'Not a SCORM lesson, or too much data' } '409': { description: The SCO session was replaced by a newer launch } /v1/academy/enrolments/{id}/courses/{courseId}/lessons/{lessonId}/scorm/launch: post: operationId: launchScormLesson description: > Starts a SCORM 1.2 lesson's SCO session: resumes the learner's attempt with its stored run-time data (cmi.core.entry "resume" after a suspend, otherwise ""), or starts a new attempt when the last session finished it. SCORM 2004 lessons launch through scorm/navigate. parameters: [{ $ref: '#/components/parameters/Id' }, { $ref: '#/components/parameters/CourseId' }, { $ref: '#/components/parameters/LessonId' }] responses: '200': description: The signed SCO address and the run-time data its API starts with content: application/json: schema: { $ref: '#/components/schemas/ScormLaunch' } '400': { description: Not a SCORM 1.2 lesson } '404': { description: Not found } /v1/academy/enrolments/{id}/courses/{courseId}/lessons/{lessonId}/xapi-launch: post: operationId: launchXapiLesson parameters: [{ $ref: '#/components/parameters/Id' }, { $ref: '#/components/parameters/CourseId' }, { $ref: '#/components/parameters/LessonId' }] responses: '200': description: Launch parameters with a four-hour launch token bound to this learner and lesson content: application/json: schema: { $ref: '#/components/schemas/XapiLaunch' } /v1/academy/packages/{id}/launch: get: operationId: getPackageLaunch parameters: [{ $ref: '#/components/parameters/Id' }] responses: '200': description: A signed, four-hour URL for the sandboxed player content: application/json: schema: type: object required: [id, standard, url] properties: { id: { type: string, format: uuid }, standard: { type: string }, url: { type: string } } /v1/academy/certifications/{id}/exam: post: operationId: startExam description: > Checks prerequisites, required courses and labs and the retake rules, then draws questions at random. The deadline is enforced on submit. Every attempt is audited. parameters: [{ $ref: '#/components/parameters/Id' }, { $ref: '#/components/parameters/Locale' }] requestBody: content: application/json: schema: { type: object, properties: { proctoringSession: { type: [string, 'null'] } } } responses: '200': description: The attempt and its questions (no answers) content: application/json: schema: { $ref: '#/components/schemas/ExamStart' } '400': { description: 'Not eligible, no attempts left, or waiting to retake' } /v1/academy/attempts/{id}/submit: post: operationId: submitExam parameters: [{ $ref: '#/components/parameters/Id' }] requestBody: required: true content: application/json: schema: type: object required: [answers, learnerName] properties: answers: { type: object, additionalProperties: { type: array, items: { type: integer } } } learnerName: { type: string, maxLength: 200 } responses: '200': description: Score, pass or fail, and the certificate id when passed content: application/json: schema: { $ref: '#/components/schemas/ExamResult' } /v1/academy/certificates: get: operationId: listMyCertificates responses: '200': description: The caller's certificates content: application/json: schema: { type: array, items: { $ref: '#/components/schemas/Certificate' } } /v1/academy/certificates/{certificateId}/pdf: get: operationId: downloadCertificate parameters: [{ $ref: '#/components/parameters/CertificateId' }] responses: '200': description: The certificate as PDF (holder, or an admin of the same tenant) content: application/pdf: schema: { type: string, format: binary } '404': { description: Not found } /v1/academy/labs/{labId}/provision: post: operationId: provisionLab description: Creates a sandbox tenant with a simulated fleet (under five minutes); it expires after seven days. parameters: [{ name: labId, in: path, required: true, schema: { type: string } }, { $ref: '#/components/parameters/Locale' }] responses: '200': description: The lab, its tasks and the device console content: application/json: schema: { $ref: '#/components/schemas/Lab' } /v1/academy/lab-instances/{id}: get: operationId: getLab parameters: [{ $ref: '#/components/parameters/Id' }, { $ref: '#/components/parameters/Locale' }] responses: '200': description: The caller's lab content: application/json: schema: { $ref: '#/components/schemas/Lab' } /v1/academy/lab-instances/{id}/tasks/{taskId}: post: operationId: answerLabTask parameters: [{ $ref: '#/components/parameters/Id' }, { name: taskId, in: path, required: true, schema: { type: string } }] requestBody: required: true content: application/json: schema: { type: object, required: [answer], properties: { answer: { type: array, items: { type: string } } } } responses: '200': description: The lab with the graded task content: application/json: schema: { $ref: '#/components/schemas/Lab' } /v1/academy/assignments: post: operationId: assignPath requestBody: required: true content: application/json: schema: type: object required: [pathId, learner, learnerName] properties: pathId: { type: string, format: uuid } learner: { type: string, maxLength: 256 } learnerName: { type: string, maxLength: 200 } dueAt: { type: [string, 'null'], format: date-time } responses: '201': description: Assigned content: application/json: schema: { $ref: '#/components/schemas/Enrolment' } /v1/academy/progress: get: operationId: listLearnerProgress parameters: [{ $ref: '#/components/parameters/Locale' }] responses: '200': description: Progress and completion of every learner in the caller's tenant content: application/json: schema: { type: array, items: { $ref: '#/components/schemas/LearnerProgress' } } /v1/academy/authoring/{kind}: get: operationId: listCatalogContent parameters: [{ $ref: '#/components/parameters/Kind' }] responses: '200': description: The latest version of every item of the kind content: application/json: schema: { type: array, items: { $ref: '#/components/schemas/CatalogEntry' } } /v1/academy/authoring/{kind}/{key}: put: operationId: draftCatalogContent description: Creates or edits a draft. Editing published content drafts its next version. parameters: [{ $ref: '#/components/parameters/Kind' }, { $ref: '#/components/parameters/Key' }] requestBody: required: true content: application/json: schema: { type: object, description: The course, path, certification, question bank or lab } responses: '200': description: The draft version content: application/json: schema: { $ref: '#/components/schemas/CatalogEntry' } /v1/academy/authoring/{kind}/{key}/versions: get: operationId: listCatalogVersions parameters: [{ $ref: '#/components/parameters/Kind' }, { $ref: '#/components/parameters/Key' }] responses: '200': description: Every version, oldest first content: application/json: schema: { type: array, items: { $ref: '#/components/schemas/CatalogEntry' } } /v1/academy/authoring/{kind}/{key}/submit: post: operationId: submitCatalogContent parameters: [{ $ref: '#/components/parameters/Kind' }, { $ref: '#/components/parameters/Key' }] responses: '200': description: In review content: application/json: schema: { $ref: '#/components/schemas/CatalogEntry' } /v1/academy/authoring/{kind}/{key}/publish: post: operationId: publishCatalogContent description: The reviewer must not be the author or the submitter; referenced content must already be published. parameters: [{ $ref: '#/components/parameters/Kind' }, { $ref: '#/components/parameters/Key' }] responses: '200': description: Published content: application/json: schema: { $ref: '#/components/schemas/CatalogEntry' } /v1/academy/authoring/{kind}/{key}/return: post: operationId: returnCatalogContent parameters: [{ $ref: '#/components/parameters/Kind' }, { $ref: '#/components/parameters/Key' }] requestBody: required: true content: application/json: schema: { type: object, required: [note], properties: { note: { type: string, maxLength: 2000 } } } responses: '200': description: Back to draft with the reviewer's note content: application/json: schema: { $ref: '#/components/schemas/CatalogEntry' } /v1/academy/packages: get: operationId: listPackages responses: '200': description: Imported SCORM and xAPI packages content: application/json: schema: { type: array, items: { $ref: '#/components/schemas/ContentPackage' } } post: operationId: importPackage requestBody: required: true content: application/zip: schema: { type: string, format: binary } responses: '201': description: Imported content: application/json: schema: { $ref: '#/components/schemas/ContentPackage' } '400': { description: 'Not a valid SCORM 1.2, SCORM 2004 or xAPI package' } /v1/academy/customer-access/{tenantId}: put: operationId: setCustomerAcademyAccess parameters: [{ name: tenantId, in: path, required: true, schema: { type: string, format: uuid } }] requestBody: required: true content: application/json: schema: { type: object, required: [enabled], properties: { enabled: { type: boolean } } } responses: '204': { description: Saved } /v1/academy/verify/{certificateId}: get: operationId: verifyCertificate security: [] parameters: [{ $ref: '#/components/parameters/CertificateId' }] responses: '200': description: Name, certification, level, status and dates, and the brand the certificate was issued under content: application/json: schema: { $ref: '#/components/schemas/CertificateVerification' } '404': { description: Unknown certificate } /v1/academy/enrolments/{id}/courses/{courseId}/lessons/{lessonId}/scorm/navigate: post: operationId: navigateScorm description: > SCORM 2004 sequencing and navigation (ADR-0051 amendment). Applies the departing SCO's run-time data, then the navigation request: launch (resume a suspended session, re-deliver an interrupted one, or start), start, resumeAll, continue, previous, choice (with target), exit, exitAll, suspendAll, or an adl.nav.request value. A refused request answers 200 with an error and the current state. parameters: [{ $ref: '#/components/parameters/Id' }, { $ref: '#/components/parameters/CourseId' }, { $ref: '#/components/parameters/LessonId' }] requestBody: required: true content: application/json: schema: type: object required: [request] properties: request: { type: string, maxLength: 300 } target: { type: [string, 'null'], maxLength: 255 } cmi: { type: [object, 'null'], additionalProperties: { type: string, maxLength: 64000 }, maxProperties: 2000, description: The departing SCO's values not yet committed (persisted as its Terminate) } session: { type: [integer, 'null'], description: The departing SCO's session } responses: '200': description: What to deliver next and what the learner may do content: application/json: schema: { $ref: '#/components/schemas/ScormNavigation' } '400': { description: 'Not a SCORM 2004 lesson, or an unsupported navigation request' } '404': { description: Not found } /v1/academy/learning-records/statements: get: operationId: listLearningRecordStatements description: > xAPI statements for a signed-in user, with the LRS query parameters: the learner's own, or the whole tenant's for an admin who assigns training. parameters: - { name: statementId, in: query, schema: { type: string, format: uuid } } - { name: voidedStatementId, in: query, schema: { type: string, format: uuid } } - { name: agent, in: query, schema: { type: string } } - { name: verb, in: query, schema: { type: string } } - { name: activity, in: query, schema: { type: string } } - { name: registration, in: query, schema: { type: string, format: uuid } } - { name: related_activities, in: query, schema: { type: boolean } } - { name: related_agents, in: query, schema: { type: boolean } } - { name: since, in: query, schema: { type: string, format: date-time } } - { name: until, in: query, schema: { type: string, format: date-time } } - { name: limit, in: query, schema: { type: integer, minimum: 0, maximum: 500 } } - { name: format, in: query, schema: { type: string, enum: [exact, ids, canonical] } } - { name: ascending, in: query, schema: { type: boolean } } - { name: cursor, in: query, schema: { type: string } } responses: '200': description: One statement (by id) or a page of statements content: application/json: schema: { oneOf: [{ $ref: '#/components/schemas/StatementResult' }, { type: object }] } '400': { description: Invalid parameters } '404': { description: Unknown statement } /v1/academy/xapi/activities/state: parameters: - { name: X-Experience-API-Version, in: header, required: true, schema: { type: string } } - { name: activityId, in: query, required: true, schema: { type: string }, description: The launched activity or one beneath it } - { name: agent, in: query, required: true, schema: { type: string } } - { name: registration, in: query, schema: { type: string, format: uuid } } - { name: stateId, in: query, schema: { type: string, maxLength: 255 } } get: operationId: getXapiState security: [{ launch: [] }] parameters: [{ name: since, in: query, schema: { type: string, format: date-time } }] responses: '200': { description: 'The document (with stateId, and its ETag), or the state ids (without)', content: { '*/*': { schema: { type: string, format: binary } } } } '401': { description: Missing or invalid launch token } '403': { description: Outside the launched activity } '404': { description: No such document } put: operationId: putXapiState security: [{ launch: [] }] parameters: [{ $ref: '#/components/parameters/IfMatch' }, { $ref: '#/components/parameters/IfNoneMatch' }] requestBody: { required: true, content: { '*/*': { schema: { type: string, format: binary, maxLength: 1048576 } } } } responses: '204': { description: Stored } '412': { description: If-Match or If-None-Match does not hold } post: operationId: mergeXapiState description: Merges a JSON object into the stored JSON object (or stores it when there is none). security: [{ launch: [] }] parameters: [{ $ref: '#/components/parameters/IfMatch' }, { $ref: '#/components/parameters/IfNoneMatch' }] requestBody: { required: true, content: { application/json: { schema: { type: object } } } } responses: '204': { description: Stored } '400': { description: 'Not a JSON object, or the stored document is not one' } '412': { description: If-Match or If-None-Match does not hold } delete: operationId: deleteXapiState description: Deletes one document, or every document of the activity and registration without stateId. security: [{ launch: [] }] parameters: [{ $ref: '#/components/parameters/IfMatch' }] responses: '204': { description: Deleted } '412': { description: If-Match does not hold } /v1/academy/xapi/activities/profile: parameters: - { name: X-Experience-API-Version, in: header, required: true, schema: { type: string } } - { name: activityId, in: query, required: true, schema: { type: string }, description: The launched activity or one beneath it } - { name: profileId, in: query, schema: { type: string, maxLength: 255 } } get: operationId: getXapiActivityProfile description: One document (with its ETag) by profileId, or the profile ids (optionally since a time). Shared by the tenant's learners. security: [{ launch: [] }] parameters: [{ name: since, in: query, schema: { type: string, format: date-time } }] responses: '200': { description: 'The document, or the profile ids', content: { '*/*': { schema: { type: string, format: binary } } } } '401': { description: Missing or invalid launch token } '403': { description: Outside the launched activity } '404': { description: No such document } put: operationId: putXapiActivityProfile description: Replaces the document. A document that exists can only be replaced with If-Match (or If-None-Match). security: [{ launch: [] }] parameters: [{ $ref: '#/components/parameters/IfMatch' }, { $ref: '#/components/parameters/IfNoneMatch' }] requestBody: { required: true, content: { '*/*': { schema: { type: string, format: binary, maxLength: 1048576 } } } } responses: '204': { description: Stored } '409': { description: The document exists and neither If-Match nor If-None-Match was sent } '412': { description: If-Match or If-None-Match does not hold } post: operationId: mergeXapiActivityProfile description: Merges a JSON object into the stored JSON object (or stores it when there is none). security: [{ launch: [] }] parameters: [{ $ref: '#/components/parameters/IfMatch' }, { $ref: '#/components/parameters/IfNoneMatch' }] requestBody: { required: true, content: { application/json: { schema: { type: object } } } } responses: '204': { description: Stored } '400': { description: 'Not a JSON object, or the stored document is not one' } '412': { description: If-Match or If-None-Match does not hold } delete: operationId: deleteXapiActivityProfile security: [{ launch: [] }] parameters: [{ $ref: '#/components/parameters/IfMatch' }] responses: '204': { description: Deleted (or there was nothing to delete) } '412': { description: If-Match does not hold } /v1/academy/xapi/agents/profile: parameters: - { name: X-Experience-API-Version, in: header, required: true, schema: { type: string } } - { name: agent, in: query, required: true, schema: { type: string }, description: 'An Agent (JSON); documents belong to the launch learner whatever agent is named' } - { name: profileId, in: query, schema: { type: string, maxLength: 255 } } get: operationId: getXapiAgentProfile security: [{ launch: [] }] parameters: [{ name: since, in: query, schema: { type: string, format: date-time } }] responses: '200': { description: 'The document, or the profile ids', content: { '*/*': { schema: { type: string, format: binary } } } } '401': { description: Missing or invalid launch token } '404': { description: No such document } put: operationId: putXapiAgentProfile description: Replaces the document. A document that exists can only be replaced with If-Match (or If-None-Match). security: [{ launch: [] }] parameters: [{ $ref: '#/components/parameters/IfMatch' }, { $ref: '#/components/parameters/IfNoneMatch' }] requestBody: { required: true, content: { '*/*': { schema: { type: string, format: binary, maxLength: 1048576 } } } } responses: '204': { description: Stored } '409': { description: The document exists and neither If-Match nor If-None-Match was sent } '412': { description: If-Match or If-None-Match does not hold } post: operationId: mergeXapiAgentProfile security: [{ launch: [] }] parameters: [{ $ref: '#/components/parameters/IfMatch' }, { $ref: '#/components/parameters/IfNoneMatch' }] requestBody: { required: true, content: { application/json: { schema: { type: object } } } } responses: '204': { description: Stored } '400': { description: 'Not a JSON object, or the stored document is not one' } '412': { description: If-Match or If-None-Match does not hold } delete: operationId: deleteXapiAgentProfile security: [{ launch: [] }] parameters: [{ $ref: '#/components/parameters/IfMatch' }] responses: '204': { description: Deleted (or there was nothing to delete) } '412': { description: If-Match does not hold } /v1/academy/xapi/activities: get: operationId: getXapiActivity description: > The activity with the definition its package declares in tincan.xml (name, description, type), for the launched activity, activities beneath it and activities the package declares. security: [{ launch: [] }] parameters: - { name: X-Experience-API-Version, in: header, required: true, schema: { type: string } } - { name: activityId, in: query, required: true, schema: { type: string } } responses: '200': description: The Activity object content: application/json: schema: { type: object, required: [objectType, id], properties: { objectType: { type: string }, id: { type: string }, definition: { type: object } } } '403': { description: Not an activity of the launched package } /v1/academy/xapi/agents: get: operationId: getXapiPerson description: A Person object carrying the identifiers of the agent given (the LRS knows nothing more about anyone). security: [{ launch: [] }] parameters: - { name: X-Experience-API-Version, in: header, required: true, schema: { type: string } } - { name: agent, in: query, required: true, schema: { type: string } } responses: '200': description: The Person object content: application/json: schema: { type: object, required: [objectType], properties: { objectType: { type: string, enum: [Person] } } } '400': { description: Not an identified Agent } /v1/academy/xapi/statements: get: operationId: getXapiStatements description: > xAPI 1.0.3 statement queries for the launch token's learner and lesson: statementId or voidedStatementId, or the filters with paging through more. Voided statements are excluded from listings. security: [{ launch: [] }] parameters: - { name: X-Experience-API-Version, in: header, required: true, schema: { type: string } } - { name: statementId, in: query, schema: { type: string, format: uuid } } - { name: voidedStatementId, in: query, schema: { type: string, format: uuid } } - { name: agent, in: query, schema: { type: string } } - { name: verb, in: query, schema: { type: string } } - { name: activity, in: query, schema: { type: string } } - { name: registration, in: query, schema: { type: string, format: uuid } } - { name: related_activities, in: query, schema: { type: boolean } } - { name: related_agents, in: query, schema: { type: boolean } } - { name: since, in: query, schema: { type: string, format: date-time } } - { name: until, in: query, schema: { type: string, format: date-time } } - { name: limit, in: query, schema: { type: integer, minimum: 0, maximum: 500 } } - { name: format, in: query, schema: { type: string, enum: [exact, ids, canonical] } } - { name: attachments, in: query, schema: { type: boolean } } - { name: ascending, in: query, schema: { type: boolean } } - { name: cursor, in: query, schema: { type: string } } responses: '200': description: One statement (by id) or a page of statements content: application/json: schema: { oneOf: [{ $ref: '#/components/schemas/StatementResult' }, { type: object }] } multipart/mixed: schema: { type: string, format: binary, description: 'With attachments=true: the JSON first, then each attachment (X-Experience-API-Hash, binary)' } '400': { description: Invalid parameters or missing version header } '401': { description: Missing or invalid launch token } '404': { description: Unknown or voided statement } put: operationId: putXapiStatement security: [{ launch: [] }] parameters: - { name: X-Experience-API-Version, in: header, required: true, schema: { type: string } } - { name: statementId, in: query, required: true, schema: { type: string, format: uuid } } requestBody: required: true content: application/json: { schema: { type: object } } multipart/mixed: { schema: { type: string, format: binary, maxLength: 10485760 } } responses: '204': { description: Stored (or the same statement was already stored) } '400': { description: 'Invalid statement, or an attachment whose data is missing, mismatches its hash, or whose signature fails' } '409': { description: A different statement has that id } post: operationId: storeXapiStatements description: > Stores 1 to 50 statements. Attachments without a fileUrl, and signatures, send their data as multipart/mixed: the statements first (application/json), then one part per attachment with Content-Transfer-Encoding binary and X-Experience-API-Hash, the SHA-2 of its content (at most 20 parts, 10 MB per request, 50 MB per learner). security: [{ launch: [] }] parameters: [{ name: X-Experience-API-Version, in: header, required: true, schema: { type: string } }] requestBody: required: true content: application/json: schema: { oneOf: [{ type: object }, { type: array, items: { type: object }, maxItems: 50 }] } multipart/mixed: schema: { type: string, format: binary, maxLength: 10485760 } responses: '200': description: Stored statement ids content: application/json: schema: { type: array, items: { type: string, format: uuid } } '401': { description: Missing or invalid launch token } components: securitySchemes: bearer: { type: http, scheme: bearer, bearerFormat: JWT } launch: { type: http, scheme: basic, description: The xAPI launch token issued by xapi-launch } parameters: Id: { name: id, in: path, required: true, schema: { type: string, format: uuid } } CourseId: { name: courseId, in: path, required: true, schema: { type: string, format: uuid } } LessonId: { name: lessonId, in: path, required: true, schema: { type: string } } CertificateId: { name: certificateId, in: path, required: true, schema: { type: string, pattern: '^DXZ-[2-9A-HJKMNP-Z]{4}-[2-9A-HJKMNP-Z]{4}-[2-9A-HJKMNP-Z]{4}$' } } Locale: { name: locale, in: query, required: false, schema: { type: string, enum: [en, ar] } } IfMatch: { name: If-Match, in: header, required: false, schema: { type: string }, description: 'The ETag the document must have (or * for any)' } IfNoneMatch: { name: If-None-Match, in: header, required: false, schema: { type: string }, description: '* when the document must not exist' } Kind: { name: kind, in: path, required: true, schema: { type: string, enum: [courses, paths, certifications, banks, labs] } } Key: { name: key, in: path, required: true, schema: { type: string, maxLength: 64 } } schemas: LessonView: type: object required: [id, title, kind, durationMinutes, completed] properties: id: { type: string } title: { type: string } kind: { type: string, enum: [Video, Interactive, Document, Scorm, Xapi, Lab] } durationMinutes: { type: integer } completed: { type: boolean } url: { type: [string, 'null'] } blocks: type: [array, 'null'] items: type: object properties: text: { type: string } choices: { type: [array, 'null'], items: { type: string } } correctChoice: { type: [integer, 'null'] } packageId: { type: [string, 'null'], format: uuid } labId: { type: [string, 'null'] } CourseView: type: object required: [id, version, title, summary, modules] properties: id: { type: string, format: uuid } version: { type: integer } title: { type: string } summary: { type: string } modules: type: array items: type: object required: [id, title, lessons] properties: id: { type: string } title: { type: string } lessons: { type: array, items: { $ref: '#/components/schemas/LessonView' } } PathView: type: object required: [id, kind, title, summary, courses, progressPercent] properties: id: { type: string, format: uuid } kind: { type: string, enum: [Sales, PreSales, DeploymentEngineer, SupportEngineer, Administrator] } title: { type: string } summary: { type: string } courses: { type: array, items: { $ref: '#/components/schemas/CourseView' } } certificationId: { type: [string, 'null'], format: uuid } enrolmentId: { type: [string, 'null'], format: uuid } progressPercent: { type: integer, minimum: 0, maximum: 100 } enrolmentStatus: { type: [string, 'null'] } Enrolment: type: object required: [id, pathId, learner, status] properties: id: { type: string, format: uuid } pathId: { type: string, format: uuid } learner: { type: string } learnerName: { type: string } status: { type: string, enum: [Assigned, InProgress, Completed] } assignedAt: { type: string, format: date-time } dueAt: { type: [string, 'null'], format: date-time } completedAt: { type: [string, 'null'], format: date-time } LearnerProgress: type: object required: [enrolmentId, learner, learnerName, pathId, path, progressPercent, status] properties: enrolmentId: { type: string, format: uuid } learner: { type: string } learnerName: { type: string } pathId: { type: string, format: uuid } path: { type: string } progressPercent: { type: integer } status: { type: string } assignedAt: { type: string, format: date-time } dueAt: { type: [string, 'null'], format: date-time } completedAt: { type: [string, 'null'], format: date-time } certifications: { type: array, items: { type: string } } ExamStart: type: object required: [attemptId, deadline, passMarkPercent, questions] properties: attemptId: { type: string, format: uuid } deadline: { type: string, format: date-time } passMarkPercent: { type: integer } questions: type: array items: type: object required: [questionId, prompt, options, multipleAnswers] properties: questionId: { type: string } prompt: { type: string } options: { type: array, items: { type: string } } multipleAnswers: { type: boolean } ExamResult: type: object required: [attemptId, status, scorePercent, passMarkPercent] properties: attemptId: { type: string, format: uuid } status: { type: string, enum: [Passed, Failed, TimedOut] } scorePercent: { type: integer } passMarkPercent: { type: integer } certificateId: { type: [string, 'null'] } Certificate: type: object required: [id, learnerName, certificationTitle, level, status, issuedAt, expiresAt] properties: id: { type: string } learnerName: { type: string } certificationId: { type: string, format: uuid } certificationTitle: { type: string } path: { type: string } level: { type: string, enum: [Associate, Professional, Expert] } status: { type: string, enum: [Valid, Expired, Revoked] } issuedAt: { type: string, format: date-time } expiresAt: { type: string, format: date-time } CertificateVerification: type: object additionalProperties: false required: [id, name, certification, level, status, issuedAt, expiresAt, brand] properties: id: { type: string } name: { type: string } certification: { type: string } level: { type: string, enum: [Associate, Professional, Expert] } status: { type: string, enum: [Valid, Expired, Revoked] } issuedAt: { type: string, format: date-time } expiresAt: { type: string, format: date-time } brand: { $ref: '#/components/schemas/VerificationBrand' } Lab: type: object required: [id, labId, title, brief, expiresAt, status, tasks, devices] properties: id: { type: string, format: uuid } labId: { type: string } title: { type: string } brief: { type: string } expiresAt: { type: string, format: date-time } status: { type: string, enum: [Active, Passed, Expired] } sandboxTenantId: { type: string, format: uuid } tasks: type: array items: type: object required: [id, prompt, kind] properties: id: { type: string } prompt: { type: string } kind: { type: string } passed: { type: [boolean, 'null'] } devices: type: array items: type: object properties: hostname: { type: string } department: { type: string } model: { type: string } os: { type: string } ramGb: { type: integer } diskType: { type: string } bootSeconds: { type: integer } memoryUsedPercent: { type: integer } apps: type: array items: type: object properties: name: { type: string } publisher: { type: string } category: { type: string } atStartup: { type: boolean } crashes7Days: { type: integer } XapiLaunch: type: object required: [endpoint, auth, actor, activityId, launchUrl] properties: endpoint: { type: string } auth: { type: string } actor: { type: string } activityId: { type: string } launchUrl: { type: string } registration: { type: [string, 'null'], format: uuid, description: The same for every launch of this lesson by this learner } ScormActivity: type: object required: [id, title, depth, leaf, completed, satisfied, attempted, current, selectable] properties: id: { type: string } title: { type: string } depth: { type: integer } leaf: { type: boolean } completed: { type: boolean } satisfied: { type: boolean } attempted: { type: boolean } current: { type: boolean } selectable: { type: boolean, description: A choice navigation request for it would be accepted now } ScormNavigation: type: object required: [sessionEnded, suspended, lessonCompleted, canContinue, canPrevious, canSuspend, canExit, activities] properties: activityId: { type: [string, 'null'], description: The SCO delivered, if any } title: { type: [string, 'null'] } launchUrl: { type: [string, 'null'], description: Signed four-hour address of the SCO for the sandboxed player } sessionEnded: { type: boolean } suspended: { type: boolean } lessonCompleted: { type: boolean } error: { type: [string, 'null'], description: Why the navigation request was refused } canContinue: { type: boolean } canPrevious: { type: boolean } canSuspend: { type: boolean } canExit: { type: boolean } activities: { type: array, items: { $ref: '#/components/schemas/ScormActivity' } } runtime: { oneOf: [{ $ref: '#/components/schemas/ScormRuntime' }, { type: 'null' }], description: The delivered SCO's initial run-time data } ScormRuntime: type: object required: [version, scoId, attempt, session, entry, values] properties: version: { type: string, enum: ['1.2', '2004'] } scoId: { type: string, description: The activity id under SCORM 2004 sequencing; empty for SCORM 1.2 } attempt: { type: integer, minimum: 1 } session: { type: integer, description: Names this session in commits } entry: { type: string, enum: [ab-initio, resume, ''] } values: { type: object, additionalProperties: { type: string }, description: 'Stored cmi values and what the LMS initializes (learner, entry, total time, thresholds, navigation validity)' } ScormLaunch: type: object required: [launchUrl, runtime] properties: launchUrl: { type: string, description: Signed four-hour address of the SCO for the sandboxed player } runtime: { $ref: '#/components/schemas/ScormRuntime' } ScormCommitResult: type: object required: [completed, rejected] properties: completed: { type: boolean } rejected: type: array items: type: object required: [element, code] properties: element: { type: string } code: { type: integer, description: The SCORM error code the API would have answered } StatementResult: type: object required: [statements, more] properties: statements: { type: array, items: { type: object } } more: { type: string, description: Path and query of the next page, or empty } VerificationBrand: type: object additionalProperties: false required: [mode, productName, academyName, primaryColor] properties: mode: { type: string, enum: [Default, CoBrand, WhiteLabel] } productName: { type: string } academyName: { type: string } partnerName: { type: [string, 'null'] } primaryColor: { type: string, pattern: '^#[0-9A-Fa-f]{6}$' } logoAssetId: type: [string, 'null'] pattern: '^[0-9a-f]{32}$' description: >- The partner logo the certificate was issued with (co-brand and white-label), read from partner-service's public GET /v1/branding/assets/{assetId}; null for the product brand or when the partner had no logo CatalogEntry: type: object required: [kind, key, version, status, authoredBy, updatedAt, content] properties: kind: { type: string, enum: [Course, Path, Certification, Bank, Lab] } key: { type: string } version: { type: integer } status: { type: string, enum: [Draft, InReview, Published, Archived] } authoredBy: { type: string } updatedAt: { type: string, format: date-time } content: { type: object, additionalProperties: true } submittedBy: { type: [string, 'null'] } reviewedBy: { type: [string, 'null'] } publishedAt: { type: [string, 'null'], format: date-time } reviewNote: { type: [string, 'null'] } ContentPackage: type: object required: [id, standard, launchPath, files, bytes] properties: id: { type: string, format: uuid } standard: { type: string, enum: [Scorm12, Scorm2004, Xapi] } title: { type: object, properties: { en: { type: string }, ar: { type: [string, 'null'] } } } launchPath: { type: string } activityId: { type: [string, 'null'] } files: { type: array, items: { type: string } } bytes: { type: integer } importedBy: { type: string } importedAt: { type: string, format: date-time }