> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SaveConnectorCustomerGroups

> Replaces all customer-group mappings of a connector account and pushes the result to the connector endpoint. The request describes the complete desired state: listed mappings are created or updated, all other mappings are removed. EndpointIds that are neither mapped nor reported by the endpoint are ignored. The name and default flag of an endpoint customer group come from the endpoint and cannot be set here; for EndpointIds that are not mapped yet, JTL-Wawi reads them live from the endpoint before saving; if this read fails, the request fails with 502/504 and nothing is saved. The mappings are saved even if the subsequent push to the endpoint fails; the push result is returned in "LiveSyncStatus" and "LiveSyncError".



**mutation** `SaveConnectorCustomerGroups(request: SaveConnectorCustomerGroupsCommandRequestInput!): SaveConnectorCustomerGroupsCommandResponse!`

## Arguments

**`request`**: `SaveConnectorCustomerGroupsCommandRequestInput!` (required)

## Returns

`SaveConnectorCustomerGroupsCommandResponse!`

**`customerGroups`**: `[ConnectorCustomerGroupListItem!]!`

The saved customer-group mappings, excluding ignored EndpointIds. "EndpointName" is null if the endpoint reports no name for a group. Reflects the saved state, independent of the push result in "LiveSyncStatus".

---

**`liveSyncStatus`**: `ConnectorLiveSyncStatus!`

Outcome of the live push to the connector endpoint.

---

**`liveSyncError`**: `ConnectorLiveSyncError!`

Details of a failed push. Always present; "Code" and "Message" are set only if "LiveSyncStatus" is SyncFailed or SyncTimedOut (omitted in REST, null in GraphQL).

