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, enabling automation of various administrative and content management tasks related to an online learning platform. Specifically, for the Blog resource and the Update Tag (Admin) operation, it allows updating the details of an existing blog tag by its ID. This is useful for managing blog metadata such as tag names in an automated workflow.
Common scenarios include:
- Automatically renaming or correcting blog tags based on external data.
- Synchronizing blog tags from another system.
- Managing blog taxonomy programmatically without manual intervention.
Example: You have a list of updated tag names in a spreadsheet and want to update corresponding tags in your Lectful-powered blog automatically via n8n.
Properties
| Name | Meaning |
|---|---|
| Authentication Mode | Choose how to authenticate with the Lectful API: - Use Stored Credentials - Manual Configuration |
| Credentials Note | Informational note shown when using Manual Configuration mode explaining credential usage. |
| Base URL Override | Optional base URL to override the stored credential's base URL (excluding /api/v1). |
| API Key Override | Optional API key to override the stored credential's API key. |
| Tag ID | The unique identifier of the blog tag to update (required). |
| Tag Name | The new name for the blog tag (optional; if provided, updates the tag's name). |
Note: The "Tag Name" property is inferred from the parameter "blogTagName" used in the update operation body.
Output
The node outputs a JSON object representing the response from the Lectful API after attempting to update the blog tag. This typically includes the updated tag's details such as its ID, name, and possibly timestamps or other metadata returned by the API.
No binary data output is involved in this operation.
Dependencies
- Requires access to the Lectful API, which needs authentication either via stored credentials configured in n8n or manual entry of Base URL and API key.
- Proper API permissions are required to perform admin-level updates on blog tags.
- No additional external dependencies beyond HTTP access to the Lectful API.
Troubleshooting
- Missing or invalid credentials: If neither stored credentials nor manual overrides are properly set, the node will throw an error indicating missing or invalid credentials. Ensure that either valid credentials are configured or manual Base URL and API key are provided.
- Missing Tag ID: The operation requires a valid Tag ID. Omitting this will cause an error.
- API errors: Errors returned by the Lectful API (e.g., unauthorized, not found, validation errors) will be surfaced. Check the API response message for details.
- Manual mode requirements: When using Manual Configuration mode, both Base URL Override and API Key Override must be provided; otherwise, the node throws an error.
- JSON parsing errors: The node attempts to parse string responses into JSON. Malformed responses may cause parsing issues.
Links and References
- Lectful API Documentation (general reference for API endpoints and authentication)
- n8n documentation on HTTP Request Node for understanding request handling
- n8n community forums for troubleshooting custom API integrations
Detailed Logic Summary for Blog - Update Tag (Admin)
When the node executes with Resource = "blog" and Operation = "updateTagAdmin":
- It retrieves the authentication mode and sets up the base URL and API key accordingly.
- It reads the required input parameters:
blogTagId(Tag ID to update)- Optionally
blogTagName(new tag name)
- It constructs a PUT request to the endpoint
/admin/blog/tags/{blogTagId}. - The request body includes the new tag name if provided.
- It sends the request with appropriate authorization headers.
- The response from the API is parsed and returned as JSON output.
This enables updating the name of a specific blog tag via the Lectful API in an automated workflow.