Actions33
- Bài Viết Actions
- Blog Actions
Overview
This node integrates with the Sapo Blog platform to manage blogs, articles, and comments programmatically. It supports various operations such as creating, retrieving, updating, and deleting blogs, articles, and comments. The node is particularly useful for automating content management workflows, moderating comments, or synchronizing blog data with other systems.
For the specific operation "Xóa Bình Luận" (Delete Comment) under the resource "Bài Viết" (Article), the node deletes a specified comment from an article within a blog. This can be used in scenarios like removing inappropriate or spam comments automatically or via manual triggers.
Practical Example
- Automatically delete a comment flagged as spam on a product announcement article.
- Remove outdated or irrelevant comments from a blog post during content updates.
Properties
| Name | Meaning |
|---|---|
| ID Blog | The unique numeric identifier of the blog containing the article. |
| ID Bài Viết | The unique numeric identifier of the article within the blog where the comment exists. |
| ID Bình Luận | The unique numeric identifier of the comment to be deleted from the article. |
Output
The output JSON contains a single field:
success: A boolean indicating whether the comment deletion was successful (true).
Example output:
{
"success": true
}
No binary data is output by this operation.
Dependencies
- Requires an API key credential for authenticating with the Sapo Blog API.
- The node depends on the external Sapo Blog API service to perform blog, article, and comment management.
- Proper configuration of the API credentials in n8n is necessary for successful execution.
Troubleshooting
Common Issues:
- Invalid or missing blog, article, or comment IDs will cause the API call to fail.
- Insufficient permissions or invalid API credentials may result in authentication errors.
- Network connectivity issues can prevent communication with the Sapo API.
Error Messages:
- Errors returned from the API are caught and presented as node errors unless "Continue On Fail" is enabled.
- Typical error messages include "Not Found" if the comment does not exist or "Unauthorized" if credentials are invalid.
Resolution Tips:
- Verify that the blog ID, article ID, and comment ID are correct and correspond to existing entities.
- Ensure the API key credential is valid and has sufficient permissions.
- Check network connectivity and API endpoint availability.
Links and References
- Sapo Blog API Documentation (example placeholder link)
- n8n Documentation on Creating Custom Nodes