Class ByProjectKeyVariantsBulkPostString

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

public class ByProjectKeyVariantsBulkPostString extends StringBodyApiMethod<ByProjectKeyVariantsBulkPostString,VariantBulkUpdateResponse>

Applies update actions to multiple Variants in a single request. Returns a 207 Multi-Status response with the result for each Variant. Each Variant is updated independently, so some may succeed while others fail.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.variant.VariantBulkUpdateResponse>> result = apiRoot
            .withProjectKey("{projectKey}")
            .variants()
            .bulk()
            .post("")
            .execute()