Class ByProjectKeyMeBusinessUnitsPost

All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeyMeBusinessUnitsPost>, ErrorableTrait<ByProjectKeyMeBusinessUnitsPost>, ExpandableTrait<ByProjectKeyMeBusinessUnitsPost>, ClientRequestCommand<BusinessUnit>, CreateHttpRequestCommand, HttpRequestCommand<BusinessUnit>, RequestCommand<BusinessUnit>

Automatically assigns the Associate to the Business Unit in the default Associate Role defined in BusinessUnitConfiguration. If there is no default Associate Role configured, this request fails with an InvalidOperation error. When creating a Division, the Associate must have the AddChildUnits Permission in the parent unit. If the required Permission is missing, an AssociateMissingPermission error is returned.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.business_unit.BusinessUnit>> result = apiRoot
            .withProjectKey("{projectKey}")
            .me()
            .businessUnits()
            .post(null)
            .execute()