Home > @vsf-enterprise/sap-commerce-webservices-sdk > CustomerGroupsApi > createCustomerGroup

CustomerGroupsApi.createCustomerGroup() method

Creates a new customer group that is a direct subgroup of a customergroup. To try out the methods of the Customer Groups controller, you must authorize a user who belongs to the “customermanagergroup”. Creates a new customer group.

Signature:

createCustomerGroup(baseSiteId: string, userGroup: UserGroup, options?: any): Promise<import("axios").AxiosResponse<void>>;

Parameters

Parameter Type Description
baseSiteId string Base site identifier
userGroup UserGroup User group object with id and name.
options any Override http request option.

Returns:

Promise<import("axios").AxiosResponse<void>>

Exceptions

{RequiredError} CustomerGroupsApi