Actions33
- Bài Viết Actions
- Blog Actions
Overview
This node allows managing blogs and articles on the Sapo platform, including operations on blog posts, articles, and their comments. It is useful for automating content management tasks such as creating, updating, retrieving, and deleting blogs, articles, and comments. For example, you can use it to programmatically delete a specific comment from a blog article or update blog details without manual intervention.
The "Xóa Bình Luận" (Delete Comment) operation specifically deletes a comment identified by its ID from a given blog article.
Properties
| Name | Meaning |
|---|---|
| ID Blog | The unique numeric identifier of the blog containing the article and comment. |
| ID Bình Luận | The unique numeric identifier of the comment to be deleted. Required for comment operations. |
Output
The output is a JSON object representing the result of the delete comment operation. On successful deletion, it returns:
{
"success": true
}
If an error occurs, the output will contain an error field with the error message.
No binary data is output by this node.
Dependencies
- Requires an API key credential for authenticating with the Sapo API.
- The node depends on the Sapo API service to perform blog, article, and comment management operations.
- Proper configuration of the API credentials in n8n is necessary for successful execution.
Troubleshooting
Common issues:
- Invalid or missing blog ID or comment ID parameters will cause errors.
- Network or authentication failures with the Sapo API may prevent operations.
- Attempting to delete a non-existent comment will likely return an error.
Error messages:
- Errors returned from the API are propagated with their message. For example, "Comment not found" indicates the specified comment ID does not exist.
- Authentication errors suggest checking the API key credential setup.
Resolution tips:
- Verify that the blog ID and comment ID are correct and correspond to existing resources.
- Ensure the API key credential is valid and has sufficient permissions.
- Check network connectivity to the Sapo API endpoint.
Links and References
- Sapo API Documentation (general reference for API endpoints and usage)
- n8n documentation on creating custom nodes