Class ByProjectKeyInStoreKeyByStoreKeyCategoriesPost

All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeyInStoreKeyByStoreKeyCategoriesPost>, ErrorableTrait<ByProjectKeyInStoreKeyByStoreKeyCategoriesPost>, ExpandableTrait<ByProjectKeyInStoreKeyByStoreKeyCategoriesPost>, ClientRequestCommand<Category>, CreateHttpRequestCommand, HttpRequestCommand<Category>, RequestCommand<Category>

Creates a Category in the specified Store.

For global Categories, use the Create Category endpoint.

Creating a Category with a parent locks that parent Category. For details, see Category tree locking.

Creating a Category produces the CategoryCreated Message.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.category.Category>> result = apiRoot
            .withProjectKey("{projectKey}")
            .inStoreKeyWithStoreKeyValue("{storeKey}")
            .categories()
            .post(null)
            .execute()