# UpdatePaymentRuleInput

Input for `updatePaymentRule`. Omitted fields are left unchanged.

```
input UpdatePaymentRuleInput {

  id: ID!

  ruleType: PaymentRuleType

  conditions: PaymentConditionsInput

  action: PaymentActionInput

}
```

### Fields[​](#fields "Direct link to Fields")

#### [`UpdatePaymentRuleInput.id`](#id) ● [`ID!`](https://docs.monei.com/apis/graphql/types/scalars/id/.md) non-null scalar[​](#id "Direct link to id")

ID of the rule to update.

#### [`UpdatePaymentRuleInput.ruleType`](#rule-type) ● [`PaymentRuleType`](https://docs.monei.com/apis/graphql/types/enums/payment-rule-type/.md) enum[​](#rule-type "Direct link to rule-type")

Replace the rule type.

#### [`UpdatePaymentRuleInput.conditions`](#conditions) ● [`PaymentConditionsInput`](https://docs.monei.com/apis/graphql/types/inputs/payment-conditions-input/.md) input[​](#conditions "Direct link to conditions")

Replace the conditions.

#### [`UpdatePaymentRuleInput.action`](#action) ● [`PaymentActionInput`](https://docs.monei.com/apis/graphql/types/inputs/payment-action-input/.md) input[​](#action "Direct link to action")

Replace the action.

### Member Of[​](#member-of "Direct link to Member Of")

[`updatePaymentRule`](https://docs.monei.com/apis/graphql/operations/mutations/update-payment-rule/.md) mutation
