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. writeAuth methods:
OAuthPrivate IntegrationToken type:
Sub-Account TokenRequest
Headers
Versionstringrequired
API Version
Available options
v3Example:
v3Path Parameters
productIdstring<uuid>required
Product id
Possible values: non-empty
Example:
a1b2c3d4-e5f6-7890-abcd-ef1234567890lessonIdstring<uuid>required
Lesson id
Possible values: non-empty
Example:
c3d4e5f6-7890-4123-cdef-123456789012Query Parameters
locationIdstringrequired
Location id or sub-account id is required.
Possible values: non-empty
Example:
ve9EPM428h8vShlRW1KTBody
titlestringrequired
Assignment title
Example:
Submit homeworkintroductionstring
Introduction shown to the learner
confirmMessagestring
Message shown after submit
ungradedAssignmentboolean
Skip grading when true
Response
Created
idstringrequired
Example:
e5f6a7b8-9012-4345-ef01-345678901234titlestringrequired
Example:
Submit homeworklessonIdstringrequired
Example:
c3d4e5f6-7890-4123-cdef-123456789012introductionstringrequired
confirmMessagestringrequired
ungradedAssignmentbooleanrequired