create_enrollment
Enroll users in courses by specifying course and user IDs, with options to set activation and expiry dates for access management.
Instructions
Enroll a user in a course.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"course_id": "<course_id>",
"user_id": "<user_id>"
},
"name": "create_enrollment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| course_id | Yes | Course ID to enroll the user in | |
| user_id | Yes | User ID to enroll | |
| activated_at | No | Activation date (ISO 8601). Defaults to now. | |
| expiry_date | No | Expiry date (ISO 8601). Optional. |