Skip to content
Pasqal Documentation

Post Multiple Quizzes

POST
/api/v1/quizzes

Post multiple quizzes at the same time for 1 user.

Args: user: The auth info used to check permissions. quizzes: The quizzes to post.

Request Body required

ConsumedMultipleQuizzesRequest
object
data
required
Data
object
key
additional properties
Any of:
object

Responses

200

Successful Response

HeaderPaginatedResponse[ProducedQuizResponse]

A list of responses with pagination information.

For backwards compatibility, this also exposes pagination using the following header format:

Access-Control-Expose-Headers: Content-Range
Content-Range: $FIRST_ITEM_IN_BATCH-$LAST_ITEM_IN_BACH/$TOTAL_ITEMS_AVAILABLE
object
status
string
Allowed values: success fail error
message
Message
string
default: OK.
code
Code
string
default: 200
data
required
Data
Array<object>
ProducedQuizResponse

Schema of the quiz response when a call to POST / GET / PATCH is done. Represent the quiz submitted by user_id for the given strapi_quiz_id. It contains the quiz itself + the possible choices + the user response in the data field. The data field has no format specification for the moment.

object
user_id
required
User Id
string
strapi_quiz_id
required
Strapi Quiz Id
string
data
required
Data
object
id
required
Id
string format: uuid
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time
pagination
required
JSendPagination

Pagination information

object
total
required
Total
integer
start
required
Start
integer
end
required
End
integer

422

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string