canvas_enroll_user
Enroll a user in a Canvas course by specifying course ID, user ID, role, and enrollment state using the MCP server for Canvas API interactions.
Instructions
Enroll a user in a course
Input Schema
Name | Required | Description | Default |
---|---|---|---|
course_id | Yes | ID of the course | |
enrollment_state | No | State of the enrollment (active, invited, etc.) | |
role | No | Role for the enrollment (StudentEnrollment, TeacherEnrollment, etc.) | |
user_id | Yes | ID of the user to enroll |
Input Schema (JSON Schema)
{
"properties": {
"course_id": {
"description": "ID of the course",
"type": "number"
},
"enrollment_state": {
"description": "State of the enrollment (active, invited, etc.)",
"type": "string"
},
"role": {
"description": "Role for the enrollment (StudentEnrollment, TeacherEnrollment, etc.)",
"type": "string"
},
"user_id": {
"description": "ID of the user to enroll",
"type": "number"
}
},
"required": [
"course_id",
"user_id"
],
"type": "object"
}