Skip to main content
QuizVersion: v3New

Create Lesson Quiz

POST/courses/products/{productId}/lessons/{lessonId}/quiz

Create a quiz on a lesson. Requires a Location token with courses.write. Send Version: v3. Path lessonId is sent to membership as postId. locationId, userId, and productId are not accepted in the body.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:courses.write
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version

Available optionsv3
Example:v3

Path Parameters

productIdstring<uuid>required

Product id

Possible values: non-empty

Example:a1b2c3d4-e5f6-7890-abcd-ef1234567890
lessonIdstring<uuid>required

Lesson id

Possible values: non-empty

Example:c3d4e5f6-7890-4123-cdef-123456789012

Query Parameters

locationIdstringrequired

Location id or sub-account id is required.

Possible values: non-empty

Example:ve9EPM428h8vShlRW1KT

Body

titlestringrequired

Quiz title

Example:Lesson quiz
requiredPassingGradeboolean

Require a passing grade

passingGradenumber

Passing grade percent 0-100

passMessagestring

Message shown on pass

failMessagestring

Message shown on fail

Response

Created

idstringrequired
Example:d4e5f6a7-8901-4234-def0-234567890123
titlestringrequired
Example:Lesson quiz
lessonIdstringrequired
Example:c3d4e5f6-7890-4123-cdef-123456789012
requiredPassingGradebooleanrequired
passingGradenumberrequired
passMessagestringrequired
failMessagestringrequired