Actions33
- Bài Viết Actions
- Blog Actions
Overview
This node manages blogs and articles on the Sapo platform, allowing users to perform various operations such as creating, updating, retrieving, and deleting blogs, articles, and comments. Specifically for the "Blog" resource with the "Xóa Bình Luận" (Delete Comment) operation, it enables deletion of a specific comment associated with a blog article.
Common scenarios include:
- Moderating blog content by removing inappropriate or unwanted comments.
- Managing user interactions on blog posts by programmatically deleting comments.
- Automating blog maintenance tasks related to comment management.
Practical example:
- A marketing team uses this node to automatically delete spam comments from their blog articles based on certain triggers or schedules.
Properties
| Name | Meaning |
|---|---|
| ID Blog | The unique numeric identifier of the blog where the comment exists. |
| ID Bình Luận | The unique numeric identifier of the comment to be deleted. Required for comment actions. |
Output
The output is a JSON object representing the result of the delete comment operation. For the "deleteComment" operation, the output JSON will contain a success flag indicating whether the deletion was successful:
{
"success": true
}
No binary data is output by this node.
Dependencies
- Requires an API key credential for authenticating with the Sapo API.
- Depends on the Sapo API service being accessible and properly configured.
- The node uses an internal Sapo API base class to interact with the Sapo blogging platform.
Troubleshooting
Common issues:
- Invalid or missing blog ID or comment ID parameters can cause failures.
- Network or authentication errors when connecting to the Sapo API.
- Attempting to delete a comment that does not exist or has already been deleted.
Error messages:
- Errors returned from the Sapo API will be surfaced with their message and stack trace.
- If the node is set to continue on failure, errors will be included in the output JSON under an
errorfield.
Resolutions:
- Verify that the blog 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 API Documentation (general reference for Sapo API)
- n8n documentation on creating custom nodes