# updatePromotion

### Arguments

| Argument                                                                                                                  | Description                    |
| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------ |
| input ([UpdatePromotionInput](https://developer.firmhouse.com/graphql-api/api-reference/objects/update-promotion-input)!) | Parameters for UpdatePromotion |

### UpdatePromotionInput Arguments

| Argument                                                                                                                                                                      | Description                                                                                                                                                                                                                                                                                                                        |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| publicName ([String](https://developer.firmhouse.com/graphql-api/api-reference/objects/string))                                                                               | Alternative name to be displayed on invoices and checkout.                                                                                                                                                                                                                                                                         |
| autoApply ([Boolean](https://developer.firmhouse.com/graphql-api/api-reference/objects/boolean))                                                                              | Whether or not this promotion will automatically be applied on checkout                                                                                                                                                                                                                                                            |
| deactivationStrategy ([AppliedPromotionDeactivationStrategy](https://developer.firmhouse.com/graphql-api/api-reference/objects/applied-promotion-deactivation-strategy))      | Which mechanism will be used to deactivate the promotion                                                                                                                                                                                                                                                                           |
| deactivateAfterAmountIncludingTaxCents ([Int](https://developer.firmhouse.com/graphql-api/api-reference/objects/int))                                                         | The amount (in cents) after which the promotion should get deactivated on a customer                                                                                                                                                                                                                                               |
| deactivateAfterTimes ([Int](https://developer.firmhouse.com/graphql-api/api-reference/objects/int))                                                                           | After how many times this promotion is "used up" for a customer                                                                                                                                                                                                                                                                    |
| discountType ([PromotionDiscountTypeEnum](https://developer.firmhouse.com/graphql-api/api-reference/objects/promotion-discount-type-enum))                                    | Which type of the discount will be used.                                                                                                                                                                                                                                                                                           |
| amountCents ([Int](https://developer.firmhouse.com/graphql-api/api-reference/objects/int))                                                                                    | The amount of discount that this promotion gives.                                                                                                                                                                                                                                                                                  |
| activated ([Boolean](https://developer.firmhouse.com/graphql-api/api-reference/objects/boolean))                                                                              | Whether or not this promotion should be active                                                                                                                                                                                                                                                                                     |
| countryOverrides (\[[PromotionCountryOverrideInput](https://developer.firmhouse.com/graphql-api/api-reference/objects/promotion-country-override-input)!])                    | Country specific setting overrides for this promotion. These will override default promotion settings for specified countries. Add new or update override for existing name/countryCode combination. Note: This feature is currently in beta testing - overrides will only take effect once enabled for your account by Firmhouse. |
| id ([ID](https://developer.firmhouse.com/graphql-api/api-reference/objects/id)!)                                                                                              |                                                                                                                                                                                                                                                                                                                                    |
| title ([String](https://developer.firmhouse.com/graphql-api/api-reference/objects/string))                                                                                    | The title of the promotion as it will appear on invoices and in the portal.                                                                                                                                                                                                                                                        |
| percentDiscount ([Int](https://developer.firmhouse.com/graphql-api/api-reference/objects/int))                                                                                | The percentage of discount that this promotion gives.                                                                                                                                                                                                                                                                              |
| countryOverridesDelete (\[[PromotionCountryOverrideDeleteInput](https://developer.firmhouse.com/graphql-api/api-reference/objects/promotion-country-override-delete-input)!]) | Country specific setting overrides to remove for this promotion based on the name and countryCode.                                                                                                                                                                                                                                 |

### Return fields

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

#### promotion ([Promotion](https://developer.firmhouse.com/graphql-api/api-reference/objects/promotion))
