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

Parameters: cancel_enrollment
NameTypeDescription
enrollment_ids string[] required string[] Enrollments from list_enrollments.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ispring_write",
    "arguments": {
      "operation": "cancel_enrollment",
      "arguments": {
        "enrollment_ids": [
          "enrollment ids"
        ]
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "cancelled": 1,
    "enrollment_ids": [
      "e_70a0f1"
    ]
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.