# updateDiscountCode

### Arguments

| Argument                                                                                                                         | Description                       |
| -------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- |
| input ([UpdateDiscountCodeInput](https://developer.firmhouse.com/graphql-api/api-reference/objects/update-discount-code-input)!) | Parameters for UpdateDiscountCode |

### UpdateDiscountCodeInput Arguments

| Argument                                                                                         | Description                                                                         |
| ------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------- |
| metadata ([JSON](https://developer.firmhouse.com/graphql-api/api-reference/objects/json))        | Metadata that can be used by developers to store additional information on objects. |
| id ([ID](https://developer.firmhouse.com/graphql-api/api-reference/objects/id)!)                 | The ID of the discount code to update                                               |
| activated ([Boolean](https://developer.firmhouse.com/graphql-api/api-reference/objects/boolean)) | Whether the discount code is active/deactivated                                     |
| maxTimesUsed ([Int](https://developer.firmhouse.com/graphql-api/api-reference/objects/int))      | The max times this discount code can be used                                        |

### Return fields

#### discountCode ([DiscountCode](https://developer.firmhouse.com/graphql-api/api-reference/objects/discount-code))

#### errors (\[[ModelValidationError](https://developer.firmhouse.com/graphql-api/api-reference/objects/model-validation-error)!]!)
