Class ByProjectKeyInBusinessUnitKeyByBusinessUnitKeyMeCustomersPost

All Implemented Interfaces:
ClientRequestCommand<CustomerSignInResult>, CreateHttpRequestCommand, HttpRequestCommand<CustomerSignInResult>, RequestCommand<CustomerSignInResult>

public class ByProjectKeyInBusinessUnitKeyByBusinessUnitKeyMeCustomersPost extends TypeBodyApiMethod<ByProjectKeyInBusinessUnitKeyByBusinessUnitKeyMeCustomersPost,CustomerSignInResult,MyBusinessUnitAssociateDraft>

The My Business Unit endpoint does not support assigning existing Customers to a Business Unit. Associates with the UpdateAssociates Permission can use this endpoint to create a new Customer and associate it with the Business Unit. If the required Permission is missing, an AssociateMissingPermission error is returned.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.customer.CustomerSignInResult>> result = apiRoot
            .withProjectKey("{projectKey}")
            .inBusinessUnitKeyWithBusinessUnitKeyValue("{businessUnitKey}")
            .me()
            .customers()
            .post(null)
            .execute()