Updates a manual line level discount on the current order edit. For more information on how to use the GraphQL Admin API to edit an existing order, refer to [Edit existing orders](https://shopify.dev/apps/fulfillment/order-management-apps/order-editing).
Access Scopes
`write_order_edits` access scope. Also: The user must have apply_discounts_to_orders permission.
Arguments
discount:
OrderEditAppliedDiscountInput! -
The updated discount.
discountApplicationId:
ID! -
The ID of the [calculated discount application](https://shopify.dev/api/admin-graphql/latest/interfaces/calculateddiscountapplication)
to update.
id:
ID! -
The ID of the [calculated order](https://shopify.dev/api/admin-graphql/latest/objects/calculatedorder)
or the order edit session to edit. This is the edit used to update the discount.
Returns
calculatedOrder:
CalculatedOrder
An order with the edits applied but not saved.
orderEditSession:
OrderEditSession
The order edit session with the edits applied but not saved.
userErrors:
OrderEditUpdateDiscountUserError!
The list of errors that occurred from executing the mutation.