Lectful Central icon

Lectful Central

Interact with the Lectful Central API for admin operations

Overview

This node interacts with the Lectful Central API to perform administrative operations. Specifically, for the Image Management resource and the Upload Image operation, it uploads an image file to the central system. This is useful in scenarios where you need to programmatically add images (JPEG, PNG, JPG, GIF formats up to 10MB) to a centralized repository or CMS managed by Lectful Central.

Practical examples include:

  • Automating image uploads as part of content publishing workflows.
  • Integrating image management into form submissions or other data collection processes.
  • Bulk uploading images from external sources or other systems into Lectful Central.

Properties

Name Meaning
Authentication Mode Choose how to authenticate with the Lectful Central API:
- Use Stored Credentials
- Manual Configuration (provide base URL and API key manually)
Credentials Note Notice shown when using Manual Configuration mode explaining credential overrides.
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.
Image File The image file to upload. Supported formats: JPEG, PNG, JPG, GIF. Maximum size: 10MB.
Form Identifier Optional identifier for the form submission associated with the image upload.

Output

The node outputs the JSON response returned by the Lectful Central API after uploading the image. This typically includes metadata about the uploaded image such as its ID, URL, status, and any other relevant information provided by the API.

If the API returns binary data (not indicated here), it would represent the uploaded image or related files, but this node primarily handles JSON responses.

Dependencies

  • Requires access to the Lectful Central API.
  • Requires either stored credentials configured in n8n or manual entry of the base URL and API key.
  • The API key must have permissions to upload images via the Lectful Central admin API.
  • No additional external libraries are required beyond standard HTTP request helpers provided by n8n.

Troubleshooting

  • Missing or invalid credentials:
    If neither stored credentials nor manual configuration parameters are properly set, the node will throw errors indicating missing base URL or API key. Ensure credentials are correctly configured or manual values are provided.

  • Invalid image file:
    The image file must be one of the supported formats and not exceed 10MB. Uploading unsupported formats or oversized files may cause API errors.

  • API errors:
    Errors returned by the Lectful Central API (e.g., authentication failures, permission issues, malformed requests) will be surfaced in the node output. Check the error message for details.

  • JSON parsing errors:
    Although unlikely for this operation, if the API returns unexpected string responses, the node attempts to parse them as JSON. Failures here indicate unexpected API behavior.

Links and References

Discussion