LearnDash icon

LearnDash

Interact with the LearnDash LMS REST API

Actions60

Course Users → Add

AI-generated

Summary

Add users to a specified LearnDash course by providing the course's Parent ID and a list of user IDs to enroll.

Inputs

  • Parent ID (required) — The ID of the parent resource, specifically the course ID to which users will be added.
  • Item IDs (required) — A collection of user IDs representing the users to be added to the course.

Output shape

a list of JSON objects representing the API response for each added user.

The operation returns the API response wrapped in a JSON array. Multiple users can be added in a single execution by specifying multiple IDs. Errors in JSON parameters will be surfaced as workflow errors.

Examples

Example 1: Add multiple users to a course

Set Parent ID to the specific course ID, and provide multiple user IDs in the Item IDs list.

Discussion