Sitecore Item Web API Client: Update

Shared Source

This is a quick update to announce that the client library now supports field update operations. There are a couple of considerations that need to be taken into account with regards to Security

  1. You must update the itemwebapi.access attribute for the target site in Sitecore.ItemWebApi.config to ReadWrite
  2. You must use an AuthenticatedSitecoreDataContext
  3. The user must have write permissions on the item

Warning!

Field update queries are affected by the scope parameter. If the query is scoped to the parent or children of the item that matches the query or item id the fields on the parent and child items will also be updated.

Example

Update queries can be used with either item or expression queries. In the case of expression queries, all items matching the query will be updated.

Download the code here