# updateRestriction (/api/reference/mutations/update-restriction)

Change a do-not-contact rule's kind, reason, source or last day. A field left out is unchanged, and null clears it. To end a rule on a day and keep the record, set `until`. The same input twice leaves the same rule.

```graphql
updateRestriction(
  input: UpdateRestrictionInput!
): UpdateRestrictionPayload!
```

### Arguments [#arguments]

#### [`updateRestriction.input`](#input) · [`UpdateRestrictionInput!`](/api/reference/inputs/update-restriction-input) `non-null` `input` [#input]
The rule and what to change on it.

### Type [#type]

#### [`UpdateRestrictionPayload`](/api/reference/objects/update-restriction-payload) `object` [#updaterestrictionpayload-object]
The rule that was changed.