# Set the rules of a Posting Module `SetPostingModuleRules` `PUT /api/chartofaccounts/{scope}/{code}/postingmodules/{postingModuleCode}/postingrules` - [OpenAPI fragment](https://www.lusid.com/docs/api/lusid/endpoints/chart-of-accounts/SetPostingModuleRules.json) - [Rendered page](https://www.lusid.com/docs/api/lusid/endpoints/chart-of-accounts/SetPostingModuleRules) Set the given Posting Modules rules, this will replace the existing set of rules for the posting module. ## Referenced schemas - [PostingModuleRule](https://www.lusid.com/docs/api/lusid/schemas/PostingModuleRule.txt) - [PostingModuleRulesUpdatedResponse](https://www.lusid.com/docs/api/lusid/schemas/PostingModuleRulesUpdatedResponse.txt) [< Chart Of Accounts](https://www.lusid.com/docs/api/lusid/endpoints/chart-of-accounts/llms.txt)