mutation SaveShopLanguages($request: SaveShopLanguagesCommandRequestInput!) {
SaveShopLanguages(request: $request) {
languages {
iso
nameGerman
nameEnglish
isAssigned
isDefault
}
}
}{
"request": {
"salesChannelId": "string",
"languages": [
{
"iso": "string",
"isDefault": true
}
]
}
}{
"data": {
"SaveShopLanguages": {
"languages": [
{
"iso": "string",
"nameGerman": "string",
"nameEnglish": "string",
"isAssigned": true,
"isDefault": true
}
]
}
}
}SaveShopLanguages
Replaces the complete set of languages assigned to a shop. The request describes the desired state: listed languages are assigned, all others are unassigned. The call is idempotent, so it is safe to retry. The list must not be empty, and exactly one language must be marked as default. Codes are case-insensitive and returned in lowercase; languages without an ISO 639-1 code cannot be assigned. Unlike the customer groups on the same shop, this command never answers 409; there is no replacement concept for a removed language. Returns the resulting assignments. Concurrency: last write wins; concurrent calls for the same shop overwrite each other without a conflict error. Side effect: the change is queued for synchronization to the shop. If queuing fails, the assignments are already saved but an error is returned; repeat the call to recover.
SaveShopLanguages(request: SaveShopLanguagesCommandRequestInput!): SaveShopLanguagesCommandResponse!Arguments
Returns
The persisted language assignments, in the order submitted, with each code normalized to its canonical lowercase form and its names resolved from JTL-Wawi's language master data. "IsAssigned" is true on every entry; this list is the assignment set, not the catalogue returned by "GET /v2/sales-channels/{salesChannelId}/shop/languages" or "QueryShopLanguages".
mutation SaveShopLanguages($request: SaveShopLanguagesCommandRequestInput!) {
SaveShopLanguages(request: $request) {
languages {
iso
nameGerman
nameEnglish
isAssigned
isDefault
}
}
}{
"request": {
"salesChannelId": "string",
"languages": [
{
"iso": "string",
"isDefault": true
}
]
}
}{
"data": {
"SaveShopLanguages": {
"languages": [
{
"iso": "string",
"nameGerman": "string",
"nameEnglish": "string",
"isAssigned": true,
"isDefault": true
}
]
}
}
}Was this page helpful?