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
This node integrates with the Lectful API to manage blog posts in an administrative context. Specifically, the Update Post (Admin) operation allows users to update existing blog posts by specifying various attributes such as title, content, excerpt, SEO metadata, status, categories, tags, publication date, author, and featured image.
Typical use cases include:
- Automating updates to blog content from external systems.
- Managing blog post metadata for SEO purposes programmatically.
- Changing the publication status or scheduling posts.
- Associating posts with categories, tags, authors, and images dynamically.
For example, a marketing automation workflow could update blog posts with new content and metadata based on campaign data or editorial calendar changes.
Properties
| Name | Meaning |
|---|---|
| Authentication Mode | Choose how to authenticate with the Lectful API: "Use Stored Credentials" or "Manual Configuration". |
| Base URL Override | (Manual mode) Optional base URL to override the credential setting (without /api/v1). |
| API Key Override | (Manual mode) Optional API key to override the credential setting. |
| Post ID | The unique identifier of the blog post to update (required). |
| Title | New title of the blog post. |
| Content | New content/body of the blog post. |
| Excerpt | New excerpt/summary of the blog post. |
| Meta Title | New meta title for SEO purposes. |
| Meta Description | New meta description for SEO purposes. |
| Status | Status of the blog post; options are "Draft" or "Published". |
| Category IDs | Comma-separated list of category IDs to associate with the post. |
| Tag IDs | Comma-separated list of tag IDs to associate with the post. |
| Published At | Date and time when the post should be published. |
| Author ID | ID of the author user to assign to the post. |
| Image ID | ID of the featured image for the post. |
Output
The node outputs an array of JSON objects representing the API response for each input item processed. For the Update Post (Admin) operation, the output JSON contains the updated blog post details as returned by the Lectful API after a successful update request.
The structure typically includes fields like:
id: Blog post IDtitle,content,excerptmeta_title,meta_descriptionstatuscategory_ids,tag_idspublished_atauthor_idimage_id- Other metadata related to the blog post
No binary data is output by this operation.
Dependencies
- Requires access to the Lectful API.
- Authentication can be provided either via stored credentials configured in n8n or manually by specifying the base URL and API key.
- The node expects the Lectful API to be reachable at the specified base URL with valid authentication tokens.
- No additional external dependencies beyond HTTP requests to the Lectful API.
Troubleshooting
- Missing or invalid credentials: If using stored credentials, ensure they are correctly configured with a valid base URL and API key. If using manual mode, both Base URL Override and API Key Override must be provided.
- Invalid Post ID: The Post ID must correspond to an existing blog post; otherwise, the API will return an error.
- Malformed category or tag IDs: Category and tag IDs must be comma-separated integers. Invalid formatting may cause API errors.
- API errors: The node logs detailed messages about the API request and response. Common HTTP errors like 401 Unauthorized or 404 Not Found indicate authentication issues or missing resources.
- Empty required fields: While most update fields are optional, the Post ID is mandatory. Omitting it will cause the node to throw an error.
- Continue on Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error details in the output JSON.
Links and References
- Lectful API Documentation (Assumed official API docs)
- n8n Documentation on HTTP Request Node (for understanding API calls)
- General REST API best practices for updating resources
This summary is based solely on static analysis of the provided source code and property definitions.