Class ByProjectKeyInBusinessUnitKeyByBusinessUnitKeyMeCustomersPost

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<T,TResult,TBody>
io.vrap.rmf.base.client.TypeBodyApiMethod<ByProjectKeyInBusinessUnitKeyByBusinessUnitKeyMeCustomersPost,CustomerSignInResult,MyBusinessUnitAssociateDraft>
com.commercetools.api.client.ByProjectKeyInBusinessUnitKeyByBusinessUnitKeyMeCustomersPost
All Implemented Interfaces:
io.vrap.rmf.base.client.ClientRequestCommand<CustomerSignInResult>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.HttpRequestCommand<CustomerSignInResult>, io.vrap.rmf.base.client.RequestCommand<CustomerSignInResult>

public class ByProjectKeyInBusinessUnitKeyByBusinessUnitKeyMeCustomersPost extends io.vrap.rmf.base.client.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()