# updateWhiteLabelDiscount

> Required permission: WhiteLabelDiscountWrite

Source: https://docs.gastrogate.io/docs/api/mutations/updateWhiteLabelDiscount

```graphql
updateWhiteLabelDiscount(
  whiteLabelId: ID!
  discountId: ID!
  patch: DiscountPatch!
): Discount
```

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `whiteLabelId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `discountId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `patch` | [`DiscountPatch`](https://docs.gastrogate.io/docs/api/types/DiscountPatch.md)! |  |

## Returns

[`Discount`](https://docs.gastrogate.io/docs/api/types/Discount.md)

## Example

```graphql
mutation UpdateWhiteLabelDiscount($whiteLabelId: ID!, $discountId: ID!, $patch: DiscountPatch!) {
  updateWhiteLabelDiscount(whiteLabelId: $whiteLabelId, discountId: $discountId, patch: $patch) {
    id
    isDisabled
    code
    title
    description
    validFrom
  }
}
```

```bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { updateWhiteLabelDiscount(...) { __typename } }"}'
```
