Class ByProjectKeyProductsPostString

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<T,TResult,String>
io.vrap.rmf.base.client.StringBodyApiMethod<ByProjectKeyProductsPostString,Product>
com.commercetools.api.client.ByProjectKeyProductsPostString
All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeyProductsPostString>, ErrorableTrait<ByProjectKeyProductsPostString>, ExpandableTrait<ByProjectKeyProductsPostString>, PriceselectingTrait<ByProjectKeyProductsPostString>, 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("")
            .execute()