Actions88
- Blog Actions
- Get All Posts (Admin)
- Get Post (Admin)
- Create Post (Admin)
- Update Post (Admin)
- Delete Post (Admin)
- Get Categories (Admin)
- Get Category (Admin)
- Create Category (Admin)
- Update Category (Admin)
- Delete Category (Admin)
- Get Tags (Admin)
- Get Tag (Admin)
- Create Tag (Admin)
- Update Tag (Admin)
- Delete Tag (Admin)
- Get Authors (Admin)
- Get All Posts (Public)
- Get Post (Public)
- Get Categories (Public)
- Get Tags (Public)
- Get Posts by Category (Public)
- Get Posts by Tag (Public)
- Section Actions
- AI Resource Actions
- Authentication Actions
- User Actions
- Course Actions
- Lecture Actions
- Enrollment Actions
- Learning Path Actions
- Assignment Actions
- Progress Actions
- Video Actions
- Article Actions
- Quiz Question Actions
- Quiz Choice Actions
- Quiz Submission Actions
- Image Actions
Overview
This node integrates with the Lectful API to manage enrollments among many other resources. Specifically, the Enrollment - Create operation allows you to create a new enrollment for a user into a specified course, learning path, or live event.
Typical use cases include:
- Automatically enrolling users into courses or learning paths after registration.
- Managing user access to live events by programmatically creating enrollments.
- Integrating enrollment workflows within broader automation pipelines in n8n.
For example, after a user signs up on your platform, you can use this node to enroll them into a specific course automatically without manual intervention.
Properties
| Name | Meaning |
|---|---|
| Authentication Mode | Choose how to authenticate with the Lectful API: - Use Stored Credentials - Manual Configuration (provide base URL and API key manually) |
| Credentials Note | Notice shown when using Manual Configuration mode explaining credential overrides |
| Base URL Override | Optional base URL to override the stored credential's base URL (without /api/v1) |
| API Key Override | Optional API key to override the stored credential's API key |
| Enrollable Type | Type of enrollment: - Course - Learning Path - Live Event |
| Enrollable ID | ID of the course, learning path, or live event to enroll the user into |
| User ID | ID of the user to enroll |
Output
The node outputs an array of JSON objects corresponding to each input item processed. For the Enrollment Create operation, the output JSON contains the response from the Lectful API representing the newly created enrollment resource. This typically includes details such as enrollment ID, user ID, enrollable type and ID, status, timestamps, and any other metadata returned by the API.
No binary data is produced by this operation.
Dependencies
- Requires access to the Lectful API.
- Authentication can be provided either via stored credentials configured in n8n or manually by specifying the base URL and API key.
- The node expects the API to be reachable at the base URL ending with
/api/v1. - Proper API key or token with permissions to create enrollments is necessary.
Troubleshooting
- Missing or invalid credentials: If neither stored credentials nor manual configuration parameters are properly set, the node will throw errors indicating missing base URL or API key.
- Invalid Enrollable Type or ID: Providing incorrect or non-existent IDs for courses, learning paths, or live events will result in API errors.
- User ID issues: Ensure the user ID exists and is valid in the Lectful system; otherwise, enrollment creation will fail.
- API connectivity problems: Network issues or incorrect base URLs will cause request failures.
- Error messages: The node surfaces error messages from the Lectful API. Common errors relate to authentication failure, invalid parameters, or permission issues. Review the error message and verify credentials and input parameters accordingly.
Links and References
- Lectful API Documentation (general reference for API endpoints and payloads)
- n8n documentation on Creating Custom Nodes
- Best practices for API Authentication
If you need details on other operations or resources, feel free to ask!