Shopware icon

Shopware

Shopware

Actions778

Locale → Update Locale

AI-generated

Overview

This node updates a Locale resource in the Shopware system. It is useful for modifying locale details such as code, name, territory, and associated languages or users. For example, it can be used to update the locale settings for a specific region or language in an e-commerce platform.

Use Case Examples

  1. Updating the name and territory of a locale identified by its ID.
  2. Modifying the languages and users associated with a locale.

Properties

Name Meaning
Id Identifier for the locale, required to specify which locale to update.
Response Data format for the response, optional query parameter to specify response format.
Code Locale code, required for the update.
Name Name of the locale, required for the update.
Territory Territory associated with the locale, required for the update.
Custom Fields Custom fields in JSON format to extend the locale data.
Created At Creation timestamp of the locale.
Updated At Last update timestamp of the locale.
Translated Translated data in JSON format for the locale.
Languages Languages associated with the locale, provided as JSON.
Users Users associated with the locale, provided as JSON.
Request Options Additional request options such as batching, SSL settings, proxy, and timeout.

Output

JSON

  • id - Identifier of the updated locale
  • code - Locale code
  • name - Name of the locale
  • territory - Territory of the locale
  • customFields - Custom fields associated with the locale
  • createdAt - Creation timestamp
  • updatedAt - Last update timestamp
  • translated - Translated data for the locale
  • languages - Languages associated with the locale
  • users - Users associated with the locale

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure the 'Id' property is correctly set to identify the locale to update.
  • Verify that required fields like 'Code', 'Name', and 'Territory' are provided.
  • Check the JSON format for 'Custom Fields', 'Translated', 'Languages', and 'Users' properties to avoid parsing errors.
  • If SSL issues occur, consider enabling the 'Ignore SSL Issues' option or verify the SSL certificate.
  • Timeouts can be adjusted via the 'Timeout' request option if the server response is slow.

Discussion