Lectful icon

Lectful

Interact with the VIPay Lectful API

Overview

The node integrates with the Lectful API to manage online course content and related resources. Specifically, the Course - Update operation allows users to update details of an existing course such as its title, subtitle, and description. This is useful for maintaining up-to-date course information in an educational platform or LMS (Learning Management System).

Typical use cases include:

  • Updating course metadata after content revisions.
  • Correcting typos or improving course descriptions.
  • Changing course titles or subtitles to reflect new branding or focus.

Example: A course titled "Intro to JavaScript" can be updated to "JavaScript Fundamentals" with a more detailed description using this node.

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 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 update (required)
Title New title for the course (optional)
Subtitle New subtitle for the course (optional)
Description New description for the course (optional, multiline text)

Output

The node outputs the JSON response from the Lectful API after updating the course. This typically includes the updated course object with fields such as id, title, subtitle, description, and other metadata returned by the API.

No binary data output is involved in this operation.

Example output structure (simplified):

{
  "id": "course-id",
  "title": "Updated Course Title",
  "subtitle": "Updated Subtitle",
  "description": "Updated course description",
  ...
}

Dependencies

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

Troubleshooting

  • Missing or invalid credentials: If neither stored credentials nor manual overrides are provided correctly, the node will throw an error indicating missing authentication details.
  • Invalid Course ID: Providing a non-existent or incorrect course ID will result in an API error; verify the course ID before running the node.
  • Empty update fields: If no title, subtitle, or description is provided, the API may reject the request or make no changes; ensure at least one field to update is specified.
  • API errors: Any HTTP errors from the Lectful API (e.g., 401 Unauthorized, 404 Not Found) will be surfaced by the node. Check API key validity and resource existence.

Links and References

  • Lectful API Documentation (hypothetical link, replace with actual if available)
  • n8n documentation on HTTP Request Node for understanding API calls
  • General best practices for managing API credentials securely in n8n workflows

Discussion