Class ByProjectKeyMeBusinessUnitsPostString

All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeyMeBusinessUnitsPostString>, ErrorableTrait<ByProjectKeyMeBusinessUnitsPostString>, ExpandableTrait<ByProjectKeyMeBusinessUnitsPostString>, 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("")
            .execute()