WbProducts icon

WbProducts

n8n node to interact with WB API

Overview

This node is designed to interact with a specific API related to media files management, particularly for saving media associated with product items. The "Post Media Save" operation allows users to upload or update media content such as images and videos linked to a product identified by its article number (Артикул WB). This is useful in e-commerce scenarios where product listings need to be enriched or updated with multimedia content to improve customer engagement and provide detailed visual information.

Practical examples include:

  • Uploading a set of product images and videos in a specified order to a product catalog.
  • Updating existing media assets for a product after a new photoshoot or video production.
  • Automating media updates when syncing product data from an external system.

Properties

Name Meaning
Nm Id The unique article number (Артикул WB) identifying the product to which the media will be attached.
Data A JSON array containing URLs of images and videos. The order of items in this array determines their sequence in the product's media gallery.

Output

The node outputs JSON data representing the response from the media save API call. This typically includes confirmation of the media being saved or updated, possibly with metadata about the uploaded media items. There is no indication that binary data is output by this node.

Dependencies

  • Requires an API key credential for authentication with the external service managing the media files.
  • Depends on a base URL configured from an imported Swagger/OpenAPI specification.
  • Uses HTTP headers specifying JSON content type and acceptance.
  • The node relies on an external API endpoint to perform the media save operation.

Troubleshooting

  • Common issues:
    • Invalid or missing product article number (Nm Id) may cause the API to reject the request.
    • Malformed JSON in the Data property can lead to parsing errors.
    • Network or authentication failures if the API key is incorrect or missing.
  • Error messages:
    • Errors related to invalid input data usually indicate problems with the nmId or data fields; verify these inputs carefully.
    • Authentication errors suggest checking the API key credential configuration.
    • API response errors might require reviewing the API documentation for correct usage.

Links and References

  • No direct links are provided in the source code. Users should refer to the external API documentation corresponding to the media files service for detailed information on request formats and responses.

Discussion