Actions33
- Bài Viết Actions
- Blog Actions
Overview
This node manages blogs and articles within 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 Blog resource with the Delete operation, the node deletes a specified blog by its ID. This is useful for automating content management workflows where outdated or unwanted blogs need to be removed programmatically.
Practical example:
- Automatically delete a blog post after a certain date or event.
- Clean up test or draft blogs in bulk via automation.
Properties
| Name | Meaning |
|---|---|
| ID Blog | The unique numeric identifier of the blog to delete. This property is required. |
Output
The output JSON contains a single field indicating success:
{
"success": true
}
This confirms that the blog was successfully deleted.
Dependencies
- Requires an API key credential for authenticating with the Sapo platform.
- Depends on the Sapo API base class to interact with the Sapo blogging service.
- The node expects proper configuration of the Sapo API credentials within n8n.
Troubleshooting
Common issues:
- Invalid or missing blog ID will cause the deletion to fail.
- Authentication errors if the API key credential is not set or invalid.
- Network or API downtime can cause request failures.
Error messages:
- Errors returned from the Sapo API will be caught and presented as node errors unless "Continue On Fail" is enabled.
- Typical error message might include "Blog not found" if the blog ID does not exist.
- Authentication errors will indicate invalid credentials or permission issues.
Resolution tips:
- Verify the blog ID exists before attempting deletion.
- Ensure the API key credential is correctly configured and has sufficient permissions.
- Enable "Continue On Fail" to handle errors gracefully in workflows.
Links and References
- Sapo API Documentation (general reference for Sapo platform APIs)
- n8n documentation on creating custom nodes