Skip to content
Pasqal Documentation

Create

POST
/api/v1/quiz/{strapi_quiz_id}/me

Create a quiz matching the given strapi_quiz_id and user.

If the quiz already exists for the given user, a 400 error will be raised. In this case the user should use the PATCH method to updated their quiz response.

Args: data: The quiz to create. strapi_quiz_id: The id of the quiz in strapi. user: The auth info used to check permissions.

Parameters

Path Parameters

strapi_quiz_id
required
Strapi Quiz Id
string

Request Body required

ConsumedQuizRequest
object
data
required
Any of:
object

Responses

200

Successful Response

NonPaginatedResponse

Represents a response with either a list of items or a single item in a single page.

Generic Parameters: - A (TypeVar): The type bound to this class, which can be a single BaseModel, a list of BaseModels, or None.

Usage: - To respond with an unpaginated list of FooResponse items from an API endpoint, ensure that your function returns NonPaginatedResponse[List[FooResponse]].

- To respond with a single `FooResponse` item from an API endpoint,
  make sure that your function returns `NonPaginatedResponse[FooResponse]`
  and that Python recognizes it.
object
data
Any of:
Array<object>
BaseModel
object

422

Validation Error

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