View as Markdown
iSpring Learn icon

iSpring Learn ACTION

Enroll Users in Courses

Enrolls users to the specified courses on iSpring Learn.
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's iSpring Learn account once, then configure and run Enroll Users in Courses from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "ispring_learn-enroll-users-in-courses",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    ispring_learn: { authProvisionId: "apn_xxxxxxx" },
    userIds: ["User ID"],
    courseIds: ["Course ID"],
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Enroll Users in Courses inputs
Property Type Description
userIds User ID string[]
The ID of the user.
Required Dynamic
courseIds Course ID string[]
The ID of the course.
Required Dynamic
accessDate Access Date string
The date and time when learners are supposed to start studying the course. If the start date and time aren't indicated, the current date and time will be auto-populated.
Optional
lockAfterDueDate Lock After Due Date boolean
This parameter indicates whether the course will be blocked after the due date.
Optional
dueDateType Due Date Type string
This parameter indicates whether the course has a due date or it isn't time-limited.
Required

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
ispring_learn-enroll-users-in-courses
Version
0.0.2
App
iSpring Learn
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes