productVariantChannelListingAvailabilityUpdate Mutation
Mutation productVariantChannelListingAvailabilityUpdate in Saleor’s Products API. Explore its schema, type relationships, descriptions, and compatibility notes.
Toggle whether a product variant can be bought in the given channels, without touching its prices. An unavailable variant is hidden from customers and cannot be added to a checkout or an order.
Added in Saleor 3.23.
productVariantChannelListingAvailabilityUpdate(id: ID, input: [ProductVariantChannelListingAvailabilityInput!]!, sku: String): ProductVariantChannelListingAvailabilityUpdate
Returns
ProductVariantChannelListingAvailabilityUpdate
Show return type
type ProductVariantChannelListingAvailabilityUpdate {
variant: ProductVariant
errors: [ProductVariantChannelListingAvailabilityUpdateError!]!
}Arguments
id
id · ID
ID of a product variant to update.
input
input · [ProductVariantChannelListingAvailabilityInput!]!
List of channels to toggle the variant’s availability in. Max 100 items.
sku
sku · String
SKU of a product variant to update.
Schema: Saleor 3.23.43. Download SDL.