Home

Awesome

SscPublish

Publish extension to Sitecore.Services.Client - A Web API method to securely trigger a Sitecore publish of an item or tree

Installation

  1. Download the package for your corresponding Sitecore version from here;
  2. Install with Installation Wizard

Post-installation:

Add an entry to ConnectionStrings.config with a SecurityToken to your SSC client:

<name="Sitecore.Services.Token.SecurityKey" connectionString="key=bHN81iFRbluzXGkNNLRqGAlCytp2w9fm"/>

Please, don't use this secret - instead, create a strong password (Eg: using https://passwordsgenerator.net/)

Calling the SSC method

Follow the pattern:

/sitecore/api/ssc/SscPublish.Controllers/Publish/{itemId}?{parameters}

IMPORTANT: In order to execute a publish, the user authenticated to SSC must be a member of the role sitecore\Sitecore Client Publishing

Parameters

Example calls

Available Publish Modes

The implementation will cast the string passed at the mode parameter into the enum Sitecore.Publishing.PublishMode

Accepted values are: