Enroll a user in a product
learnworlds_enroll_userWRITE: manually enroll a user in a course, bundle or subscription. This grants access and records a manual enrollment at the given price (use 0 for a free grant) — it does not charge the learner's card. Optionally emails the learner. LearnWorlds: POST /v2/users/{id}/enrollment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | Yes | The user's id, or their email address. | |
| price | Yes | Price recorded for this enrollment; 0 for a free grant. | |
| duration | No | Subscriptions only: how many duration_type units. | |
| product_id | Yes | The product id (for a course, its slug). | |
| product_type | Yes | ||
| duration_type | No | Subscriptions only. | |
| justification | No | A note, e.g. "Added by admin". | |
| send_enrollment_email | No | Send the enrollment email to the learner. |