LearnDash icon

LearnDash

Interact with the LearnDash LMS REST API

Actions60

Group Leaders → Add

AI-generated

Summary

Adds one or more users as leaders to a LearnDash group. Provide the group ID in Parent ID and the user IDs in Item IDs; the node POSTs to /wp-json/ldlms/v2/groups/{parentId}/leaders with a body containing user_ids, then returns the API response as an array of JSON items.

Inputs

  • Parent ID (required) — The ID of the group to add leaders to. Required.
  • Item IDs — One or more numeric user IDs to add as group leaders. Add multiple entries to add multiple leaders.

Output shape

Array of JSON objects from the API response

Returns the LearnDash API response as JSON array items.

Discussion