Skip to main content
Version: 3.x

saleUpdate

Updates a sale.

DEPRECATED: this mutation will be removed in Saleor 4.0. Use promotionUpdate mutation instead.

Requires MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

  • SALE_UPDATED (async): A sale was updated.
  • SALE_TOGGLE (async): Optionally triggered when a sale is started or stopped.
saleUpdate(
id: ID!
input: SaleInput!
): SaleUpdate

Arguments

saleUpdate.id ● ID! non-null scalar

ID of a sale to update.

saleUpdate.input ● SaleInput! non-null input

Fields required to update a sale.

Type

SaleUpdate object

Updates a sale.

DEPRECATED: this mutation will be removed in Saleor 4.0. Use promotionUpdate mutation instead.

Requires MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

  • SALE_UPDATED (async): A sale was updated.
  • SALE_TOGGLE (async): Optionally triggered when a sale is started or stopped.

Was this page helpful?