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
The "Quiz Submission - Submit" operation in the Lectful node allows users to submit answers for a quiz associated with a specific lecture. This is useful in educational workflows where quiz responses need to be programmatically sent to the Lectful platform for processing, grading, or record-keeping.
Typical use cases include:
- Automatically submitting quiz answers collected from external forms or systems.
- Integrating quiz completion data into broader learning management workflows.
- Triggering subsequent actions based on quiz submission results.
For example, after a user completes a quiz on an external site, their answers can be submitted via this node to update their progress in Lectful.
Properties
| Name | Meaning |
|---|---|
| Authentication Mode | Choose how to authenticate with the Lectful API: either using stored credentials or manual configuration by providing base URL and API key. |
| Credentials Note | Informational note shown when using Manual Configuration mode about leaving credential fields empty. |
| Base URL Override | Optional base URL to override the credential setting (without /api/v1), used only in Manual Configuration mode. |
| API Key Override | Optional API key to override the credential setting, used only in Manual Configuration mode. |
| Lecture ID | The ID of the quiz lecture for which the quiz answers are being submitted. |
| Answers (JSON) | The quiz answers formatted as a JSON object string. This should represent the user's responses to the quiz questions. |
Output
The node outputs a JSON object representing the response from the Lectful API after submitting the quiz answers. This typically includes confirmation of submission, any scoring or feedback data returned by the API, or error messages if the submission failed.
No binary data output is produced by this operation.
Example output structure (simplified):
{
"submissionId": "string",
"status": "submitted",
"score": 85,
"feedback": "Well done!",
...
}
The exact fields depend on the Lectful API's response format for quiz submissions.
Dependencies
- Requires access to the Lectful API endpoint.
- Authentication must be provided either via stored credentials configured in n8n or manually by specifying the base URL and API key.
- Proper permissions on the API key to submit quiz answers for the specified lecture.
Troubleshooting
- Missing or invalid credentials: If neither stored credentials nor manual overrides are correctly set, the node will throw an error indicating that valid credentials are required.
- Invalid Lecture ID: Submitting with an incorrect or non-existent lecture ID will likely result in an API error. Verify the lecture ID before submission.
- Malformed Answers JSON: The "Answers (JSON)" property must be a valid JSON string. Invalid JSON will cause parsing errors or API rejection.
- API Errors: Any HTTP errors or API-specific errors will be surfaced in the node's output. Check the error message for details.
- Manual Configuration Mode: When using manual mode, ensure both Base URL Override and API Key Override are provided; otherwise, the node will throw an error.
Links and References
- Lectful API Documentation (hypothetical link, replace with actual if available)
- n8n Documentation on Creating Custom Nodes
- JSON formatting guide for quiz answers (refer to Lectful API docs for expected schema)
This summary is based on static analysis of the node's source code and provided input properties, focusing specifically on the "Quiz Submission" resource and "Submit" operation.