Class ByProjectKeyCategoriesPost

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyCategoriesPost,Category,CategoryDraft>
com.commercetools.api.client.ByProjectKeyCategoriesPost
All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeyCategoriesPost>, ErrorableTrait<ByProjectKeyCategoriesPost>, ExpandableTrait<ByProjectKeyCategoriesPost>, io.vrap.rmf.base.client.ClientRequestCommand<Category>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.RequestCommand<Category>

Either the scope manage_products:{projectKey} or manage_categories:{projectKey} is required.

Creating a Category produces the CategoryCreated Message.



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