Skip to main content
AssignmentVersion: v3New

Create Lesson Assignment

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

Create an assignment 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

Assignment title

Example:Submit homework
introductionstring

Introduction shown to the learner

confirmMessagestring

Message shown after submit

ungradedAssignmentboolean

Skip grading when true

Response

Created

idstringrequired
Example:e5f6a7b8-9012-4345-ef01-345678901234
titlestringrequired
Example:Submit homework
lessonIdstringrequired
Example:c3d4e5f6-7890-4123-cdef-123456789012
introductionstringrequired
confirmMessagestringrequired
ungradedAssignmentbooleanrequired