Decline enrollment requests

Decline pending course enrollment requests, one or many.

MCP tool absorb_lms_write → decline_enrollment_requests

write Confirm

Declines the listed requests as the Decline action of the Course Approvals report does. Absorb sends the learner its Approval Denied message. Requests handled meanwhile are skipped and listed. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: decline_enrollment_requests
NameTypeDescription
request_ids array required array request_id values from list_course_approvals.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "absorb_lms_write",
    "arguments": {
      "operation": "decline_enrollment_requests",
      "arguments": {
        "request_ids": "request ids"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "declined": [
      {
        "request_id": "c63b0e4f-8029-4db5-8f37-5e901c4d7b23",
        "learner": "Chen Wei",
        "course": "Data Privacy Essentials"
      }
    ],
    "skipped": []
  },
  "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.