priceListFixedPricesByProductUpdate - admin-graphql - MUTATION
Version: 2024-10
Description:
Updates the fixed prices for all variants for a product on a price list. You can use the `priceListFixedPricesByProductUpdate` mutation to set or remove a fixed price for all variants of a product associated with the price list.
Access Scopes
`write_products` access scope. Also: The user has edit product price permissions.
Arguments
-
priceListId:
ID! -
The price list to update the prices for.
-
pricesToAdd:
PriceListProductPriceInput -
A list of `PriceListProductPriceInput` that identifies which products to update the fixed prices for.
-
pricesToDeleteByProductIds:
ID -
A list of product IDs that identifies which products to remove the fixed prices for.
Returns
-
priceList:
PriceList
The price list for which the fixed prices were modified.
-
pricesToAddProducts:
Product
The product for which the fixed prices were added.
-
pricesToDeleteProducts:
Product
The product for which the fixed prices were deleted.
-
userErrors:
PriceListFixedPricesByProductBulkUpdateUserError!
The list of errors that occurred from executing the mutation.
Examples