Sapo Blog icon

Sapo Blog

Manage Sapo blogs and articles

Overview

This node manages blogs and articles within the Sapo blogging platform. It supports various operations such as creating, retrieving, updating, and deleting both blogs and articles, as well as managing comments on articles.

For the Bài Viết (Article) resource with the Xóa (Delete) operation, the node deletes a specific article identified by its ID within a specified blog. This is useful when you want to programmatically remove outdated or unwanted articles from your blog.

Practical example:

  • Automatically delete articles that are no longer relevant or have expired content.
  • Clean up test or draft articles after publishing final versions.

Properties

Name Meaning
ID Blog The numeric identifier of the blog containing the article.
ID Bài Viết The numeric identifier of the article to be deleted.

Output

The output JSON contains a single field:

  • success: A boolean indicating whether the deletion was successful (true).

Example output JSON:

{
  "success": true
}

No binary data is output by this operation.

Dependencies

  • Requires an API key credential for authenticating with the Sapo blogging platform.
  • The node depends on the internal Sapo API base class to perform HTTP requests to the Sapo service.
  • Proper configuration of the API credentials in n8n is necessary for successful execution.

Troubleshooting

  • Common issues:

    • Invalid or missing blog ID or article ID parameters will cause errors.
    • Insufficient permissions or invalid API credentials can result in authorization failures.
    • Attempting to delete an article that does not exist may return an error or fail silently depending on the API response.
  • Error messages:

    • Errors thrown by the node include the message from the underlying API call.
    • If the node is set to continue on failure, errors will appear in the output JSON under an error field.
    • To resolve errors, verify that the blog and article IDs are correct and that the API credentials have sufficient rights.

Links and References

Discussion