Class ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPostString

All Implemented Interfaces:
ClientRequestCommand<ProductTailoring>, CreateHttpRequestCommand, HttpRequestCommand<ProductTailoring>, RequestCommand<ProductTailoring>

public class ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPostString extends StringBodyApiMethod<ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPostString,ProductTailoring>

Upload a JPEG, PNG and GIF file to a ProductTailoringVariant. The maximum file size of the image is 10MB. variant or sku is required to update a specific ProductVariant. Produces the ProductTailoringImageAdded Message when the Small version of the image has been uploaded to the CDN.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.product_tailoring.ProductTailoring>> result = apiRoot
            .withProjectKey("{projectKey}")
            .inStoreKeyWithStoreKeyValue("{storeKey}")
            .products()
            .withProductKey("{productKey}")
            .productTailoring()
            .images()
            .post("")
            .execute()