Shopware icon

Shopware

Shopware

Actions778

Locale → Create Locale

AI-generated

Overview

This node operation creates a new Locale in the Shopware system. It is useful for scenarios where you need to add localization settings such as language, territory, and other locale-specific details to support multi-language or region-specific content in an e-commerce platform. For example, you can create a locale for a new market by specifying its code, name, territory, and associated languages and users.

Use Case Examples

  1. Creating a new locale for the French market with code 'fr-FR', name 'French (France)', and territory 'France'.
  2. Adding custom fields and translated content to a locale to support specific business requirements.

Properties

Name Meaning
Response Data format for the response, either basic or detailed.
Id Unique identifier for the locale to be created.
Code Locale code representing the language and region, e.g., 'en-US'.
Name Name of the locale.
Territory Territory or region associated with the locale.
Custom Fields Custom JSON fields to add additional data to the locale.
Created At Timestamp for when the locale was created.
Updated At Timestamp for when the locale was last updated.
Translated JSON object containing translated content for the locale.
Languages JSON array defining languages associated with the locale.
Users JSON array defining users associated with the locale.

Output

JSON

  • id - Unique identifier of the created locale.
  • code - Locale code of the created locale.
  • name - Name of the created locale.
  • territory - Territory of the created locale.
  • customFields - Custom fields associated with the locale.
  • createdAt - Creation timestamp of the locale.
  • updatedAt - Last update timestamp of the locale.
  • translated - Translated content of 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 all required fields (Id, Code, Name, Territory) are provided to avoid validation errors.
  • If the API returns authentication errors, verify that the Shopware Admin API credentials are correctly configured.
  • For JSON fields like Custom Fields, Translated, Languages, and Users, ensure the JSON is well-formed to prevent parsing errors.

Discussion