{ "openapi": "3.0.0", "info": { "version": "1.0.0", "title": "API specification for Dynamic Query API" }, "security": [ { "bearerAuth": [] } ], "paths": { "/api/v1/deliveries/results/qti-xml/{deliveryExecutionId}": { "parameters": [ { "name": "deliveryExecutionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "get": { "description": "Returns delivery result qti xml", "tags": ["DeliveryResult"], "responses": { "200": { "description": "Delivery result QTI xml", "content": { "application/xml": { "schema": { "type": "string", "description": "QTI Results XML content" } } } } } } }, "/api/v1/deliveries/qti/{qtiPackage}": { "parameters": [ { "name": "qtiPackage", "in": "path", "required": true, "schema": { "type": "string" } } ], "get": { "description": "Returns signed url to download qti package zip file", "tags": ["Delivery"], "responses": { "200": { "description": "Successfully retrieved signed URL for QTI package.", "content": { "application/json": { "schema": { "type": "object", "properties": { "downloadQtiPackageUrl": { "type": "string", "example": "https://example.com/download?signature=abcdef123456", "description": "The signed URL for downloading the QTI package." } } } } } }, "400": { "description": "Bad request, invalid QTI package identifier.", "content": { "application/json": { "schema": { "type": "object", "properties": { "message": { "type": "string", "example": "qtiPackage parameter is invalid" } } } } } }, "404": { "description": "QTI package not found.", "content": { "application/json": { "schema": { "type": "object", "properties": { "message": { "type": "string", "example": "Not found" } } } } } }, "500": { "description": "Server error.", "content": { "application/json": { "schema": { "type": "object", "properties": { "message": { "type": "string", "example": "Internal server error" } } } } } } } } }, "/api/v1/health": { "get": { "description": "Health check endpoint", "tags": ["Health"], "responses": { "200": { "description": "Health status", "content": { "application/json": { "schema": { "type": "object", "properties": { "status": { "type": "string" } } } } } } } } }, "/api/v1/entity/list": { "get": { "description": "Gives list of available entities", "tags": ["Entity"], "responses": { "200": { "description": "Returns list of entities", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/entityListItem" } } } } } } } }, "/api/v1/entity/dictionary": { "get": { "description": "Gives list of available entities with fields and descriptions", "tags": ["Entity"], "responses": { "200": { "description": "Returns list of entities with fields and descriptions", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/entityItemDescription" } } } } } } } }, "/api/v1/entity/dictionary-html": { "get": { "description": "Gives list of available entities with fields and descriptions in HTML format", "tags": ["Entity"], "responses": { "200": { "description": "Returns list of entities with fields and descriptions in HTML format", "content": { "text/html": { "schema": { "type": "string" } } } } } } }, "/api/v1/entity/{entityName}": { "parameters": [ { "name": "entityName", "in": "path", "required": true, "schema": { "type": "string" } } ], "get": { "description": "Provides a list of fields available for the entity", "tags": ["Entity"], "responses": { "200": { "description": "Returns list of fields available for the entity", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/entityItem" } } } } } } } }, "/api/v1/search/{entity}": { "parameters": [ { "name": "entity", "in": "path", "description": "Entity", "required": true, "schema": { "type": "string" } } ], "post": { "summary": "Search list of records", "tags": ["DynamicQuery"], "operationId": "searchRecords", "requestBody": { "description": "Search criteria", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PagedRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PagedResponse" } } } }, "400": { "description": "Invalid Request" } } } }, "/api/v1/search/uploads": { "post": { "summary": "Search list of uploads", "tags": ["DynamicQuery"], "operationId": "searchUploads", "requestBody": { "description": "Search criteria", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PagedRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PagedResponse" } } } }, "400": { "description": "Invalid Request" } } } }, "/api/v1/top/{entity}": { "parameters": [ { "name": "entity", "in": "path", "description": "Entity", "required": true, "schema": { "type": "string" } } ], "post": { "summary": "Top list of records", "tags": ["DynamicQuery"], "operationId": "topRecords", "requestBody": { "description": "Search criteria", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TopRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TopResponse" } } } }, "400": { "description": "Invalid Request" } } } }, "/api/v1/summary/{entity}": { "parameters": [ { "name": "entity", "in": "path", "description": "Entity", "required": true, "schema": { "type": "string" } } ], "post": { "summary": "Aggregated list of records", "tags": ["DynamicQuery"], "operationId": "summaryRecords", "requestBody": { "description": "Search criteria", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PagedAggregatedRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PagedResponse" } } } }, "400": { "description": "Invalid Request" } } } }, "/api/v1/metric/{entity}": { "parameters": [ { "name": "entity", "in": "path", "description": "Entity", "required": true, "schema": { "type": "string" } } ], "post": { "summary": "Total Information for metric", "tags": ["DynamicQuery"], "operationId": "metricsRecord", "requestBody": { "description": "Search criteria", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MetricsRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PagedResponse" } } } }, "400": { "description": "Invalid Request" } } } }, "/api/v1/exists/{entity}": { "parameters": [ { "name": "entity", "in": "path", "description": "Entity", "required": true, "schema": { "type": "string" } } ], "post": { "summary": "Information about existence", "tags": ["DynamicQuery"], "operationId": "existsRecord", "requestBody": { "description": "Search criteria", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExistsRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExistsResponse" } } } }, "400": { "description": "Invalid Request" } } } }, "/api/v1/lookup/{entity}": { "parameters": [ { "name": "entity", "in": "path", "description": "Entity", "required": true, "schema": { "type": "string" } } ], "post": { "summary": "Lookup Information", "tags": ["DynamicQuery"], "operationId": "lookupRecord", "requestBody": { "description": "Search criteria", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LookupRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LookupResponse" } } } }, "400": { "description": "Invalid Request" } } } }, "/api/v1/deliveries/results": { "get": { "description": "Provides scoring outcomes and statistics of the whole assessment and minimal information for individual item result.", "parameters": [ { "description": "Page number requested.", "explode": true, "in": "query", "name": "page", "required": true, "schema": { "default": 1, "minimum": 1, "type": "integer" }, "style": "form" }, { "description": "Number of results requested.", "explode": true, "in": "query", "name": "results", "required": true, "schema": { "default": 20, "maximum": 100, "minimum": 1, "type": "integer" }, "style": "form" }, { "description": "Results from tests taken started from.", "explode": true, "in": "query", "name": "fromStartTime", "required": false, "schema": { "format": "date-time", "type": "string" }, "style": "form" }, { "description": "Results from tests taken started until.", "explode": true, "in": "query", "name": "toStartTime", "required": false, "schema": { "format": "date-time", "type": "string" }, "style": "form" }, { "description": "Results from tests taken finished from.", "explode": true, "in": "query", "name": "fromEndTime", "required": false, "schema": { "format": "date-time", "type": "string" }, "style": "form" }, { "description": "Results from tests taken started until.", "explode": true, "in": "query", "name": "toEndTime", "required": false, "schema": { "format": "date-time", "type": "string" }, "style": "form" }, { "description": "Add item details.", "explode": true, "in": "query", "name": "itemDetails", "required": false, "schema": { "type": "boolean" }, "style": "form" }, { "description": "Add all results information.", "explode": true, "in": "query", "name": "allResults", "required": false, "schema": { "type": "boolean" }, "style": "form" } ], "deprecated": true, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Results" } } }, "description": "Success: Returns result of the an assessment for a list of test takers" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestResponse" } } }, "description": "Wrong request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/notFoundResponse" } } }, "description": "Delivery results not found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/serverErrorResponse" } } }, "description": "Internal server error" } }, "summary": "Assessment result for a batch of test takers.", "tags": ["DeliveryResult"] } }, "/api/v1/deliveries/{deliveryId}": { "get": { "description": "Provides general information about the delivery content and metadata. Lists high level information about items composing the delivery with links to retrieve item definition.", "parameters": [ { "description": "Delivery identifier as provided by the delivery tool.", "explode": false, "in": "path", "name": "deliveryId", "required": true, "schema": { "type": "string" }, "style": "simple" } ], "deprecated": true, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/delivery" } } }, "description": "Success: Returns delivery information" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestResponse" } } }, "description": "Wrong request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/notFoundResponse" } } }, "description": "Delivery not found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/serverErrorResponse" } } }, "description": "Internal server error" } }, "summary": "Single delivery information.", "tags": ["Delivery"] } }, "/api/v1/deliveries/{deliveryId}/{itemId}": { "get": { "description": "Provides item definition including various qti elements as well as metadata propeprties.", "parameters": [ { "description": "Delivery identifier as provided by the delivery tool.", "explode": false, "in": "path", "name": "deliveryId", "required": true, "schema": { "type": "string" }, "style": "simple" }, { "description": "Qti item identifier as defined on the authoring tool.", "explode": false, "in": "path", "name": "itemId", "required": true, "schema": { "type": "string" }, "style": "simple" } ], "deprecated": true, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/itemFull" } } }, "description": "Success: Returns single item information" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestResponse" } } }, "description": "Wrong request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/notFoundResponse" } } }, "description": "Delivery or item not found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/serverErrorResponse" } } }, "description": "Internal server error" } }, "summary": "Single item information.", "tags": ["Delivery"] } }, "/api/v1/deliveries/{deliveryId}/result/{testTakerId}": { "get": { "description": "Provides scoring outcomes and statistics of the whole assessment and minimal information for individual item result.", "parameters": [ { "description": "Delivery identifier as provided by the delivery tool.", "explode": false, "in": "path", "name": "deliveryId", "required": true, "schema": { "type": "string" }, "style": "simple" }, { "description": "Test taker identifier as provided by rostering tool during delivery execution launch process.", "explode": false, "in": "path", "name": "testTakerId", "required": true, "schema": { "type": "string" }, "style": "simple" } ], "deprecated": true, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/deliveryResult" } } }, "description": "Success: Returns result of an assessment for a test taker" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestResponse" } } }, "description": "Wrong request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/notFoundResponse" } } }, "description": "Delivery or test taker not found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/serverErrorResponse" } } }, "description": "Internal server error" } }, "summary": "Assessment result for a single test taker.", "tags": ["DeliveryResult"] } }, "/api/v1/deliveries/{deliveryId}/result/uploads": { "get": { "description": "Returns a list of signed urls for every file which has been uploaded during test administration for a given delivery", "parameters": [ { "description": "Delivery identifier as provided by the delivery tool.", "explode": false, "in": "path", "name": "deliveryId", "required": true, "schema": { "type": "string" }, "style": "simple" }, { "description": "Page number requested.", "explode": true, "in": "query", "name": "page", "required": true, "schema": { "default": 1, "minimum": 1, "type": "integer" }, "style": "form" }, { "description": "Number of results requested.", "explode": true, "in": "query", "name": "results", "required": true, "schema": { "default": 20, "maximum": 100, "minimum": 1, "type": "integer" }, "style": "form" } ], "deprecated": true, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/deliveryExecutionsUploadResults" } } }, "description": "Success: Returns result of an assessment for a test taker for a single item" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestResponse" } } }, "description": "Wrong request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/notFoundResponse" } } }, "description": "Delivery not found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/serverErrorResponse" } } }, "description": "Internal server error" } }, "summary": "Expose all uploads for all delivery executions for a given delivery", "tags": ["DeliveryResult"] } }, "/api/v1/deliveries/{deliveryId}/result/{testTakerId}/{itemId}": { "get": { "description": "Provides scoring final outcomes and all sumbitted attempts for the given item with detailed information about each attempt.", "parameters": [ { "description": "Delivery identifier as provided by the delivery tool.", "explode": false, "in": "path", "name": "deliveryId", "required": true, "schema": { "type": "string" }, "style": "simple" }, { "description": "Test taker identifier as provided by rostering tool during delivery execution launch process.", "explode": false, "in": "path", "name": "testTakerId", "required": true, "schema": { "type": "string" }, "style": "simple" }, { "description": "Qti item identifier as defined on the authoring tool.", "explode": false, "in": "path", "name": "itemId", "required": true, "schema": { "type": "string" }, "style": "simple" } ], "deprecated": true, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/itemResultFull" } } }, "description": "Success: Returns result of an assessment for a test taker for a single item" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestResponse" } } }, "description": "Wrong request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/notFoundResponse" } } }, "description": "Delivery or test taker or item not found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/serverErrorResponse" } } }, "description": "Internal server error" } }, "summary": "Assessment result for a test taker for a single item", "tags": ["DeliveryResult"] } }, "/api/v1/deliveries/{deliveryId}/results": { "get": { "description": "Provides scoring outcomes and statistics of the whole assessment and minimal information for individual item result.", "parameters": [ { "description": "Delivery identifier as provided by the delivery tool.", "explode": false, "in": "path", "name": "deliveryId", "required": true, "schema": { "type": "string" }, "style": "simple" }, { "description": "Page number requested.", "explode": true, "in": "query", "name": "page", "required": true, "schema": { "default": 1, "minimum": 1, "type": "integer" }, "style": "form" }, { "description": "Number of results requested.", "explode": true, "in": "query", "name": "results", "required": true, "schema": { "default": 20, "maximum": 100, "minimum": 1, "type": "integer" }, "style": "form" }, { "description": "Results from tests taken started from.", "explode": true, "in": "query", "name": "fromStartTime", "required": false, "schema": { "format": "date-time", "type": "string" }, "style": "form" }, { "description": "Results from tests taken started until.", "explode": true, "in": "query", "name": "toStartTime", "required": false, "schema": { "format": "date-time", "type": "string" }, "style": "form" }, { "description": "Results from tests taken finished from.", "explode": true, "in": "query", "name": "fromEndTime", "required": false, "schema": { "format": "date-time", "type": "string" }, "style": "form" }, { "description": "Results from tests taken started until.", "explode": true, "in": "query", "name": "toEndTime", "required": false, "schema": { "format": "date-time", "type": "string" }, "style": "form" } ], "deprecated": true, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/deliveryResults" } } }, "description": "Success: Returns result of the an assessment for a list of test takers" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestResponse" } } }, "description": "Wrong request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/notFoundResponse" } } }, "description": "Delivery results not found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/serverErrorResponse" } } }, "description": "Internal server error" } }, "summary": "Assessment result for a batch of test takers.", "tags": ["DeliveryResult"] } }, "/api/v1/ui-events": { "get": { "summary": "UI events replicated from delivery application.", "description": "Provides list of UI events captured on delivery tool .", "parameters": [ { "in": "query", "name": "deliveryId", "description": "Delivery identifier as provided by the delivery tool.", "schema": { "type": "string" }, "required": false }, { "in": "query", "name": "deliveryExecutionId", "description": "Delivery execution identifier as provided by the delivery tool.", "schema": { "type": "string" }, "required": false }, { "in": "query", "name": "page", "description": "Page number requested.", "schema": { "type": "integer", "minimum": 1, "default": 1 }, "required": true }, { "in": "query", "name": "results", "description": "Number of results requested.", "schema": { "type": "integer", "default": 20, "maximum": 100, "minimum": 1 }, "required": true }, { "in": "query", "name": "from", "description": "Results for UI events started from.", "schema": { "type": "string", "format": "date-time" }, "required": false }, { "in": "query", "name": "to", "description": "Results from tests taken started until.", "schema": { "type": "string", "format": "date-time" }, "required": false } ], "deprecated": true, "responses": { "200": { "description": "Success: Returns result of the UI events list", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/uiEvents" } } } }, "400": { "description": "Wrong request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestResponse" } } } }, "404": { "description": "UI events not found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/notFoundResponse" } } } }, "500": { "description": "Internal server error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/serverErrorResponse" } } } } }, "tags": ["UIEvent"] } }, "/api/v1/add-data/{entityName}": { "post": { "summary": "Add Data additional data to the indexes 'deliveryResult' and 'itemResult'", "description": "This endpoint allows users to upload data in CSV format, enriching the Elasticsearch index by adding additional fields.", "requestBody": { "description": "Addition data to upload", "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "file": { "type": "string", "format": "binary" } } } } }, "required": true }, "parameters": [ { "name": "entityName", "in": "path", "description": "Entity", "required": true, "schema": { "type": "string", "enum": ["deliveryResult", "itemResult"] } } ], "responses": { "200": { "description": "Additional data stored successfully" }, "400": { "description": "Bad request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestResponse" } } } }, "500": { "description": "Internal server error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/serverErrorResponse" } } } } }, "tags": ["Additional data"] } }, "/api/v1/deliveries/{deliveryId}/metadata": { "get": { "summary": "Single delivery metadata information", "description": "Provides delivery metadata properties.", "parameters": [ { "in": "path", "name": "deliveryId", "description": "Delivery id that uniquely identifies a delivery.", "schema": { "type": "string" }, "required": true } ], "deprecated": true, "responses": { "200": { "description": "Success: Returns information about a delivery metadata", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/deliveryMetadata" } } } }, "400": { "description": "Bad request while trying to get the test metadata, please check the documentation", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestResponse" } } } }, "404": { "description": "Delivery not found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/notFoundResponse" } } } }, "500": { "description": "There was a server error and we could not process your request. Try again later.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/serverErrorResponse" } } } } }, "tags": ["Metadata"] } }, "/api/v1/deliveries/item-response-export/initiate": { "post": { "summary": "Initiate item response export", "description": "Starts item response export and returns an asynchronous task ID.", "tags": ["DeliveryResult"], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InitiateItemResponseExportRequest" } } } }, "responses": { "202": { "description": "Export task accepted", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ItemResponseExportTaskAcceptedResponse" } } } }, "400": { "description": "Bad request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestResponse" } } } }, "500": { "description": "Internal server error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/serverErrorResponse" } } } } } } }, "/api/v1/deliveries/item-response-export/fetch": { "post": { "summary": "Fetch exported item response and attachments", "description": "Fetches the current export status and, when completed, returns item body PDF URL and attachments.", "tags": ["DeliveryResult"], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FetchItemResponseExportRequest" } } } }, "responses": { "200": { "description": "Export status response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ItemResponseExportFetchResponse" } } } }, "404": { "description": "Task not found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/notFoundResponse" } } } }, "400": { "description": "Bad request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestResponse" } } } }, "500": { "description": "Internal server error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/serverErrorResponse" } } } } } } }, "/api/v1/items/{itemId}/metadata": { "get": { "summary": "Single item metadata information.", "description": "Provides item metadata properties.", "parameters": [ { "in": "path", "name": "itemId", "description": "Qti item identifier as defined on the authoring tool.", "schema": { "type": "string" }, "required": true } ], "deprecated": true, "responses": { "200": { "description": "Success: Returns single item metadata information", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/itemMetadata" } } } }, "400": { "description": "Bad request while trying to get an Item, please check the documentation", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestResponse" } } } }, "404": { "description": "Item not found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/notFoundResponse" } } } }, "500": { "description": "There was a server error and we could not process your request. Try again later.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/serverErrorResponse" } } } } }, "tags": ["Metadata"] } }, "/api/v1/tests/{testId}/metadata": { "get": { "summary": "Single test metadata information.", "description": "Provides test metadata properties.", "parameters": [ { "in": "path", "name": "testId", "description": "Qti test identifier as defined on the authoring tool.", "schema": { "type": "string" }, "required": true } ], "deprecated": true, "responses": { "200": { "description": "Success: Returns single test metadata information", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/testMetadata" } } } }, "400": { "description": "Bad request while trying to get the test metadata, please check the documentation", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badRequestResponse" } } } }, "404": { "description": "Test not found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/notFoundResponse" } } } }, "500": { "description": "There was a server error and we could not process your request. Try again later.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/serverErrorResponse" } } } } }, "tags": ["Metadata"] } }, "/api/v1/tests/qti/{qtiTestPackageReference}": { "parameters": [ { "name": "qtiTestPackageReference", "in": "path", "required": true, "schema": { "type": "string" } } ], "get": { "description": "Returns signed url to download test qti package zip file", "tags": ["Test"], "responses": { "200": { "description": "Successfully retrieved signed URL for QTI package.", "content": { "application/json": { "schema": { "type": "object", "properties": { "downloadQtiPackageUrl": { "type": "string", "example": "https://example.com/download?signature=abcdef123456", "description": "The signed URL for downloading the test QTI package." } } } } } }, "400": { "description": "Bad request, invalid QTI package identifier.", "content": { "application/json": { "schema": { "type": "object", "properties": { "message": { "type": "string", "example": "qtiPackage parameter is invalid" } } } } } }, "404": { "description": "QTI package not found.", "content": { "application/json": { "schema": { "type": "object", "properties": { "message": { "type": "string", "example": "Not found" } } } } } }, "500": { "description": "Server error.", "content": { "application/json": { "schema": { "type": "object", "properties": { "message": { "type": "string", "example": "Internal server error" } } } } } } } } } }, "components": { "securitySchemes": { "bearerAuth": { "type": "http", "scheme": "bearer", "bearerFormat": "JWT", "description": "JWT Authorization header using the Bearer scheme" } }, "schemas": { "deliveryMetadata": { "type": "object", "title": "Delivery metadata information", "required": ["deliveryId", "testId", "metadata"], "additionalProperties": false, "properties": { "testId": { "type": "string", "description": "Test identifier as provided by the authoring tool" }, "deliveryId": { "type": "string", "description": "Delivery identifier as provided by the authoring tool" }, "metadata": { "description": "Delivery metadata defined on authoring tool", "type": "array", "items": { "$ref": "#/components/schemas/metadata" } } } }, "itemMetadata": { "type": "object", "title": "Full item metadata information", "required": ["itemId", "metadata"], "additionalProperties": false, "properties": { "itemId": { "description": "Full unique item URI.", "type": "string" }, "metadata": { "description": "Item metadata defined on authoring tool as well as provided during the statistical metadata workflow", "type": "array", "items": { "$ref": "#/components/schemas/metadata" } } } }, "testMetadata": { "type": "object", "title": "Test metadata information", "required": ["testId", "metadata"], "additionalProperties": false, "properties": { "testId": { "type": "string", "description": "Test identifier as provided by the authoring tool" }, "metadata": { "description": "Statistical metadata for the test", "type": "array", "items": { "$ref": "#/components/schemas/metadata" } } } }, "LookupRequest": { "type": "object", "properties": { "field": { "type": "string" }, "size": { "type": "number" }, "prefix": { "type": "string" } } }, "MetricsRequest": { "type": "object", "properties": { "filters": { "type": "array", "items": { "$ref": "#/components/schemas/FilterDefinition" } }, "metrics": { "type": "array", "items": { "$ref": "#/components/schemas/MetricDefinition" } } } }, "ExistsRequest": { "type": "object", "properties": { "filters": { "type": "array", "items": { "$ref": "#/components/schemas/FilterDefinition" } } } }, "TopRequest": { "type": "object", "properties": { "pageSize": { "type": "integer", "format": "int64" }, "filters": { "type": "array", "items": { "$ref": "#/components/schemas/FilterDefinition" } }, "aggregation": { "$ref": "#/components/schemas/AggregationDefinition" } } }, "PagedAggregatedRequest": { "type": "object", "properties": { "pageSize": { "type": "integer", "format": "int64" }, "pageNumber": { "type": "integer", "format": "int64" }, "sort": { "type": "array", "items": { "$ref": "#/components/schemas/SortDefinition" } }, "response": { "$ref": "#/components/schemas/ResponseDefinition" }, "filters": { "type": "array", "items": { "$ref": "#/components/schemas/FilterDefinition" } }, "aggregations": { "type": "array", "items": { "$ref": "#/components/schemas/AggregationDefinition" } }, "metrics": { "type": "array", "items": { "$ref": "#/components/schemas/MetricDefinition" } }, "searchAfter": { "type": "array" } } }, "PagedRequest": { "type": "object", "properties": { "pageSize": { "type": "integer", "format": "int64" }, "pageNumber": { "type": "integer", "format": "int64" }, "sort": { "type": "array", "items": { "$ref": "#/components/schemas/SortDefinition" } }, "response": { "$ref": "#/components/schemas/ResponseDefinition" }, "textSearch": { "$ref": "#/components/schemas/TextSearchDefinition" }, "filters": { "type": "array", "items": { "$ref": "#/components/schemas/FilterDefinition" } }, "searchAfter": { "type": "array" } } }, "ResponseDefinition": { "type": "object", "properties": { "fields": { "type": "array", "items": { "type": "string" } }, "excludeFields": { "type": "array", "items": { "type": "string" } }, "flatResponse": { "type": "boolean" } } }, "LookupResponse": { "type": "object", "properties": { "data": { "type": "array" } } }, "ExistsResponse": { "type": "object", "properties": { "data": { "type": "object" } } }, "TopResponse": { "type": "object", "properties": { "data": { "type": "object" } } }, "PagedResponse": { "type": "object", "properties": { "data": { "type": "object" }, "totalResults": { "type": "integer", "format": "int64" }, "lastId": { "type": "string" } } }, "SortDefinition": { "type": "object", "properties": { "type": { "type": "string", "enum": ["ASC", "DESC", "RAND"], "description": "Sort order: ASC (ascending), DESC (descending), or RAND (random). Note: pageNumber and searchAfter are not supported when type is RAND." }, "field": { "type": "string" }, "missing": { "type": "string", "enum": ["_first", "_last"] } } }, "FilterDefinition": { "type": "object", "properties": { "filterGroup": { "type": "string" }, "filterSubGroup": { "type": "string" }, "field": { "type": "string" }, "not_included": { "type": "boolean" }, "type": { "type": "string", "enum": ["terms", "range", "exist", "prefix", "wildcard"] }, "values": { "type": "array", "items": { "type": "string" } }, "fromValue": { "type": "string" }, "toValue": { "type": "string" }, "fromValueIncluded": { "type": "boolean" }, "toValueInclued": { "type": "boolean" }, "value": { "type": "string" } } }, "AggregationDefinition": { "type": "object", "properties": { "field": { "type": "string" }, "type": { "type": "string", "enum": ["terms"] } } }, "MetricDefinition": { "type": "object", "properties": { "field": { "type": "string" }, "metric": { "type": "string", "enum": ["stats", "extended_stats", "percentiles"] } } }, "ExistsDefinition": { "type": "object", "properties": { "field": { "type": "string" }, "exists": { "type": "boolean" } } }, "TextSearchDefinition": { "type": "object", "properties": { "fields": { "type": "array", "items": { "type": "string" } }, "fuzziness": { "type": "boolean" }, "value": { "type": "string" } } }, "uiEvents": { "additionalProperties": false, "properties": { "pageNumber": { "description": "Page Number requested.", "type": "integer" }, "totalRecords": { "description": "Total number of ui events in that delivery execution.", "type": "integer" }, "uiEvents": { "description": "List of ui events.", "items": { "$ref": "#/components/schemas/uiEvent" }, "type": "array" } }, "required": ["pageNumber", "totalRecords"], "title": "Bulk ui events with pagination", "type": "object" }, "uiEvent": { "additionalProperties": false, "properties": { "id": { "description": "The id of the event.", "type": "string" }, "deliveryId": { "description": "Delivery id of the event.", "type": "string" }, "deliveryExecutionId": { "description": "Delivery execution id.", "type": "string" }, "tenantId": { "description": "Tenant id.", "type": "string" }, "itemId": { "description": "Item id.", "format": "string", "type": "string" }, "responseId": { "description": "Response id.", "format": "string", "type": "string" }, "domEventType": { "description": "Dom event type", "format": "string", "type": "string" }, "timestamp": { "description": "Event timestamp", "format": "date-time", "type": "string" }, "metadata": { "description": "Event metadata", "type": "object" } }, "required": [ "deliveryExecutionId", "deliveryId", "domEventType", "id", "itemId", "metadata", "responseId", "timestamp" ], "title": "UI Event", "type": "object" }, "deliveriesIds": { "items": { "description": "DeliveryId", "type": "string" }, "type": "array" }, "ltiParameters": { "additionalProperties": false, "properties": { "name": { "description": "LTI parameter name", "type": "string" }, "value": { "description": "LTI parameter value", "type": "string" } }, "required": ["name", "value"], "title": "LTI parameters information", "type": "object" }, "delivery": { "additionalProperties": false, "properties": { "deliveryId": { "description": "Delivery identifier as provided by the delivery tool.", "type": "string" }, "metadata": { "description": "Delivery metadata defined on authoring tool", "items": { "$ref": "#/components/schemas/metadata" }, "type": "array" }, "outcomeDeclaration": { "description": "Outcome declaration data", "items": { "$ref": "#/components/schemas/outcomeDeclaration" }, "type": "array" }, "items": { "items": { "$ref": "#/components/schemas/itemPreview" }, "type": "array" }, "publicationTime": { "description": "Delivery publication time", "format": "date-time", "type": "string" }, "testParts": { "type": "object" } }, "required": ["deliveryId", "metadata", "publicationTime"], "title": "Delivery information", "type": "object" }, "testShort": { "additionalProperties": false, "properties": { "page": { "type": "integer" }, "totalCount": { "type": "integer" }, "records": { "type": "integer" }, "data": { "type": "array", "items": { "type": "object", "properties": { "label": { "type": "string" }, "qtiId": { "type": "string" }, "resourceId": { "type": "string" }, "publicationTime": { "type": "string", "format": "date-time" } } } } }, "required": ["page", "totalCount", "records", "data"], "title": "Short test information", "type": "object" }, "sessionShort": { "additionalProperties": false, "properties": { "page": { "type": "integer" }, "totalCount": { "type": "integer" }, "records": { "type": "integer" }, "data": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "lastPublishedOn": { "type": "string", "format": "date-time" } } } } }, "required": ["page", "totalCount", "records", "data"], "title": "Short session information", "type": "object" }, "itemPreview": { "properties": { "itemId": { "description": "Full unique item URI.", "type": "string" }, "assessmentItemRefId": { "description": "Assessment item ref it from the test.xml file", "type": "string" }, "authoringItemPosition": { "description": "The position of the item as per the authored definition of the test.", "nullable": true, "type": "integer" }, "qtiIdentifier": { "description": "Qti item identifier as defined on the authoring tool.", "type": "string" }, "maxScore": { "nullable": true, "type": "number" }, "fullInfoLink": { "description": "Link to a full item info", "type": "string" } }, "required": [ "assessmentItemRefId", "authoringItemPosition", "fullInfoLink", "itemId", "maxScore", "qtiIdentifier" ], "title": "Base item information", "type": "object" }, "itemFull": { "additionalProperties": false, "properties": { "itemId": { "description": "Full unique item URI.", "type": "string" }, "assessmentItemRefId": { "description": "Assessment item ref it from the test.xml file", "type": "string" }, "authoringItemPosition": { "description": "The position of the item as per the authored definition of the test.", "nullable": true, "type": "integer" }, "qtiIdentifier": { "description": "Qti item identifier as defined on the authoring tool.", "type": "string" }, "qtiTitle": { "description": "Qti title identifier as defined on the authoring tool.", "type": "string" }, "maxScore": { "type": "number" }, "taskFormat": { "type": "string" }, "textType": { "type": "string" }, "metadata": { "description": "Item metadata defined on authoring tool", "items": { "$ref": "#/components/schemas/metadata" }, "type": "array" }, "outcomeDeclaration": { "description": "Outcome declaration data", "items": { "$ref": "#/components/schemas/outcomeDeclaration" }, "type": "array" } }, "required": [ "assessmentItemRefId", "authoringItemPosition", "itemId", "maxScore", "metadata", "outcomeDeclaration", "qtiIdentifier", "qtiTitle", "taskFormat", "textType" ], "title": "Full item information", "type": "object" }, "metadata": { "properties": { "puri": { "description": "Property URI defined on authoring tool", "type": "string" }, "plabel": { "description": "Metadata property label", "type": "string" }, "alias": { "description": "Metadata alias to identify it per custom needs", "type": "string" }, "type": { "description": "Metadata type in QTI specification", "type": "string" }, "values": { "description": "Nested value containing custom labels as metadata from tests or items", "items": { "$ref": "#/components/schemas/values" }, "type": "array" } }, "required": ["alias", "plabel", "puri", "type", "values"], "title": "Item metadata definition", "type": "object" }, "values": { "additionalProperties": false, "properties": { "vlabel": { "description": "The custom name of the label coming from Authoring Tool", "type": "string" }, "vuri": { "description": "Identifier of the custom label", "type": "string" } }, "required": ["vlabel", "vuri"], "title": "Custom labels that belong to test or item metadata", "type": "object" }, "outcomeDeclaration": { "properties": { "identifier": { "description": "Outcome declaration identifier", "type": "string" }, "cardinality": { "description": "Outcome declaration cardinality", "nullable": true, "type": "string" }, "baseType": { "description": "Outcome declaration baseType", "nullable": true, "type": "string" }, "normalMinimum": { "description": "Outcome declaration normalMinimum", "nullable": true, "type": "string" }, "normalMaximum": { "description": "Outcome declaration normalMaximum", "nullable": true, "type": "string" }, "longInterpretation": { "description": "Outcome declaration longInterpretation", "nullable": true, "type": "string" }, "externalScored": { "description": "Outcome declaration externalScored", "nullable": true, "type": "string" } }, "required": [ "baseType", "cardinality", "externalScored", "identifier", "longInterpretation", "normalMaximum", "normalMinimum" ], "title": "Item metadata definition", "type": "object" }, "Results": { "additionalProperties": false, "properties": { "pageNumber": { "description": "Page Number requested.", "type": "integer" }, "totalRecords": { "description": "Total number of test taker results in that delivery.", "type": "integer" }, "Results": { "description": "List of delivery results for test takers.", "items": { "$ref": "#/components/schemas/Result" }, "type": "array" } }, "required": ["Results", "pageNumber", "totalRecords"], "title": "Bulk delivery results with pagination", "type": "object" }, "Result": { "additionalProperties": false, "properties": { "deliveryId": { "description": "The id of the delivery.", "type": "string" }, "batteryId": { "description": "The id of the battery.", "type": "string" }, "deliveryExecutionId": { "description": "The delivery execution id.", "type": "string" }, "testTakerId": { "description": "The id of the user who completed the test.", "type": "string" }, "maxScore": { "description": "Maximum scoring outcome defined on test creation for the given delivery, aggregation of the maximum score of each item.", "type": "number" }, "score": { "description": "Scoring outcome for the given delivery execution, aggregation of the score received on each item.", "type": "number" }, "thetaScore": { "description": "Score, representing the user's performance level.", "nullable": true, "type": "number" }, "startTime": { "description": "Marks the begging of the delivery execution.", "format": "date-time", "type": "string" }, "endTime": { "description": "Marks the finalization of the delivery execution. Could be determined either by succesfull delivery sumbition or force termination.", "format": "date-time", "type": "string" }, "ltiParameters": { "description": "LTI Parameters", "items": { "$ref": "#/components/schemas/ltiParameters" }, "type": "array" }, "outcomes": { "description": "List of outcomes for given item", "items": { "$ref": "#/components/schemas/itemOutcome" }, "type": "array" }, "itemsResults": { "description": "List of items and related information about scoring and responses on last attempt.", "items": { "$ref": "#/components/schemas/itemResultFull" }, "type": "array" } }, "required": [ "batteryId", "deliveryExecutionId", "deliveryId", "endTime", "ltiParameters", "maxScore", "outcomes", "score", "startTime", "testTakerId" ], "title": "Delivery Result", "type": "object" }, "deliveryResults": { "additionalProperties": false, "properties": { "pageNumber": { "description": "Page Number requested.", "type": "integer" }, "totalRecords": { "description": "Total number of test taker results in that delivery.", "type": "integer" }, "deliveryResults": { "description": "List of delivery results for test takers.", "items": { "$ref": "#/components/schemas/deliveryResult" }, "type": "array" } }, "required": ["deliveryResults", "pageNumber", "totalRecords"], "title": "Bulk delivery results with pagination", "type": "object" }, "deliveryResult": { "additionalProperties": false, "properties": { "deliveryExecutionId": { "description": "The delivery execution id.", "type": "string" }, "testTakerId": { "description": "The id of the user who completed the test.", "type": "string" }, "maxScore": { "description": "Maximum scoring outcome defined on test creation for the given delivery, aggregation of the maximum score of each item.", "type": "number" }, "score": { "description": "Scoring outcome for the given delivery execution, aggregation of the score received on each item.", "type": "number" }, "thetaScore": { "description": "Score, representing the user's performance level.", "nullable": true, "type": "number" }, "startTime": { "description": "Marks the begging of the delivery execution.", "format": "date-time", "type": "string" }, "endTime": { "description": "Marks the finalization of the delivery execution. Could be determined either by succesfull delivery sumbition or force termination.", "format": "date-time", "type": "string" }, "itemsResults": { "description": "List of items and related information about scoring and responses on last attempt.", "items": { "$ref": "#/components/schemas/itemResultPreview" }, "type": "array" }, "outcomes": { "description": "List of outcomes for given item", "items": { "$ref": "#/components/schemas/itemOutcome" }, "type": "array" } }, "required": [ "deliveryExecutionId", "endTime", "itemsResults", "maxScore", "score", "startTime", "testTakerId" ], "title": "Delivery Result", "type": "object" }, "itemResultPreview": { "properties": { "itemId": { "description": "Technical item identifier", "type": "string" }, "score": { "description": "Scoring outcome for the given item.", "type": "number" }, "maxScore": { "description": "Maximum Scoring outcome defined for the given item.", "type": "number" }, "completionStatus": { "$ref": "#/components/schemas/ItemCompletionStatus" }, "lastAttempt": { "$ref": "#/components/schemas/itemAttemptPreview" }, "fullResultLink": { "description": "Link to a full item result", "type": "string" } }, "required": ["completionStatus", "fullResultLink", "itemId", "lastAttempt", "maxScore", "score"], "title": "Base Item's Result", "type": "object" }, "itemResultFull": { "properties": { "itemId": { "description": "Technical item identifier", "type": "string" }, "score": { "description": "Scoring outcome for the given item.", "type": "number" }, "maxScore": { "description": "Maximum Scoring outcome defined for the given item.", "type": "number" }, "completionStatus": { "$ref": "#/components/schemas/ItemCompletionStatus" }, "numAttempts": { "description": "How many attempts where sumbitted for the given item.", "type": "integer" }, "itemPosition": { "description": "The absolute position of the item as was presented to the test taker during the delivery execution. Could vary based on shuffling settings and be different from the true position defined on the authoring tool.", "type": "number" }, "attempts": { "description": "List of attempts for given item", "items": { "$ref": "#/components/schemas/itemAttemptFull" }, "type": "array" } }, "required": [ "attempts", "completionStatus", "itemId", "itemPosition", "maxScore", "numAttempts", "score" ], "title": "Full Item's Result", "type": "object" }, "itemAttemptPreview": { "properties": { "startTime": { "description": "Marks the starting timestamp of the attempt", "format": "date-time", "nullable": true, "type": "string" }, "endTime": { "description": "Marks the end timestamp of the attempt, when attempt is sumbitted.", "format": "date-time", "nullable": true, "type": "string" }, "duration": { "description": "Total duration of the attempt.", "type": "string" }, "responses": { "description": "List of responses give on the given attempt.", "items": { "$ref": "#/components/schemas/response" }, "type": "array" } }, "required": ["duration", "endTime", "responses", "startTime"], "title": "Single attempt preview, used in test-results handler", "type": "object" }, "itemAttemptFull": { "properties": { "isLastAttempt": { "description": "Identifies the last attempt of the item", "type": "boolean" }, "startTime": { "description": "Marks the starting timestamp of the attempt", "format": "date-time", "nullable": true, "type": "string" }, "endTime": { "description": "Marks the end timestamp of the attempt, when attempt is sumbitted.", "format": "date-time", "nullable": true, "type": "string" }, "duration": { "description": "Total duration of the attempt.", "type": "string" }, "responses": { "description": "List of responses give on the given attempt.", "items": { "$ref": "#/components/schemas/response" }, "type": "array" }, "outcomes": { "description": "List of outcomes for given item", "items": { "$ref": "#/components/schemas/itemOutcome" }, "type": "array" } }, "required": ["duration", "endTime", "isLastAttempt", "outcomes", "responses", "startTime"], "title": "Single attempt full result, used in item-results handler", "type": "object" }, "entityListItem": { "properties": { "name": { "description": "Entity name", "type": "string" }, "description": { "description": "Entity description", "type": "string" } }, "required": ["name", "description"], "title": "Entity list item", "type": "object" }, "entityItem": { "properties": { "fieldName": { "description": "Field name", "type": "string" }, "fieldType": { "description": "Field type", "type": "string" }, "canAggregate": { "description": "Indicates if aggregation can be done", "type": "boolean" }, "canAccumulate": { "description": "Indicates if accumulation can be done", "type": "boolean" } }, "required": ["name", "description"], "title": "Entity list item", "type": "object" }, "entityItemDescription": { "properties": { "fieldName": { "description": "Field name", "type": "string" }, "fieldType": { "description": "Field type", "type": "string" }, "canAggregate": { "description": "Indicates if aggregation can be done", "type": "boolean" }, "canAccumulate": { "description": "Indicates if accumulation can be done", "type": "boolean" }, "description": { "description": "Field description", "type": "string" } }, "required": ["name", "description"], "title": "Entity list item", "type": "object" }, "itemOutcome": { "properties": { "identifier": { "description": "Outcome identifier", "type": "string" }, "value": { "description": "Outcome value", "type": "string" }, "cardinality": { "description": "Outcome cardinality", "nullable": true, "type": "string" }, "baseType": { "description": "Outcome baseType", "nullable": true, "type": "string" } }, "required": ["baseType", "cardinality", "identifier", "value"], "title": "Single outcome", "type": "object" }, "ItemCompletionStatus": { "description": "The status of the item in the given delivery. Describes wether the test taker attempted to provide response on the item, wether not or we don't have any information about it.", "enum": ["completed", "incomplete", "not_attempted", "unknown"], "type": "string" }, "deliveryExecutionsUploadResults": { "additionalProperties": false, "properties": { "pageNumber": { "description": "Page Number requested.", "type": "integer" }, "totalRecords": { "description": "Total number of upload results in that delivery.", "type": "integer" }, "deliveryExecutionsUploads": { "description": "List of upload results in that delivery.", "items": { "$ref": "#/components/schemas/deliveryExecutionsUploads" }, "type": "array" } }, "required": ["deliveryExecutionsUploads", "pageNumber", "totalRecords"], "title": "Bulk delivery execution upload results with pagination", "type": "object" }, "deliveryExecutionsUploads": { "description": "Information about single upload", "properties": { "testTakerId": { "description": "Id of a task taker", "type": "string" }, "docDownloadUrl": { "description": "Signed url of uploaded file", "nullable": true, "type": "string" }, "fileName": { "description": "Uploaded file name", "nullable": true, "type": "string" }, "assessmentItemRefId": { "description": "Assessement ref id of an item", "type": "string" }, "qtiIdentifier": { "description": "Qti identifier of an item", "type": "string" }, "responseId": { "description": "Response identifier", "type": "string" } }, "required": [ "assessmentItemRefId", "docDownloadUrl", "fileName", "qtiIdentifier", "responseId", "testTakerId" ], "type": "object" }, "response": { "additionalProperties": false, "properties": { "responseId": { "description": "Qti response identifier, as defined on authoring tool.", "type": "string" }, "responseType": { "type": "string" }, "responseValue": { "description": "Value of the repsonse.", "type": "string" }, "docDownloadUrl": { "description": "Signed url of uploaded file", "nullable": true, "type": "string" } }, "required": ["docDownloadUrl", "responseId", "responseType", "responseValue"], "title": "Response from test taker", "type": "object" }, "InitiateItemResponseExportRequest": { "type": "object", "required": ["deliveryExecutionId", "itemId"], "properties": { "deliveryExecutionId": { "type": "string", "description": "Delivery execution identifier." }, "itemId": { "type": "string", "description": "QTI item identifier." }, "options": { "$ref": "#/components/schemas/ItemResponseExportOptions" } } }, "FetchItemResponseExportRequest": { "type": "object", "required": ["taskId"], "properties": { "taskId": { "type": "string", "description": "Asynchronous export task identifier." } } }, "ItemResponseExportTaskAcceptedResponse": { "type": "object", "required": ["taskId"], "properties": { "taskId": { "type": "string", "description": "Asynchronous export task identifier." } } }, "ItemResponseExportAttachment": { "type": "object", "required": ["url", "type", "name"], "properties": { "url": { "type": "string", "description": "Signed URL to attachment." }, "type": { "type": "string", "description": "Attachment MIME type." }, "name": { "type": "string", "description": "Attachment file name." } } }, "ItemResponseExportItemBody": { "type": "object", "required": ["pdf"], "properties": { "pdf": { "type": "string", "nullable": true, "description": "Signed URL to exported item body PDF." } } }, "ItemResponseExportFetchResponse": { "type": "object", "required": ["status"], "properties": { "status": { "type": "string", "enum": ["In Progress", "Completed"] }, "itemBody": { "$ref": "#/components/schemas/ItemResponseExportItemBody" }, "attachments": { "type": "array", "items": { "$ref": "#/components/schemas/ItemResponseExportAttachment" } } } }, "ItemResponseExportOptions": { "type": "object", "description": "Additional export metadata returned by document conversion service options.", "properties": { "deliveryExecutionId": { "type": "string" }, "itemId": { "type": "string" } }, "additionalProperties": true }, "notFoundResponse": { "properties": { "message": { "type": "string", "x-nullable": false } }, "required": ["message"], "type": "object" }, "badRequestResponse": { "properties": { "message": { "type": "string", "x-nullable": false } }, "required": ["message"], "type": "object" }, "serverErrorResponse": { "properties": { "message": { "type": "string", "x-nullable": false } }, "required": ["message"], "type": "object" }, "principal": { "type": "string" } } } }