On a groovy rest script, I want to trigger some changes to a group of pages (as returned by Crafter Search), so I start by getting
siteItemService.getSiteItem( pages[1].localId )
Now, I would like to change some fields and store them, but, how do I do both things in CrafterCMS?