Enroll users

Enroll learners on published courses by email, pending learners included.

MCP tool learnupon_write → enroll_users

write Confirm

Enrolls each email address on each course. A pending learner can be enrolled, so the course is ready when they accept. Draft courses fail and are listed in the result. re_enroll_completed adds learners to a course they already finished. LearnUpon notifies learners on enrollment. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: enroll_users
NameTypeDescription
emails array required array Learner email addresses.
course_ids array required array Course ids from list_courses.
re_enroll_completed boolean boolean Enroll again on courses already completed. Default: false.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "learnupon_write",
    "arguments": {
      "operation": "enroll_users",
      "arguments": {
        "emails": [
          "maria.nowak@example.com",
          "tom.reyes@example.com"
        ],
        "course_ids": [
          "10240"
        ]
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "enrolled": 2,
    "course_ids": [
      "10240"
    ],
    "failed": []
  },
  "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.