Shopware icon

Shopware

Shopware

Actions778

Product Stream Filter → Update Product Stream Filter

AI-generated

Overview

This node updates a Product Stream Filter in the Shopware system. It is useful for modifying existing filters that define criteria for product streams, allowing dynamic adjustment of product selections based on updated conditions. For example, a user can update the filter's type, field, operator, or value to refine the product stream's content.

Use Case Examples

  1. Updating a product stream filter to change the filter type from 'price' to 'category'.
  2. Modifying the filter's operator to switch from 'equals' to 'greater than' for a numeric field.
  3. Adjusting the filter's position or parent filter to reorganize filter hierarchy within a product stream.

Properties

Name Meaning
Id Identifier for the product_stream_filter, required to specify which filter to update.
_response Data format for the response, used as a query parameter to control response format.
productStreamId Identifier of the product stream to which the filter belongs.
parentId Identifier of the parent filter if this filter is nested under another filter.
type Type of the filter, defining the kind of filtering applied (e.g., price, category).
field Field of the product data to filter on (e.g., price, manufacturer).
operator Operator used in the filter condition (e.g., equals, greater than).
value Value used in the filter condition to compare against the field.
parameters Additional parameters for the filter in JSON format.
position Position of the filter in the filter list, used for ordering.
customFields Custom fields for the filter in JSON format, allowing extension of filter data.
createdAt Timestamp of when the filter was created.
updatedAt Timestamp of when the filter was last updated.
productStream JSON object representing the product stream associated with the filter, including nested filters and related entities.
parent JSON object representing the parent filter and its related data, allowing nested filter structures.
queries JSON array of query objects related to the filter, supporting complex filter criteria.

Output

JSON

  • id - Identifier of the updated product stream filter.
  • productStreamId - Identifier of the product stream associated with the filter.
  • parentId - Identifier of the parent filter if applicable.
  • type - Type of the filter.
  • field - Field used in the filter condition.
  • operator - Operator used in the filter condition.
  • value - Value used in the filter condition.
  • parameters - Additional parameters of the filter.
  • position - Position of the filter in the list.
  • customFields - Custom fields associated with the filter.
  • createdAt - Creation timestamp.
  • updatedAt - Last update timestamp.
  • productStream - Detailed JSON object of the product stream related to the filter.
  • parent - Detailed JSON object of the parent filter.
  • queries - Array of query objects related to the filter.

Dependencies

  • Shopware API with appropriate credentials

Troubleshooting

  • Ensure the 'Id' property is correctly set to the existing product stream filter's identifier to avoid 'not found' errors.
  • Validate JSON format for 'parameters', 'customFields', 'productStream', 'parent', and 'queries' properties to prevent parsing errors.
  • Check API credentials and base URL configuration to ensure successful authentication and connection to the Shopware API.
  • Timeout or network errors can occur; adjust 'Timeout' and 'Proxy' settings in 'Request Options' if necessary.

Discussion