Class ByProjectKeyProductsByIDImagesPostString

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<ByProjectKeyProductsByIDImagesPostString,Product>
com.commercetools.api.client.ByProjectKeyProductsByIDImagesPostString
All Implemented Interfaces:
io.vrap.rmf.base.client.ClientRequestCommand<Product>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.RequestCommand<Product>

public class ByProjectKeyProductsByIDImagesPostString extends io.vrap.rmf.base.client.StringBodyApiMethod<ByProjectKeyProductsByIDImagesPostString,Product>

Upload a JPEG, PNG and GIF file to a ProductVariant. The maximum file size of the image is 10MB. variant or sku is required to update a specific ProductVariant. The image is uploaded to the Master Variant if variant or sku are not included. Produces the ProductImageAdded Message when the Small version of the image has been uploaded to the CDN.



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