Mindz icon

Mindz

Interact with Mindz API

Actions115

Overview

The "Add Product" operation under the "Bundle" resource in this Mindz node allows users to add a product to an existing bundle. This is useful in scenarios where you manage collections of products grouped as bundles and want to dynamically update these bundles by adding new products. For example, an e-commerce platform or digital content provider could use this operation to enhance their bundled offerings without recreating bundles from scratch.

Properties

Name Meaning
Bundle ID The unique identifier of the bundle to which a product will be added.
Product ID The unique identifier of the product that should be added to the specified bundle.

Output

The output of this operation typically includes JSON data representing the updated state of the bundle after the product has been added. This may include details such as the bundle's ID, name, list of products (now including the newly added product), and any other relevant metadata returned by the Mindz API.

If the node supports binary data output for this operation, it would generally represent associated files or media related to the bundle or product, but based on the provided code and context, the primary output is JSON data reflecting the updated bundle.

Dependencies

  • Requires an active connection to the Mindz API via an OAuth2-based API key credential.
  • The node depends on the Mindz API endpoints for managing bundles and products.
  • Proper configuration of the Mindz OAuth2 credentials within n8n is necessary for authentication.

Troubleshooting

  • Common Issues:

    • Invalid or missing Bundle ID or Product ID parameters can cause the operation to fail.
    • Authentication errors if the OAuth2 credentials are not set up correctly or have expired.
    • Network connectivity issues preventing communication with the Mindz API.
  • Error Messages:

    • "Invalid Bundle ID" or "Bundle not found": Verify that the Bundle ID exists and is correct.
    • "Invalid Product ID" or "Product not found": Ensure the Product ID is valid and corresponds to an existing product.
    • "Authentication failed": Check the OAuth2 credentials and refresh tokens if necessary.
    • "API rate limit exceeded": Wait before retrying or check your API usage limits.

Resolving these usually involves verifying input parameters, ensuring valid credentials, and confirming network access.

Links and References

Discussion