# Changing a discountClass

**URL:** <https://community.shopify.dev/t/changing-a-discountclass/1996>\
**Category:** GraphQL Admin API Troubleshooting\
**Tags:** general-gql-troubles\
**Created:** [November 7, 2024, 1:30pm UTC](https://community.shopify.dev/t/changing-a-discountclass/1996 "2024-11-07T13:30:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grant\_Donovan](https://avatars.discourse-cdn.com/v4/letter/g/ebca7d/32.png) [@Grant\_Donovan](https://community.shopify.dev/u/Grant_Donovan)\
**Post date:** [November 7, 2024, 1:30pm UTC](https://community.shopify.dev/t/changing-a-discountclass/1996/1 "2024-11-07T13:30:51Z")

</div>

Has anyone seen a way to change the discountClass

> **[DiscountClass - GraphQL Admin](https://shopify.dev/docs/api/admin-graphql/2024-10/enums/DiscountClass)**
>
> The class of the discount for combining purposes.

of a DiscountCodeBasic discount type, I can’t see any option on the mutation

> **[discountCodeBasicUpdate - GraphQL Admin](https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/discountCodeBasicUpdate)**
>
> Updates a basic code discount.

Thanks

Grant

---

<div class="post-metadata">

**Author:** ![Luke](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/luke/32/22023_2.png) [@Luke](https://community.shopify.dev/u/Luke)\
**Post date:** [November 8, 2024, 9:26am UTC](https://community.shopify.dev/t/changing-a-discountclass/1996/2 "2024-11-08T09:26:57Z")

</div>

I presume you can’t, you need to create a totally new Discount as its going to be a different Discount object type.
