Skip to main content
POST

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

The XML string to validate along with its schema type

Validate one QTI XML document, sent inline as xml or named by entityId (which wins when both are sent), against the QTI 3.0.1 schema for schema.

schema
enum<string>
required

Which QTI schema to validate against: 'test', 'item' or 'stimulus'.

Available options:
test,
item,
stimulus
xml
string

The XML string to validate.

entityId
string

The identifier of a stored document whose rawXml to validate.

Response

Successfully validated XML

success
boolean
required

Whether the document is valid.

entityId
string
required

The entity ID of the XML string that was validated. If no entityId is provided, a random identifier will be generated.

message
string
required

A message describing the validation process. If the validation was successful this will read 'Valid XML' else it will contain details on the error message.

xmlContent
string

The XML string that was validated. If no xml is provided, the xml string will be the rawXml string that exists in the database.

validationErrors
string[]

An array of validation errors that occurred during the validation process. If no validation errors occurred, this will be an empty array.