Shopware icon

Shopware

Shopware

Actions778

Sales Channel Domain → Update Sales Channel Domain

AI-generated

Overview

This node operation updates an existing Sales Channel Domain in the Shopware system. It is useful for scenarios where you need to modify details of a sales channel domain such as URL, language, currency, sales channel association, and other related settings. For example, you might use this node to update the URL or language settings of a sales channel domain to reflect changes in your e-commerce platform configuration.

Use Case Examples

  1. Updating the URL of a sales channel domain to a new domain name.
  2. Changing the language or currency associated with a sales channel domain.
  3. Modifying custom fields or snippet sets related to a sales channel domain.

Properties

Name Meaning
Id Identifier for the sales_channel_domain, required to specify which domain to update.
Response Data format for response, used as a query parameter to specify the response format.
Url The URL of the sales channel domain to update.
Sales Channel Id Identifier of the sales channel associated with the domain.
Language Id Identifier of the language associated with the domain.
Currency Id Identifier of the currency associated with the domain.
Snippet Set Id Identifier of the snippet set associated with the domain.
Hreflang Use Only Locale Boolean flag indicating whether to use only locale for hreflang.
Custom Fields Custom fields in JSON format for additional domain data.
Created At Timestamp for when the domain was created.
Updated At Timestamp for when the domain was last updated.
Sales Channel JSON object representing the sales channel details associated with the domain.
Language JSON object representing the language details associated with the domain.
Currency JSON object representing the currency details associated with the domain.
Snippet Set JSON object representing the snippet set details associated with the domain.
Sales Channel Default Hreflang JSON object representing the default hreflang settings for the sales channel.
Product Exports JSON array representing product export configurations related to the sales channel domain.

Output

JSON

  • id - The unique identifier of the updated sales channel domain.
  • url - The URL of the updated sales channel domain.
  • salesChannelId - The identifier of the sales channel associated with the domain.
  • languageId - The identifier of the language associated with the domain.
  • currencyId - The identifier of the currency associated with the domain.
  • snippetSetId - The identifier of the snippet set associated with the domain.
  • hreflangUseOnlyLocale - Boolean indicating if only locale is used for hreflang.
  • customFields - Custom fields data associated with the domain.
  • createdAt - Timestamp when the domain was created.
  • updatedAt - Timestamp when the domain was last updated.
  • salesChannel - Detailed JSON object of the sales channel associated with the domain.
  • language - Detailed JSON object of the language associated with the domain.
  • currency - Detailed JSON object of the currency associated with the domain.
  • snippetSet - Detailed JSON object of the snippet set associated with the domain.
  • salesChannelDefaultHreflang - Detailed JSON object of the default hreflang settings for the sales channel.
  • productExports - Array of product export configurations related to the sales channel domain.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure the 'Id' property is correctly set to the existing sales channel domain identifier; otherwise, the update will fail.
  • Verify that all required fields (Id, Url, Sales Channel Id, Language Id, Currency Id, Snippet Set Id) are provided to avoid validation errors.
  • If the API returns authentication errors, check that the Shopware Admin API credentials are correctly configured and valid.
  • For JSON properties (Sales Channel, Language, Currency, Snippet Set, Sales Channel Default Hreflang, Product Exports), ensure the JSON is well-formed to prevent parsing errors.

Discussion