The extendStudentCourseAccess mutation allows you to extend a student’s access to a course by updating the ended_at date. This is useful when you want to grant additional time for course completion.
Input Parameters
Field
Type
Description
userId
String!
ID of the student (User) whose access should be extended
courseId
String!
ID of the course to extend access for
extensionDays
Int
Number of days to extend the access from the current ended_at date
newEndedAt
Int
New expiration date (Unix Timestamp). Takes precedence over extension_days if both are provided
indefinite
Boolean
If true, removes the access end date, granting unlimited access. Takes precedence over all other time parameters
Return Fields
The updated enrollment with extended access(StudentCourseShip).
Field
Type
Description
id
String!
id of the enrollment
completionRate
Float
the completion rate of the enrolled course which student achieved
course
AdminCourse!
information of the enrolled course
user
AdminUser!
user information of the enrolled course
updatedAt
Int!
last updated date of the enrollment
createdAt
Int!
created date of the enrollment
endedAt
Int
expiration date for the enrollment (Unix Timestamp). Null if indefinite access is granted