Shopware icon

Shopware

Shopware

Actions778

Unit → Update Unit

AI-generated

Overview

This node operation updates a Unit resource in the Shopware system. It is useful for scenarios where you need to modify existing unit details such as its identifier, short code, name, custom fields, timestamps, translations, and associated products. For example, you might use this node to update the name or short code of a unit or to add custom fields to it.

Use Case Examples

  1. Updating the name and short code of a unit identified by its ID.
  2. Adding or modifying custom fields for a specific unit.
  3. Updating the list of products associated with a unit.

Properties

Name Meaning
Id Identifier for the unit, required to specify which unit to update.
Response Data format for the response; can be empty if no specific format is provided.
Short Code Short code for the unit, required for the update.
Name Name of the unit, required for the update.
Custom Fields Custom fields in JSON format to add or update for the unit.
Created At Timestamp string representing when the unit was created.
Updated At Timestamp string representing when the unit was last updated.
Translated Translated fields in JSON format for the unit.
Products JSON array representing products associated with the unit.
Request Options Settings for request behavior such as batching, SSL handling, proxy, and timeout.

Output

JSON

  • id - The identifier of the updated unit.
  • shortCode - The short code of the updated unit.
  • name - The name of the updated unit.
  • customFields - Custom fields associated with the unit.
  • createdAt - Creation timestamp of the unit.
  • updatedAt - Last update timestamp of the unit.
  • translated - Translated fields of the unit.
  • products - Products associated with the unit.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure the 'Id' property is correctly set to identify the unit to update; missing or incorrect Id will cause errors.
  • Validate JSON format for 'Custom Fields', 'Translated', and 'Products' properties to avoid parsing errors.
  • Check network and proxy settings if requests fail due to connectivity issues.
  • If SSL certificate validation fails and you trust the source, enable 'Ignore SSL Issues' option to bypass SSL errors.

Discussion