Lectful icon

Lectful

Interact with the VIPay Lectful API

Overview

This node interacts with the Lectful API to manage quiz choices among many other resources. Specifically, for the Quiz Choice - Delete operation, it deletes a quiz choice identified by its unique ID from the Lectful platform.

Typical use cases include:

  • Removing outdated or incorrect answer choices from quizzes.
  • Cleaning up quiz data programmatically as part of course content updates.
  • Automating quiz management workflows where choices need to be dynamically removed based on external triggers.

Example: If you have a quiz question with multiple answer choices and want to delete one specific choice (e.g., an incorrect or deprecated option), this node operation will send a request to the Lectful API to remove that choice by its ID.

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 about 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.
Choice ID The unique identifier of the quiz choice to delete. This is required for the delete operation.

Output

The output is a JSON object representing the response from the Lectful API after attempting to delete the quiz choice. Typically, this will confirm successful deletion or provide error details if the operation failed.

The structure generally includes status information and any relevant messages returned by the API. No binary data is involved in this operation.

Example output JSON might look like:

{
  "message": "Quiz choice deleted successfully",
  "id": "12345"
}

or in case of error:

{
  "error": "Choice 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 node uses HTTP requests with Bearer token authentication to communicate with the Lectful API endpoints.

Troubleshooting

  • Missing or invalid credentials:
    Error message: "Valid credentials are required..."
    Solution: Ensure that either stored credentials are properly configured with a valid base URL and API key, or that manual configuration parameters are correctly provided.

  • Missing Choice ID:
    Error message: Likely a validation error indicating the choice ID is required.
    Solution: Provide the correct quiz choice ID to delete.

  • API errors such as "Choice not found" or permission denied:
    Solution: Verify the choice ID exists and that the API key has sufficient permissions to delete quiz choices.

  • Network or connectivity issues:
    Solution: Check network connection and Lectful API availability.

Links and References


This summary focuses solely on the Quiz Choice resource and the Delete operation as requested.

Discussion