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, retrieving, updating, and deleting blogs or articles. It also supports managing comments on articles, including creating, updating, deleting, and spam checking comments.
For the Delete operation on the Blog resource (the focus here), the node deletes a blog identified by its ID. This is useful when you want to remove an entire blog from your Sapo store.
Practical example:
- Automatically delete outdated or irrelevant blogs based on certain criteria in your workflow.
- Clean up test or draft blogs after publishing final versions.
Properties
| Name | Meaning |
|---|---|
| ID Blog | The unique numeric identifier of the blog to be deleted. This property is required for the delete operation. |
Output
The output JSON contains a single field indicating success:
{
"success": true
}
This confirms that the blog was successfully deleted.
If an error occurs during deletion, the node will either throw an error or return an error object in the output JSON if "Continue On Fail" is enabled:
{
"error": "Error message describing what went wrong"
}
Dependencies
- Requires an active connection to the Sapo API via an API key credential configured in n8n.
- The node depends on the
SapoApiBaseclass which handles communication with the Sapo API endpoints related to blogs and articles.
Troubleshooting
Common issues:
- Invalid or missing blog ID: Ensure the blog ID provided exists and is correct.
- Authentication errors: Verify that the API key credential is valid and has sufficient permissions.
- Network or API downtime: Check connectivity and Sapo service status.
Common error messages:
"Blog not found": The specified blog ID does not exist; verify the ID."Unauthorized"or"Authentication failed": Check API credentials."Failed to delete blog": Could indicate permission issues or server errors; retry or check logs.
Links and References
- Sapo API Documentation (general reference for Sapo API endpoints)
- n8n documentation on creating custom nodes