
## UpdateRule {#updaterule}

Change writable properties on a messageRule object and save the changes. Permissions One of the following permissions is required to call this API.To learn more, including how to choose permissions, see Permissions. Delegated (work or school account) MailboxSettings.ReadWrite Delegated (personal Microsoft account) MailboxSettings.ReadWrite Application MailboxSettings.ReadWrite

**Returns:** Updated rule

```cpp
UpdateRule(System::SharedPtr < Exchange::InboxRule > rule)
```

| Parameter | Description |
| --- | --- |
| rule | Rule to update |

