# updatePaymentRule

Updates a payment rule. Omitted fields are left unchanged.

```
updatePaymentRule(

  input: UpdatePaymentRuleInput!

): PaymentRule!
```

### Arguments[​](#arguments "Direct link to Arguments")

#### [`updatePaymentRule.input`](#input) ● [`UpdatePaymentRuleInput!`](https://docs.monei.com/apis/graphql/types/inputs/update-payment-rule-input/.md) non-null input[​](#input "Direct link to input")

### Type[​](#type "Direct link to Type")

#### [`PaymentRule`](https://docs.monei.com/apis/graphql/types/objects/payment-rule/.md) object[​](#paymentrule- "Direct link to paymentrule-")

Conditional rule the merchant configures to control card routing or payment-method visibility. Rules are evaluated per transaction; when `conditions` match, `action` is applied.
