Lectful Central icon

Lectful Central

Interact with the Lectful Central API for admin operations

Overview

The "Update Blog Post" operation in the Lectful Central node allows users to modify an existing blog post by specifying its ID and providing updated values for the title, slug, and content. This operation is useful for maintaining and managing blog content dynamically within automated workflows.

Typical use cases include:

  • Automatically updating blog posts with new information or corrections.
  • Integrating content management systems with external data sources to keep blog content synchronized.
  • Scheduling updates to blog posts as part of a content publishing pipeline.

For example, you might use this node to update a blog post's title and content after receiving new data from another system or user input.

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 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 (exclude /api/v1).
API Key Override Optional API key to override the stored credential's API key.
Blog Post ID The unique numeric identifier of the blog post to update (required).
Title The updated title of the blog post (optional; if omitted, the title remains unchanged).
Slug The updated slug (URL-friendly string) of the blog post (optional).
Content The updated content/body of the blog post (optional).

Output

The node outputs an array of JSON objects corresponding to each input item processed. For the "Update Blog Post" operation, the output JSON contains the response from the Lectful Central API after updating the blog post. This typically includes the updated blog post details such as its ID, title, slug, content, timestamps, and any other metadata returned by the API.

No binary data output is produced by this operation.

Example output JSON structure (simplified):

{
  "id": 123,
  "title": "Updated Blog Title",
  "slug": "updated-blog-slug",
  "content": "Updated content of the blog post.",
  "created_at": "2023-01-01T12:00:00Z",
  "updated_at": "2023-02-01T15:30:00Z"
}

Dependencies

  • Requires access to the Lectful Central API.
  • Authentication can be provided either via stored credentials configured in n8n or manual entry of the base URL and API key.
  • The node expects the API to be reachable at the specified base URL with valid authentication tokens.
  • No additional external dependencies are required beyond HTTP connectivity.

Troubleshooting

  • Missing or invalid credentials: If neither stored credentials nor manual overrides are properly set, the node will throw an error indicating that valid credentials are required. Ensure that either stored credentials are configured correctly or manual base URL and API key are provided.
  • Invalid Blog Post ID: Providing a non-existent or incorrect blog post ID will likely result in an API error. Verify the blog post ID before running the node.
  • Empty update fields: If all update fields (title, slug, content) are left empty, the node sends an empty update object. While this may not cause an error, it results in no changes. Provide at least one field to update.
  • API errors: Any API-level errors (e.g., permission denied, malformed request) will be surfaced as error messages. Review the API response and ensure the request parameters are correct.
  • JSON parsing issues: Not applicable here since inputs are simple strings/numbers, but ensure no invalid characters are used in text fields.

Links and References


This summary focuses specifically on the "Blog Management" resource and the "Update Blog Post" operation as requested.

Discussion