Cancel enrollments
Cancel the enrollments you list, the same as on the course's Enrollments tab.
MCP tool ispring_write → cancel_enrollment
write Confirm
Cancels each enrollment_id from list_enrollments and returns the ones that were cancelled. Department Administrators can cancel only enrollments of users in their departments. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| enrollment_ids string[] required | string[] | Enrollments from list_enrollments. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ispring_write",
"arguments": {
"operation": "cancel_enrollment",
"arguments": {
"enrollment_ids": [
"enrollment ids"
]
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"cancelled": 1,
"enrollment_ids": [
"e_70a0f1"
]
},
"isError": false
}