public object Patch(string id, [FromBody] dynamic model)
        {
            if (model == null)
            {
                throw new ApiArgumentException("model");
            }

            RewriteId globalRulesId = new RewriteId(id);

            Site site = globalRulesId.SiteId == null ? null : SiteHelper.GetSite(globalRulesId.SiteId.Value);

            if (globalRulesId.SiteId != null && site == null)
            {
                return(NotFound());
            }

            string configPath = model == null ? null : ManagementUnit.ResolveConfigScope(model);

            GlobalRulesHelper.UpdateSection(model, site, globalRulesId.Path, configPath);

            ManagementUnit.Current.Commit();

            return(GlobalRulesHelper.SectionToJsonModel(site, globalRulesId.Path));
        }