Discuss Kit icon

Discuss Kit

Consume Discuss Kit API

Overview

This node interacts with the Discuss Kit API to manage blog content, specifically allowing users to remove a label from a blog post. It is useful in scenarios where you want to dynamically update or clean up labels associated with blog posts, for example, removing outdated or incorrect tags programmatically.

A practical example would be an automation workflow that removes a specific label from multiple blog posts after a campaign ends or when a certain condition is met.

Properties

Name Meaning
Content ID The unique identifier of the blog content (blog post) from which the label will be removed.
Label The label string that should be removed from the specified blog content.

Output

The output is a JSON array containing the response from the API after attempting to remove the label. Since the operation uses an HTTP DELETE request and does not explicitly return data in the code snippet, the output typically confirms success or failure of the removal action. The exact structure depends on the API's response but generally includes status information.

No binary data output is involved in this operation.

Dependencies

  • Requires access to the Discuss Kit API.
  • Needs an API authentication token or key configured in n8n credentials to authorize requests.
  • Uses internal helper functions to make HTTP requests to the Discuss Kit API endpoints.

Troubleshooting

  • Common issues:

    • Invalid or missing Content ID: Ensure the provided content ID corresponds to an existing blog post.
    • Label not found: Attempting to remove a label that does not exist on the blog post may result in no changes or an error.
    • Authentication errors: Missing or invalid API credentials will cause authorization failures.
    • Network or API downtime can cause request failures.
  • Error messages:

    • Errors returned by the API will be caught and can be output if "Continue On Fail" is enabled.
    • Typical error messages might include "Content not found," "Label not associated with content," or "Unauthorized."
  • Resolutions:

    • Verify the correctness of the Content ID and Label values.
    • Check API credentials and permissions.
    • Enable "Continue On Fail" to handle errors gracefully in workflows.

Links and References

Discussion