Lectful icon

Lectful

Interact with the VIPay Lectful API

Overview

This node integrates with the Lectful API to manage online course-related data. Specifically, the Course - Delete operation allows users to delete a course by its ID. This is useful for administrators or content managers who want to remove outdated or unwanted courses from their platform.

Typical use cases include:

  • Cleaning up courses that are no longer relevant.
  • Removing test or draft courses before publishing.
  • Automating course lifecycle management in workflows.

Example: Automatically deleting a course after it has been archived or replaced by a newer version.

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 Informational note shown when using Manual Configuration mode explaining credential usage.
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.
Course ID The unique identifier of the course to delete (required).

Output

The output is a JSON object representing the API response from the Lectful server after attempting to delete the specified course. Typically, this will be an empty object or a confirmation message indicating successful deletion. If an error occurs, the output may contain error details.

No binary data is returned by this operation.

Example output JSON:

{}

or on error:

{
  "error": "Course not found"
}

Dependencies

  • Requires access to the Lectful API.
  • Requires either stored credentials configured in n8n or manual entry of the Lectful API base URL and API key.
  • The API key must have sufficient permissions to delete courses.
  • No additional external dependencies beyond HTTP requests to the Lectful API.

Troubleshooting

  • Missing or invalid credentials:
    Error message: "Valid credentials are required..."
    Solution: Ensure you have configured valid API credentials in n8n or provide correct manual configuration parameters.

  • Missing Course ID:
    The Course ID property is required. Omitting it will cause an error.

  • Course not found or already deleted:
    The API may return an error if the course ID does not exist. Verify the course ID is correct.

  • Insufficient permissions:
    The API key used might lack permission to delete courses. Check API key scopes and permissions.

  • Base URL or API key missing in manual mode:
    When using manual authentication mode, both Base URL Override and API Key Override must be provided.

Links and References

  • Lectful API Documentation (Assumed official API docs URL, replace with actual if known)
  • n8n documentation on HTTP Request Node for understanding API calls.
  • General best practices for API authentication and error handling in n8n workflows.

Discussion