Questions
This endpoint manages quiz questions within the assessment system.
Overview
The Questions API allows you to create, update, and manage individual questions that make up quizzes. Questions are the building blocks of assessments and can be configured with various formats, difficulty levels, and scoring mechanisms.
Question Types
The system supports multiple question formats to accommodate different assessment needs:
- Multiple Choice: Questions with predefined answer options
- Free Text: Questions requiring written responses
- True/False: Binary choice questions
- Matching: Questions requiring matching items from two lists
- Ranking: Questions requiring ordering of items
Key Features
- Create and manage questions with rich formatting
- Associate questions with specific quizzes
- Configure scoring and difficulty parameters
- Include multimedia instructions (images, markdown text)
- Set time limits for individual questions
File Attachments
Questions can include instruction files in markdown format to provide additional context, examples, or detailed instructions for candidates.
Endpoints
- get /api/v3/quiz/questions
- post /api/v3/quiz/questions
- delete /api/v3/quiz/questions/:resource_id
- get /api/v3/quiz/questions/:resource_id
- patch /api/v3/quiz/questions/:resource_id
get/api/v3/quiz/questions
Return a paginated list of quiz/questions
Input Schema
Typescript
object
page?:
object
The page number, default to 1
number?: integer
The number of items per page, default to 1000
size?: integer
The sort order, comma separated list of fields. See sorting section for more details
sort?: string
Set to true to return the total number of items in the collection
count?: boolean
filter?:
object
id?: unknown
instruction_md?: unknown
question_type?: unknown
question_args?: unknown
quiz_id?: unknown
question_safe_args?: unknown
question_score?: unknown
order?: unknown
The fields to include in the response.
The key is the resource type and the value is an array of fields.
fields?: The key is the resource type and the value is an array of fields.
dictionary
Values: array
Output Schema
Typescript
object
data:
array
Elements:
object
type: string
id?: string
attributes?:
object
id?: integer
instruction_md?: string
question_type?: string
question_args?: open struct
question_safe_args?: open struct
question_score?: open struct
order?: integer
relationships?: open struct
included?:
array
Elements: open struct
post/api/v3/quiz/questions
Create a new quiz/questions
Input Schema
Typescript
object
data:
object
type: string
attributes:
object
id?: integer
instruction_md?: string
question_type?: string
question_args?: open struct
question_safe_args?: open struct
question_score?: open struct
order?: integer
relationships?:
object
quiz:
object
data:
object
type: string
id?: string
delete/api/v3/quiz/questions/:resource_id
Delete the quiz/questions
Input Schema
Typescript
object
resource_id: integer
get/api/v3/quiz/questions/:resource_id
Show a specific quiz/questions
Input Schema
Typescript
object
resource_id: integer
included?:
array
Elements: string
fields?:
dictionary
Values: array
Output Schema
Typescript
object
data:
object
type: string
id?: string
attributes?:
object
id?: integer
instruction_md?: string
question_type?: string
question_args?: open struct
question_safe_args?: open struct
question_score?: open struct
order?: integer
relationships?: open struct
included?:
array
Elements: open struct
patch/api/v3/quiz/questions/:resource_id
Update a quiz/questions
Input Schema
Typescript
object
resource_id: integer
data:
object
type: string
attributes:
object
id?: integer
instruction_md?: string
question_type?: string
question_args?: open struct
question_safe_args?: open struct
question_score?: open struct
order?: integer