Sitecore Item Web API Client: Create

Shared Source

This is a quick update to announce that the client library now supports item creation 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 create permissions on the parent item
  4. To update the newly created items fields, the user must have write permissions for the item

Warning!

When creating new items you can define the parent item using Sitecore query, to be sure where your new item will be created limit the scope of the query to match a single item e.g. avoid things such as descendant selectors.

Example

Download the code here