Shopware icon

Shopware

Shopware

Actions778

Unit → Delete Unit

AI-generated

Overview

This node operation deletes a specified unit by its identifier. It is useful in scenarios where you need to remove a unit from a system or database, such as deleting a measurement unit or a product unit in an inventory management system. For example, if a unit is no longer used or was created by mistake, this operation can be used to clean up the data.

Use Case Examples

  1. Deleting a unit by providing its unique ID to remove it from the system.
  2. Automating cleanup of obsolete units in a product catalog.

Properties

Name Meaning
Id Identifier for the unit to be deleted, required to specify which unit to remove.
Response Data format for the response, can be used to specify how the response data should be returned or formatted.
Request Options Additional request options such as batching, SSL certificate validation, proxy settings, and timeout configuration to control the HTTP request behavior.

Output

JSON

  • id - The identifier of the deleted unit.
  • status - Status of the delete operation, indicating success or failure.
  • message - Additional message or information about the delete operation result.

Dependencies

  • An API key credential for authenticating with the Shopware Admin API.

Troubleshooting

  • Ensure the 'Id' property is correctly provided and corresponds to an existing unit; otherwise, the delete operation will fail.
  • If SSL certificate validation is disabled, be cautious as it may expose security risks.
  • Timeout settings should be adjusted based on network conditions to avoid premature request abortion.
  • Proxy settings must be correctly configured if a proxy is required for network access.

Discussion