Class ByProjectKeyProductsPost

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyProductsPost,Product,ProductDraft>
com.commercetools.api.client.ByProjectKeyProductsPost
All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeyProductsPost>, ErrorableTrait<ByProjectKeyProductsPost>, ExpandableTrait<ByProjectKeyProductsPost>, PriceselectingTrait<ByProjectKeyProductsPost>, io.vrap.rmf.base.client.ClientRequestCommand<Product>, io.vrap.rmf.base.client.RequestCommand<Product>

To create a new Product, send a representation that is going to become the initial staged representation of the new Product in the master catalog. If Price Selection query parameters are provided, selected Prices will be added to the response. Produces the ProductCreated Message.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.product.Product>> result = apiRoot
            .withProjectKey("{projectKey}")
            .products()
            .post(null)
            .execute()