saleUpdate Mutation
Updates a sale.
Triggers the following webhook events:
- SALE_UPDATED (async): A sale was updated.
- SALE_TOGGLE (async): Optionally triggered when a sale is started or stopped.
Applied directives
@webhookEventsInfo(asyncEvents: [SALE_UPDATED, SALE_TOGGLE], syncEvents: [])
saleUpdate(id: ID!, input: SaleInput!): SaleUpdate
Returns
Show return type
type SaleUpdate {
discountErrors: [DiscountError!]! @deprecated(reason: "Use `errors` field instead.")
errors: [DiscountError!]!
sale: Sale
}Arguments
id
id · ID!
ID of a sale to update.
input
input · SaleInput!
Fields required to update a sale.
Schema: Saleor 3.23.43. Download SDL.