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 interacts with the Lectful API to manage enrollments and other educational resources. Specifically, for the Enrollment - Delete operation, it deletes an enrollment record identified by its ID. This is useful in scenarios where you need to programmatically remove a user's enrollment from a course, learning path, or live event within an automated workflow.
Practical examples:
- Automatically unenroll users who have completed a course or whose subscription expired.
- Clean up test enrollments created during development or QA.
- Integrate with external systems to synchronize enrollment status by deleting outdated enrollments.
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 that credentials can be left empty and overrides used instead. |
| 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. |
| Enrollment ID | The unique identifier of the enrollment to delete. This is required for the delete operation. |
Output
The output is a JSON object representing the API response from the Lectful server after attempting to delete the enrollment. Typically, this will include confirmation of deletion or error details if the operation failed.
No binary data is output by this operation.
Example output structure (conceptual):
{
"message": "Enrollment deleted successfully",
"id": "enrollment-id"
}
Or on failure:
{
"error": "Enrollment not found"
}
Dependencies
- Requires access to the Lectful API.
- Requires either stored credentials configured in n8n or manual entry of Base URL and API key.
- The API key must have permissions to delete enrollments.
- No additional external dependencies beyond HTTP requests to the Lectful API.
Troubleshooting
Missing or invalid credentials:
Error: "Valid credentials are required..."
Solution: Ensure you have configured valid API credentials in n8n or provide correct manual Base URL and API key.Missing Enrollment ID:
Error: "Enrollment ID is required" (implied by required property)
Solution: Provide a valid enrollment ID to delete.Enrollment not found or already deleted:
The API may return an error if the enrollment ID does not exist.
Solution: Verify the enrollment ID is correct and exists before attempting deletion.API connectivity issues:
Network errors or incorrect Base URL can cause failures.
Solution: Check network connectivity and confirm the Base URL is correct.Insufficient permissions:
If the API key lacks delete permissions, the request will fail.
Solution: Use an API key with appropriate permissions.
Links and References
- Lectful API Documentation (Assumed URL, replace with actual if known)
- n8n Documentation on HTTP Request Node (for understanding API calls)