API reference
updateWhiteLabelDiscount
Required permission: WhiteLabelDiscountWrite
updateWhiteLabelDiscount(
whiteLabelId: ID!
discountId: ID!
patch: DiscountPatch!
): DiscountArguments
| Name | Type | Description |
|---|---|---|
whiteLabelId |
ID! |
|
discountId |
ID! |
|
patch |
DiscountPatch! |
Returns
Example
mutation UpdateWhiteLabelDiscount($whiteLabelId: ID!, $discountId: ID!, $patch: DiscountPatch!) {
updateWhiteLabelDiscount(whiteLabelId: $whiteLabelId, discountId: $discountId, patch: $patch) {
id
isDisabled
code
title
description
validFrom
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { updateWhiteLabelDiscount(...) { __typename } }"}'