2020.1

1 2 3 4 5 6 7 8 9 10
Table Of Contents

Summary of content (896 pages)

Options
Actions
JavaScript/jQuery fs-datamapper-upload.

  • PAGE 158

    var file = $("#datamapper")[0].files[0], named = $("#named").prop("checked"), persistent = $("#persistent").prop("checked"); var settings = { type: "POST", url: "/rest/serverengine/filestore/DataMiningConfig?persistent=" + persistent, data: file, processData: false, contentType: "application/octet-stream" }; if (named) settings.url += "&filename=" + file.name; $.ajax(settings) .done(function (response) { c.displayStatus("Request Successful"); c.displayInfo("Data Mapping Configuration '" + file.

  • PAGE 159

    Screenshot & Output Usage To run the example simply select the Browse button and then select the data mapping configuration you wish to upload using the selection dialog box.

  • PAGE 160

    uploaded file will be associated with (or can be referenced using) that name. Once the configuration and options are selected, simply select the Submit button to upload the configuration to the server's file store and the resulting Managed File ID for the data mapping configuration will be returned and displayed to the Results area. Discussion Firstly, we define an event handler that will run in response to the submission of the HTML form via the selection of the Submit button.

  • PAGE 161

    When the request is successful or done, a request response is received and the content of that response is passed as the function parameter response. In the example, we then display the value of this parameter which should be the new Managed File ID of the data mapping configuration in the file store. Further Reading See the File Store Service page of the REST API Reference section for further detail.

  • PAGE 162

    Uploading a Template to the File Store Problem You want to upload a template to the File Store so that it can be used as part of a Content Creation operation. Solution The solution is to create a request using the following URI and method type to submit the template to the server via the File Store REST service: Upload Template /rest/serverengine/filestore/template POST Example HTML5 fs-template-upload.

  • PAGE 163

    Options

    Actions
    JavaScript/jQuery fs-template-upload.js /* File Store Service - Upload Template Example */ (function ($, c) { "use strict"; $(function () { c.

  • PAGE 164

    var settings = { type: "POST", url: "/rest/serverengine/filestore/template?persistent=" + persistent, data: file, processData: false, contentType: "application/zip" }; if (named) settings.url += "&filename=" + file.name; $.ajax(settings) .done(function (response) { c.displayStatus("Request Successful"); c.displayInfo("Template '" + file.name + "' Uploaded Successfully"); c.displayResult("Managed File ID", response); }) .fail(c.

  • PAGE 165

    Usage To run the example simply select the Browse button and then select the template you wish to upload using the selection dialog box. Next you can specify the following options to use with the upload of the template: l l Named – allow this template to be identified/referenced by its Managed File Name as well as its Managed File ID Persistent – make this template persistent in the file store Note Only one Managed File in the file store can be associated with a specific name.

  • PAGE 166

    Method type and url arguments are specified as shown earlier, with the addition of a persistent query parameter which specifies whether the template is to be persistent in the file store when uploaded. We specify the variable file as the data or contents of the request, a contentType argument of "application/zip", and because we are sending file data we also specify a processData argument set to false.

  • PAGE 167

    Uploading a Job Creation Preset to the File Store Problem You want to upload a job creation preset to the File Store so that it can be used as part of a Job Creation operation. Solution The solution is to create a request using the following URI and method type to submit the job creation preset to the server via the File Store REST service: Upload Job Creation Preset /rest/serverengine/filestore/JobCreationConfig POST Example HTML5 fs-jcpreset-upload.

  • PAGE 168

    Options
    Actions
    JavaScript/jQuery fs-jcpreset-upload.

  • PAGE 169

    named = $("#named").prop("checked"), persistent = $("#persistent").prop("checked"); var settings = { type: "POST", url: "/rest/serverengine/filestore/JobCreationConfig?persistent=" + persistent, data: file, processData: false, contentType: "application/xml" }; if (named) settings.url += "&filename=" + file.name; $.ajax(settings) .done(function (response) { c.displayStatus("Request Successful"); c.displayInfo("Job Creation Preset '" + file.name + "' Uploaded Successfully"); c.

  • PAGE 170

    Screenshot & Output Usage To run the example simply select the Browse button and then select the job creation preset you wish to upload using the selection dialog box.

  • PAGE 171

    Once the preset and options are selected, simply select the Submit button to upload the preset to the server's file store and the resulting Managed File ID for the job creation preset will be returned and displayed to the Results area. Discussion Firstly, we define an event handler that will run in response to the submission of the HTML form via the selection of the Submit button. When our event handler function is called, we then obtain a reference to the local job creation preset previously selected.

  • PAGE 172

    Further Reading See the File Store Service page of the REST API Reference section for further detail.

  • PAGE 173

    Uploading an Output Creation Preset to the File Store Problem You want to upload an output creation preset to the File Store so that it can be used as part of a Output Creation operation. Solution The solution is to create a request using the following URI and method type to submit the output creation preset to the server via the File Store REST service: Upload Output Creation Preset /rest/serverengine/filestore/OutputCreationConfig POST Example HTML5 fs-ocpreset-upload.

  • PAGE 174

    Options
    Actions
    JavaScript/jQuery fs-ocpreset-upload.

  • PAGE 175

    named = $("#named").prop("checked"), persistent = $("#persistent").prop("checked"); var settings = { type: "POST", url: "/rest/serverengine/filestore/OutputCreationConfig?persistent=" + persistent, data: file, processData: false, contentType: "application/xml" }; if (named) settings.url += "&filename=" + file.name; $.ajax(settings) .done(function (response) { c.displayStatus("Request Successful"); c.displayInfo("Output Creation Preset '" + file.name + "' Uploaded Successfully"); c.

  • PAGE 176

    Screenshot & Output Usage To run the example simply select the Browse button and then select the output creation preset you wish to upload using the selection dialog box.

  • PAGE 177

    Once the preset and options are selected, simply select the Submit button to upload the preset to the server's file store and the resulting Managed File ID for the output creation preset will be returned and displayed to the Results area. Discussion Firstly, we define an event handler that will run in response to the submission of the HTML form via the selection of the Submit button.

  • PAGE 178

    Further Reading See the File Store Service page of the REST API Reference section for further detail.

  • PAGE 179

    Working with the Entity Services This section consists of a number of pages covering various useful working examples: 1. Finding Specific Data Entities in the Server 2. Finding all the Data Sets in the Server 3. Finding the Data Records in a Data Set 4. Finding all the Content Sets in the Server 5. Finding the Content Items in a Content Set 6. Finding all the Job Sets in the Server 7.

  • PAGE 180

    Finding Specific Data Entities in the Server Problem You want to find specific Data Entities stored within the PReS Connect Server based on a set of search criteria. Solution The solution is to create a request using the following URI and method type and submit it to the server via the Entity REST service: Find Data Entity /rest/serverengine/entity/find PUT Example HTML5 e-find-data-entity.html Find Data Entity Example PAGE 254

    $(function () { c.setupExample(); var $submitButton = $("#submit"), $cancelButton = $("#cancel"), $progressBar = $("progress"), operationId = null; $cancelButton.on("click", function () { if (operationId !== null) { /* Cancel an Operation */ $.ajax({ type: "POST", url: "/rest/serverengine/workflow/datamining/cancel/" + operationId }) .done(function (response) { c.displayInfo("Operation Cancelled!"); operationId = null; setTimeout(function () { $progressBar.attr("value", 0); $submitButton.

  • PAGE 255

    url: "/rest/serverengine/workflow/datamining/getResult/" + operationId }) .done(function (response, status, request) { c.displayHeading("Operation Result"); c.displaySubResult("Data Set ID", response); }) .fail(c.displayDefaultFailure); }; /* Process Data Mapping (PDF/VT to Data Set) */ $.ajax({ type: "POST", url: "/rest/serverengine/workflow/datamining/pdfvtds/" + dataFileId }) .done(function (response, status, request) { var progress = null; operationId = request.

  • PAGE 256

    if (response !== "done") { if (response !== progress) { progress = response; $progressBar.attr ("value", progress); } setTimeout(getProgress, 1000); } else { $progressBar.attr("value", (progress = 100)); c.displayInfo("Operation Completed"); getFinalResult(); operationId = null; setTimeout(function () { $progressBar.attr ("value", 0); $submitButton.prop ("disabled", false); $cancelButton.prop ("disabled", true); }, 100); } }) .fail(c.displayDefaultFailure); } }; getProgress(); }) .fail(c.

  • PAGE 257

    Screenshot & Output Usage To run the example simply enter the Managed File ID or Name for your PDF/VT file (previously uploaded to the file store) into the appropriate text field, and then select the Submit button to start the data mapping operation. Once the operation has started processing, the Operation ID will be displayed in the Results area and the Cancel button will become enabled, giving you the option to cancel the running operation.

  • PAGE 258

    Running a Data Mapping Operation for PDF/VT File (to Content Set) Problem You want to run a data mapping operation to produce a Content Set using only a PDF/VT file as input. Solution The solution is to make a series of requests using the following URIs and method types to submit, monitor progress and ultimately retrieve the result of the data mapping operation. There is also the option of cancelling an operation during processing if required.

  • PAGE 259

    PAGE 260

    $(function () { c.setupExample(); var $submitButton = $("#submit"), $cancelButton = $("#cancel"), $progressBar = $("progress"), operationId = null; $cancelButton.on("click", function () { if (operationId !== null) { /* Cancel an Operation */ $.ajax({ type: "POST", url: "/rest/serverengine/workflow/datamining/cancel/" + operationId }) .done(function (response) { c.displayInfo("Operation Cancelled!"); operationId = null; setTimeout(function () { $progressBar.attr("value", 0); $submitButton.

  • PAGE 261

    url: "/rest/serverengine/workflow/datamining/getResult/" + operationId }) .done(function (response, status, request) { c.displayHeading("Operation Result"); c.displaySubResult("Content Set ID", response); }) .fail(c.displayDefaultFailure); }; /* Process Data Mapping (PDF/VT to Content Set) */ $.ajax({ type: "POST", url: "/rest/serverengine/workflow/datamining/pdfvtcs/" + dataFileId }) .done(function (response, status, request) { var progress = null; operationId = request.

  • PAGE 262

    if (response !== "done") { if (response !== progress) { progress = response; $progressBar.attr ("value", progress); } setTimeout(getProgress, 1000); } else { $progressBar.attr("value", (progress = 100)); c.displayInfo("Operation Completed"); getFinalResult(); operationId = null; setTimeout(function () { $progressBar.attr ("value", 0); $submitButton.prop ("disabled", false); $cancelButton.prop ("disabled", true); }, 100); } }) .fail(c.displayDefaultFailure); } }; getProgress(); }) .fail(c.

  • PAGE 263

    Screenshot & Output Usage To run the example simply enter the Managed File ID or Name for your PDF/VT file (previously uploaded to the file store) into the appropriate text field, and then select the Submit button to start the data mapping operation. Once the operation has started processing, the Operation ID will be displayed in the Results area and the Cancel button will become enabled, giving you the option to cancel the running operation.

  • PAGE 264

    Running a Content Creation Operation for Print By Data Set Problem You want to run a content creation operation to produce a Content Set using a template and an existing set of Data Records as inputs. Solution The solution is to make a series of requests using the following URIs and method types to submit, monitor progress and ultimately retrieve the result of the content creation operation. There is also the option of cancelling an operation during processing if required.

  • PAGE 265

    3.4.1.min.js"> PAGE 266

    /* Content Creation Service - Process Content Creation (By Data Set) Example */ (function ($, c) { "use strict"; $(function () { c.setupExample(); var $submitButton = $("#submit"), $cancelButton = $("#cancel"), $progressBar = $("progress"), operationId = null; $cancelButton.on("click", function () { if (operationId !== null) { /* Cancel an Operation */ $.ajax({ type: "POST", url: "/rest/serverengine/workflow/contentcreation/cancel/" + operationId }) .done(function (response) { c.

  • PAGE 267

    var getFinalResult = function () { /* Get Result of Operation */ $.ajax({ type: "POST", url: "/rest/serverengine/workflow/contentcreation/getResult/" + operationId }) .done(function (response, status, request) { c.displayHeading("Operation Result"); c.displaySubResult("Content Set IDs", response); }) .fail(c.displayDefaultFailure); }; /* Process Content Creation (By Data Set) */ $.ajax({ type: "POST", url: "/rest/serverengine/workflow/contentcreation/" + templateId + "/" + dataSetId }) .

  • PAGE 268

    cache: false, url: "/rest/serverengine/workflow/contentcreation/getProgress/" + operationId }) .done(function (response, status, request) { if (response !== "done") { if (response !== progress) { progress = response; $progressBar.attr ("value", progress); } setTimeout(getProgress, 1000); } else { $progressBar.attr("value", (progress = 100)); c.displayInfo("Operation Completed"); getFinalResult(); operationId = null; setTimeout(function () { $progressBar.attr ("value", 0); $submitButton.

  • PAGE 269

    Screenshot & Output Usage To run the example simply enter the Data Set ID and the Managed File ID or Name of your template (previously uploaded to the file store) into the appropriate text fields, and then select the Submit button to start the content creation operation. Once the operation has started processing, the Operation ID will be displayed in the Results area and the Cancel button will become enabled, giving you the option to cancel the running operation.

  • PAGE 270

    Running a Content Creation Operation for Print By Data Record (Using JSON) Problem You want to run a content creation operation to produce a Content Set using a template and an existing set of Data Records as inputs. Solution The solution is to make a series of requests using the following URIs and method types to submit, monitor progress and ultimately retrieve the result of the content creation operation. There is also the option of cancelling an operation during processing if required.

  • PAGE 271

    Process Content Creation (By Data Record) (JSON) Example PAGE 272

    JavaScript/jQuery cc-process-by-dre-json.js /* Content Creation Service - Process Content Creation (By Data Record) (JSON) Example */ (function ($, c) { "use strict"; $(function () { c.setupExample(); var $submitButton = $("#submit"), $cancelButton = $("#cancel"), $progressBar = $("progress"), operationId = null; $cancelButton.on("click", function () { if (operationId !== null) { /* Cancel an Operation */ $.ajax({ type: "POST", url: "/rest/serverengine/workflow/contentcreation/cancel/" + operationId }) .

  • PAGE 273

    var dataRecordIds = $("#datarecords").val(), templateId = $("#template").val(); var getFinalResult = function () { /* Get Result of Operation */ $.ajax({ type: "POST", url: "/rest/serverengine/workflow/contentcreation/getResult/" + operationId }) .done(function (response, status, request) { c.displayHeading("Operation Result"); c.displaySubResult("Content Set IDs", response); }) .fail(c.displayDefaultFailure); }; /* Process Content Creation (By Data Record) (JSON) */ $.

  • PAGE 274

    var getProgress = function () { if (operationId !== null) { /* Get Progress of Operation */ $.ajax({ type: "GET", cache: false, url: "/rest/serverengine/workflow/contentcreation/getProgress/" + operationId }) .done(function (response, status, request) { if (response !== "done") { if (response !== progress) { progress = response; $progressBar.attr ("value", progress); } setTimeout(getProgress, 1000); } else { $progressBar.attr("value", (progress = 100)); c.

  • PAGE 275

    getProgress(); }) .fail(c.displayDefaultFailure); }); }); }(jQuery, Common)); Screenshot & Output Usage To run the example simply enter a comma delimited list of your Data Record IDs and the Managed File ID or Name of your template (previously uploaded to the File Store) into the appropriate text fields, and then select the Submit button to start the content creation operation.

  • PAGE 276

    The progress of the operation will be displayed in the progress bar, and once the content creation operation has completed, the IDs of the Content Sets created will be returned and displayed to the Results area. Further Reading See the Content Creation Service page of the REST API Reference section for further detail. Running a Content Creation Operation for Print By Data (Using JSON) Problem You want to run a content creation operation to produce a Content Set using a template and JSON data as inputs.

  • PAGE 277

    Example HTML5 cc-process-by-data-json.html Process Content Creation (By Data) (JSON) Example PAGE 278

    value="Submit"> JavaScript/jQuery cc-process-by-data-json.js /* Content Creation Service - Process Content Creation (By Data) (JSON) Example */ (function ($, c) { "use strict"; $(function () { c.setupExample(); var $submitButton = $("#submit"), $cancelButton = $("#cancel"), $progressBar = $("progress"), operationId = null, jsonData = null; c.setupJsonDataFileInput($("#datafile"), function (data) { jsonData = data }); $cancelButton.

  • PAGE 279

    $cancelButton.prop("disabled", true); }, 100); }) .fail(c.displayDefaultFailure); } }); $("form").on("submit", function (event) { event.preventDefault(); if (!c.checkSessionValid()) return; var templateId = $("#template").val(); var getFinalResult = function () { /* Get Result of Operation */ $.ajax({ type: "POST", url: "/rest/serverengine/workflow/contentcreation/getResult/" + operationId }) .done(function (response, status, request) { c.displayHeading("Operation Result"); c.

  • PAGE 280

    ("operationId"); $submitButton.prop("disabled", true); $cancelButton.prop("disabled", false); c.displayStatus("Content Creation Operation Successfully Submitted"); c.displayResult("Operation ID", operationId); var getProgress = function () { if (operationId !== null) { /* Get Progress of Operation */ $.ajax({ type: "GET", cache: false, url: "/rest/serverengine/workflow/contentcreation/getProgress/" + operationId }) .

  • PAGE 281

    ("disabled", false); $cancelButton.prop ("disabled", true); }, 100); } }) .fail(c.displayDefaultFailure); } }; getProgress(); }) .fail(c.

  • PAGE 282

    Usage To run the example you first need to use the Browse button to select an appropriate JSON Data File and then enter the Template Managed File ID/Name (previously uploaded to the File Store) into the appropriate text field as your inputs. Select the Submit button to start the content creation operation. Once the operation has started processing, the Operation ID will be displayed in the Results area and the Cancel button will become enabled, giving you the option to cancel the running operation.

  • PAGE 283

    Example HTML5 cc-preview-pdf-by-dre.html Create Preview PDF (By Data Record) Example PAGE 284

    JavaScript/jQuery cc-preview-pdf-by-dre.js /* Content Creation Service - Create Preview PDF (By Data Record) Example */ (function ($, c) { "use strict"; $(function () { c.setupExample(); $("form").on("submit", function (event) { event.preventDefault(); if (!c.checkSessionValid()) return; var params = { dataRecordId: $("#datarecord").val(), templateId: $("#template").val() }; /* Create Preview PDF (By Data Record) */ $.

  • PAGE 285

    Screenshot & Output Usage To run the example you need to select the specific Data Record ID and the Template Managed File ID/Name (previously uploaded to the File Store).

  • PAGE 286

    Once the inputs are entered, select the Submit button to create the preview PDF. When the response returns, a Managed File ID of the preview PDF (in the file store) will be displayed in the Results area. Further Reading See the "Content Creation Service" on page 521 page of the REST API Reference section for further detail. Creating a Preview PDF for Print By Data Problem You want to create a preview PDF using a data file, data mapping configuration and a template as inputs.

  • PAGE 287

    Content Creation Service - Create Preview PDF (By Data) Example

    Inputs
  • PAGE 288

    /* Content Creation Service - Create Preview PDF (By Data) Example */ (function ($, c) { "use strict"; $(function () { c.setupExample(); $("form").on("submit", function (event) { event.preventDefault(); if (!c.checkSessionValid()) return; var file dmConfigId templateId persist = = = = $("#datafile")[0].files[0], $("#datamapper").val(), $("#template").val(), $("#persist").prop("checked"); /* Create Preview PDF (By Data) */ $.

  • PAGE 289

    Screenshot & Output Usage To run the example you first need to use the Browse button to select an appropriate Data File to use as an input using the selection dialog box. Next, you need to enter the Managed File ID or Name of both your data mapping configuration and template (previously uploaded to the file store) into the appropriate text fields.

  • PAGE 290

    Further Reading See the "Content Creation Service" on page 521 page of the REST API Reference section for further detail. Creating a Preview PDF for Print By Data (Using JSON) Problem You want to create a preview PDF using JSON data and a template as inputs.

  • PAGE 291

    Inputs

    Actions
    JavaScript/jQuery cc-preview-pdf-by-data-json.

  • PAGE 292

    var templateId = $("#template").val(); /* Create Preview PDF (By Data) (JSON) */ $.ajax({ type: "POST", url: "/rest/serverengine/workflow/contentcreation/pdfpreview/" + templateId, data: JSON.stringify({ data: jsonData }), contentType: "application/json" }) .done(function (response, status, request) { c.displayStatus("Request Successful"); c.displayResult("Managed File ID", response); }) .fail(c.

  • PAGE 293

    Usage To run the example you first need to use the Browse button to select an appropriate JSON Data File to use as an input using the selection dialog box. Next, you need to enter the Managed File ID or Name of your template (previously uploaded to the file store) into the appropriate text field. Once the inputs are selected/entered, select the Submit button to create the preview PDF. When the response returns, a Managed File ID of the preview PDF (in the file store) will be displayed in the Results area.

  • PAGE 294

    Create Preview Image (By Data Record) (JSON) Example PAGE 295

    placeholder="Section Name">

    JavaScript/jQuery cc-preview-image-by-dre-json.js /* Content Creation Service - Create Preview Image (By Data Record) (JSON) Example */ (function ($, c) { "use strict"; $(function () { c.setupExample(); var $quality = $("#quality"), $archive = $("#archive"), $bleed = $("#bleed"), $pages = $("#pages"), $viewPortWidth = $("#viewPortWidth"); $("#type") .

  • PAGE 297

    true); }, "Invalid Pages value entered"); if (event.target.validity.valid && $archive.val() === "false" && c.validateNumericRange(event.target.value, true, true)) { $archive.val("true"); } }) .trigger("change"); $("#context") .on("change", function (event) { var isDefault = ($(event.target).val() === "default"), isPrint = ($(event.target).val() === "print"); $pages.prop("disabled", (!isDefault && !isPrint)); $bleed.prop("disabled", (!isDefault && !isPrint)); $viewPortWidth.

  • PAGE 298

    if (context !== "default") config.context = context; if (section.length) config.section = section; if (!$quality.prop("disabled")) config.quality = $quality.val(); if (archive !== "default") config.archive = (archive === "true"); if (!$bleed.prop("disabled")) config.bleed = $bleed.prop("checked"); if (!$viewPortWidth.prop("disabled")) config.viewPortWidth = $viewPortWidth.val(); if (!$pages.prop("disabled") && $pages.val().trim ().length) config.pages = $pages.

  • PAGE 299

    Screenshot & Output Page 299

  • PAGE 300

    Page 300

  • PAGE 301

    Usage To run the example you first select the appropriate Data Record ID and then add the Template Managed File ID/Name (previously uploaded to the File Store) into the appropriate text fields as your inputs. Next, you can specify the following JSON Image Parameter to use when creating the preview image: l l Context – the context in the template to be used in the creation of the preview image (Default value is determined by the first context in the template).

  • PAGE 302

    Alternatively, if the Context image parameter is set to a value of Email or Web, then the following image parameter can also be specified: l Viewport Width – the image width of the preview image in pixels. Once the inputs and image parameters have been entered/specified, select the Submit button to create the preview image. When the response returns, a download link of the preview image (or images) will be displayed in the Results area.

  • PAGE 303

    Example PAGE 304

  • PAGE 305

    JavaScript/jQuery cc-preview-image-by-data-json.js /* Content Creation Service - Create Preview Image (By Data) (JSON) Example */ (function ($, c) { "use strict"; $(function () { c.setupExample(); var $quality = $("#quality"), $archive = $("#archive"), $bleed = $("#bleed"), $pages = $("#pages"), $viewPortWidth = $("#viewPortWidth"), jsonData = null; c.setupJsonDataFileInput($("#datafile"), function (data) { jsonData = data }); $("#type") .

  • PAGE 306

    "Invalid Pages value entered"); if (event.target.validity.valid && $archive.val() === "false" && c.validateNumericRange(event.target.value, true, true)) { $archive.val("true"); } }) .trigger("change"); $("#context") .on("change", function (event) { var isDefault = ($(event.target).val() === "default"), isPrint = ($(event.target).val() === "print"); $pages.prop("disabled", (!isDefault && !isPrint)); $bleed.prop("disabled", (!isDefault && !isPrint)); $viewPortWidth.

  • PAGE 307

    if (context !== "default") config.context = context; if (section.length) config.section = section; if (!$quality.prop("disabled")) config.quality = $quality.val(); if (archive !== "default") config.archive = (archive === "true"); if (!$bleed.prop("disabled")) config.bleed = $bleed.prop("checked"); if (!$viewPortWidth.prop("disabled")) config.viewPortWidth = $viewPortWidth.val(); if (!$pages.prop("disabled") && $pages.val().trim ().length) config.pages = $pages.

  • PAGE 308

    Screenshot & Output Page 308

  • PAGE 309

    Page 309

  • PAGE 310

    Usage To run the example you first need to use the Browse button to select an appropriate JSON Data File to use as an input using the selection dialog box. Next, you need to enter the Managed File ID or Name of your template (previously uploaded to the file store) into the appropriate text field.

  • PAGE 311

    Alternatively, if the Context image parameter is set to a value of Email or Web, then the following image parameter can also be specified: l Viewport Width – the image width of the preview image in pixels. Once the inputs and image parameters have been entered/specified, select the Submit button to create the preview image. When the response returns, a download link of the preview image (or images) will be displayed in the Results area.

  • PAGE 312

    Running a Content Creation Operation for Email By Data Record (Using JSON) Problem You want to run a content creation operation to create and potentially send email content using a template and an existing set of Data Records as inputs. Solution The solution is to make a series of requests using the following URIs and method types to submit, monitor progress and ultimately retrieve the result of the content creation operation.

  • PAGE 313

    Process Content Creation (By Data Record) (JSON) Example PAGE 314

    PAGE 315

    Progress & Actions
    JavaScr

  • PAGE 316

    $host = $("#host"), $eml = $("#eml"), $useAuth = $("#useauth"), $startTLS = $("#starttls"), $username = $("#username"), $password = $("#password"), $submitButton = $("#submit"), $cancelButton = $("#cancel"), $progressBar = $("progress"), operationId = null; $cancelButton.on("click", function () { if (operationId !== null) { /* Cancel an Operation */ $.ajax({ type: "POST", url: "/rest/serverengine/workflow/contentcreation/email/cancel/" + operationId }) .done(function (response) { c.

  • PAGE 317

    .trigger("change"); $host .on("change", function (event) { var host = event.target.value.trim(); $useAuth .prop("disabled", !host.length) .trigger("change"); $sender .prop("disabled", !host.length) .trigger("change"); $eml .prop("disabled", host.length) .trigger("change"); }) .trigger("change"); $eml .on("change", function (event) { if (!$host.val().trim().length) $sender .prop("disabled", !$(event.target).prop ("checked")) .trigger("change"); }) .trigger("change"); $useAuth .

  • PAGE 318

    var dataRecordIds = $("#datarecords").val(), templateId = $("#template").val(), section = $("#section").val().trim(), host = $host.val().trim(); var getFinalResult = function () { /* Get Result of Operation */ $.ajax({ type: "POST", url: "/rest/serverengine/workflow/contentcreation/email/getResult/" + operationId }) .done(function (response, status, request) { c.displayHeading("Operation Result"); if (host.length) c.displaySubResult("Email Report", response); else c.

  • PAGE 319

    true; } if (host.length) { config.host = host; if ($useAuth.prop("checked")) config.useAuth = true; if (config.useAuth) { if ($startTLS.prop("checked")) config.useStartTLS = true; config.user = $username.val(); config.password = $password.val(); } } else { if ($eml.prop("checked")) config.eml = true; } if (attachPdfPage !== "default") config.attachPdfPage = (attachPdfPage === "true"); if ($("#attachweb").prop("checked")) config.

  • PAGE 320

    Successfully Submitted"); c.displayResult("Operation ID", operationId); var getProgress = function () { if (operationId !== null) { /* Get Progress of Operation */ $.ajax({ type: "GET", cache: false, url: "/rest/serverengine/workflow/contentcreation/email/getProgress/" + operationId }) .done(function (response, status, request) { if (response !== "done") { if (response !== progress) { progress = response; $progressBar.attr ("value", progress); } setTimeout(getProgress, 1000); } else { $progressBar.

  • PAGE 321

    .fail(c.displayDefaultFailure); } }; getProgress(); }) .fail(c.

  • PAGE 322

    Screenshot & Output Page 322

  • PAGE 323

    Usage To run the example you first need to enter a comma delimited list of your Data Record IDs and the Managed File ID or Name of your template (previously uploaded to the file store) into the appropriate text fields as your inputs. The example can then be configured (via the specification of email parameters) to run in one of two ways: l Create email output to the Connect File Store. l Create email output directly to a SMTP mail server.

  • PAGE 324

    l l l Section – the section within the Email context of the template to use. Attach Print Context as PDF – if a Print context exists in the template, create its output as a PDF file and attach it to the email output (Default value depends on Template). Attach Web Context as HTML – if a Web context exists in the template, create output of its enabled sections (a single section by default) as HTML files and attach them to the email output.

  • PAGE 325

    Further Reading See the Content Creation (Email) Service page of the REST API Reference section for further detail. Running a Content Creation Operation for Email By Data (Using JSON) Problem You want to run a content creation operation to create and potentially send email content using a template and JSON data as inputs.

  • PAGE 326

    Example HTML5 cce-process-by-data-json.html Process Content Creation (By Data Record) (JSON) Example PAGE 327

    PAGE 328

    Progress & Actions
  • PAGE 329

    var $sender = $("#sender"), $senderName = $("#sendername"), $useSender = $("#usesender"), $host = $("#host"), $eml = $("#eml"), $useAuth = $("#useauth"), $startTLS = $("#starttls"), $username = $("#username"), $password = $("#password"), $submitButton = $("#submit"), $cancelButton = $("#cancel"), $progressBar = $("progress"), operationId = null, jsonData = null; c.setupJsonDataFileInput($("#datafile"), function (data) { jsonData = data }); $cancelButton.

  • PAGE 330

    .on("change", function (event) { var sender = event.target.value.trim(), disabled = $(event.target).prop("disabled"); $senderName.prop("disabled", (disabled || !sender.length)); $useSender.prop("disabled", (disabled || !sender.length)); }) .trigger("change"); $host .on("change", function (event) { var host = event.target.value.trim(); $useAuth .prop("disabled", !host.length) .trigger("change"); $sender .prop("disabled", !host.length) .trigger("change"); $eml .prop("disabled", host.length) .

  • PAGE 331

    }); }) .trigger("change"); $("form").on("submit", function (event) { event.preventDefault(); if (!c.checkSessionValid()) return; var templateId = $("#template").val(), section = $("#section").val().trim(), host = $host.val().trim(); var getFinalResult = function () { /* Get Result of Operation */ $.ajax({ type: "POST", url: "/rest/serverengine/workflow/contentcreation/email/getResult/" + operationId }) .done(function (response, status, request) { c.displayHeading("Operation Result"); if (host.length) c.

  • PAGE 332

    if (!$sender.prop("disabled") && sender.length) { config.sender = sender; var senderName = $senderName.val().trim(); if (senderName.length) config.senderName = senderName; if ($useSender.prop("checked")) config.useSender = true; } if (host.length) { config.host = host; if ($useAuth.prop("checked")) config.useAuth = true; if (config.useAuth) { if ($startTLS.prop("checked")) config.useStartTLS = true; config.user = $username.val(); config.password = $password.val(); } } else { if ($eml.

  • PAGE 333

    ("operationId"); $submitButton.prop("disabled", true); $cancelButton.prop("disabled", false); c.displayStatus("Content Creation Operation Successfully Submitted"); c.displayResult("Operation ID", operationId); var getProgress = function () { if (operationId !== null) { /* Get Progress of Operation */ $.ajax({ type: "GET", cache: false, url: "/rest/serverengine/workflow/contentcreation/email/getProgress/" + operationId }) .

  • PAGE 334

    ("disabled", false); $cancelButton.prop ("disabled", true); }, 100); } }) .fail(c.displayDefaultFailure); } }; getProgress(); }) .fail(c.

  • PAGE 335

    Screenshot & Output Page 335

  • PAGE 336

    Page 336

  • PAGE 337

    Usage To run the example you first need to use the Browse button to select an appropriate JSON Data File and then enter the Managed File ID\Name of your template (previously uploaded to the file store) into the appropriate text fields as your inputs. The example can then be configured (via the specification of email parameters) to run in one of two ways: l Create email output to the Connect File Store. l Create email output directly to a SMTP mail server.

  • PAGE 338

    l l l Section – the section within the Email context of the template to use. Attach Print Context as PDF – if a Print context exists in the template, create its output as a PDF file and attach it to the email output (Default value depends on Template). Attach Web Context as HTML – if a Web context exists in the template, create output of its enabled sections (a single section by default) as HTML files and attach them to the email output.

  • PAGE 339

    Further Reading See the Content Creation (Email) Service page of the REST API Reference section for further detail.

  • PAGE 340

    Creating Content for Web By Data Record Problem You want to create and retrieve web content using a template and an existing Data Record as inputs. Solution The solution is to create a request using the following URI and method type and submit it to the server via the Content Creation (HTML) REST service: Process Content Creation (By Data Record) /rest/serverengine/workflow/contentcreation/html/ {templateId}/{dataRecordId: [0-9]+} GET Example HTML5 cch-process-by-dre.

  • PAGE 341

    HTML Parameters
    HTML Parameters
    JavaScript/jQuery cch-process-by-data-json.js /* Content Creation (HTML) Service - Process Content Creation (By Data) (JSON) Example */ (function ($, c) { "use strict"; $(function () { c.setupExample(); var jsonData = null; c.setupJsonDataFileInput($("#datafile"), function (data) { jsonData = data }); $("form").on("submit", function (event) { event.

  • PAGE 354

    url: "/rest/serverengine/workflow/contentcreation/html/" + templateId + "?inline=" + inline, data: JSON.stringify({ data: jsonData }), contentType: "application/json", dataType: "file" }; if (section.length) settings.url += "§ion=" + section; if (cssSelector.length) settings.url += "&cssSelector=" + escape(cssSelector); $.ajax(settings) .done(function (response, status, request) { c.displayStatus("Request Successful"); c.displayResult("Result", c.dataToFileLink (response, "Output"), false); }) .fail(c.

  • PAGE 355

    Screenshot & Output Usage To run the example you first need to use the Browse button to select an appropriate JSON Data File and then enter the Managed File ID or Name of your template (previously uploaded to the file store) into the appropriate text field. Next you can specify the HTML parameters to use when creating the web content: l Section – the section within the Web context of the template to use. l Inline Mode – the inline mode to be used in the creation of content.

  • PAGE 356

    l CSS Selector – a CSS selector for the creation of only a specific HTML element within the template. Lastly, select the Submit button to create and retrieve the web content. When the response returns a Result Link will be displayed in the Results area. This link can be selected to view the resulting web content that was created. Further Reading See the Content Creation (HTML) Service page of the REST API Reference section for further detail.

  • PAGE 357

    Running a Job Creation Operation By Content Set (Using JSON) Problem You want to run a job creation operation to produce a Job Set using a job creation preset and an existing set of Content Sets as inputs. Solution The solution is to make a series of requests using the following URIs and method types to submit, monitor progress and ultimately retrieve the result of the job creation operation. There is also the option of cancelling an operation during processing if required.

  • PAGE 358

    3.4.1.min.js">

    Job Creation Service - Process Job Creation (By Content Set) (JSON) Example

    Inputs
    PAGE 359

    /* Job Creation Service - Process Job Creation (By Content Set) (JSON) Example */ (function ($, c) { "use strict"; $(function () { c.setupExample(); var $submitButton = $("#submit"), $cancelButton = $("#cancel"), $progressBar = $("progress"), operationId = null; $cancelButton.on("click", function () { if (operationId !== null) { /* Cancel an Operation */ $.ajax({ type: "POST", url: "/rest/serverengine/workflow/jobcreation/cancel/" + operationId }) .done(function (response) { c.

  • PAGE 360

    var getFinalResult = function () { /* Get Result of Operation */ $.ajax({ type: "POST", url: "/rest/serverengine/workflow/jobcreation/getResult/" + operationId }) .done(function (response, status, request) { c.displayHeading("Operation Result"); c.displaySubResult("Job Set ID", response); }) .fail(c.displayDefaultFailure); }; /* Process Job Creation (By Content Set) (JSON) */ $.ajax({ type: "POST", url: "/rest/serverengine/workflow/jobcreation/" + configId, data: JSON.stringify(c.

  • PAGE 361

    cache: false, url: "/rest/serverengine/workflow/jobcreation/getProgress/" + operationId }) .done(function (response, status, request) { if (response !== "done") { if (response !== progress) { progress = response; $progressBar.attr ("value", progress); } setTimeout(getProgress, 1000); } else { $progressBar.attr("value", (progress = 100)); c.displayInfo("Operation Completed"); getFinalResult(); operationId = null; setTimeout(function () { $progressBar.attr ("value", 0); $submitButton.

  • PAGE 362

    Screenshot & Output Usage To run the example simply enter a comma delimited list of your Content Set IDs and the Managed File ID or Name of your job creation preset (previously uploaded to the file store) into the appropriate text fields, and then select the Submit button to start the job creation operation. Once the operation has started processing, the Operation ID will be displayed in the Results area and the Cancel button will become enabled, giving you the option to cancel the running operation.

  • PAGE 363

    Running a Job Creation Operation By Content Set with Runtime Parameters (Using JSON) Problem You want to run a job creation operation to produce a Job Set using a job creation preset, an existing set of Content Sets and runtime parameters as inputs. Solution The solution is to make a series of requests using the following URIs and method types to submit, monitor progress and ultimately retrieve the result of the job creation operation.

  • PAGE 364

    Process Job Creation (By Content Set) (Runtime Parameters) (JSON) Example PAGE 365

    Progress & Actions
    PAGE 366

    PAGE 367

    c.setupExample(); var $parameters = $("#parameters"), $submitButton = $("#submit"), $cancelButton = $("#cancel"), $progressBar = $("progress"), operationId = null; c.setupRuntimeParametersTableInput($parameters); $cancelButton.on("click", function () { if (operationId !== null) { /* Cancel an Operation */ $.ajax({ type: "POST", url: "/rest/serverengine/workflow/jobcreation/cancel/" + operationId }) .done(function (response) { c.

  • PAGE 368

    $.ajax({ type: "POST", url: "/rest/serverengine/workflow/jobcreation/getResult/" + operationId }) .done(function (response, status, request) { c.displayHeading("Operation Result"); c.displaySubResult("Job Set ID", response); }) .fail(c.displayDefaultFailure); }; /* Construct JSON Identifier List (with Runtime Parameters) */ var jsonConfig = c.plainIDListToJson (contentSetIds), jsonParameters = c.tableToJsonRuntimeParameters ($parameters); if (Object.keys(jsonParameters.parameters).length) jsonConfig.

  • PAGE 369

    var getProgress = function () { if (operationId !== null) { // Get Progress of Operation $.ajax({ type: "GET", cache: false, url: "/rest/serverengine/workflow/jobcreation/getProgress/" + operationId }) .done(function (response, status, request) { if (response !== "done") { if (response !== progress) { progress = response; $progressBar.attr ("value", progress); } setTimeout(getProgress, 1000); } else { $progressBar.attr("value", (progress = 100)); c.

  • PAGE 370

    }; getProgress(); }) .fail(c.displayDefaultFailure); }); }); }(jQuery, Common)); Screenshot & Output Usage To run the example simply enter a comma delimited list of your Content Set IDs and the Managed File ID/Name of your job creation preset (previously uploaded to the file store) into the appropriate text fields.

  • PAGE 371

    Next, specify one or more Runtime Parameters.

  • PAGE 372

    Running an Output Creation Operation By Job Set Problem You want to run an output creation operation to produce print output using an output creation preset and an existing Job Set as inputs. Solution The solution is to make a series of requests using the following URIs and method types to submit, monitor progress and ultimately retrieve the result of the output creation operation. There is also the option of cancelling an operation during processing if required.

  • PAGE 373

    Process Output Creation (By Job Set) Example PAGE 374

    JavaScript/jQuery oc-process-by-jse.js /* Output Creation Service - Process Output Creation (By Job Set) Example */ (function ($, c) { "use strict"; $(function () { c.setupExample(); var $submitButton = $("#submit"), $cancelButton = $("#cancel"), $progressBar = $("progress"), operationId = null; $cancelButton.on("click", function () { if (operationId !== null) { /* Cancel an Operation */ $.

  • PAGE 375

    }); $("form").on("submit", function (event) { event.preventDefault(); if (!c.checkSessionValid()) return; var jobSetId = $("#jobset").val(), configId = $("#ocpreset").val(); var getFinalResult = function () { var resultastxt = $("#resultastxt").prop ("checked"), result = (resultastxt) ? "getResultTxt" : "getResult"; /* Get Result of Operation */ var settings = { type: "POST", url: "/rest/serverengine/workflow/outputcreation/" + result + "/" + operationId }; if (!resultastxt) settings.dataType = "file"; $.

  • PAGE 376

    }) .done(function (response, status, request) { var progress = null; operationId = request.getResponseHeader ("operationId"); $submitButton.prop("disabled", true); $cancelButton.prop("disabled", false); c.displayStatus("Output Creation Operation Successfully Submitted"); c.displayResult("Operation ID", operationId); var getProgress = function () { if (operationId !== null) { /* Get Progress of Operation */ $.

  • PAGE 377

    operationId = null; setTimeout(function () { $progressBar.attr ("value", 0); $submitButton.prop ("disabled", false); $cancelButton.prop ("disabled", true); }, 100); } }) .fail(c.displayDefaultFailure); } }; getProgress(); }) .fail(c.

  • PAGE 378

    Screenshot & Output Usage To run the example simply enter the Job Set ID and the Managed File ID or Name of your output creation preset (previously uploaded to the file store) into the appropriate text fields, and then check any options that you may require: l Get Result as Text – Return the result as text specifically. In this example this would return the absolute path to the output file(s). Lastly, select the Submit button to start the Output creation operation.

  • PAGE 379

    The progress of the operation will be displayed in the progress bar, and once the output creation operation has completed, the output result will be returned and displayed to the Results area. Note If the result returned is expected to be file data, then then a download link will be displayed. Further Reading See the Output Creation Service page of the REST API Reference section for further detail.

  • PAGE 380

    Running an Output Creation Operation By Job Set (Using JSON) Problem You want to run an output creation operation to produce print output using an output creation preset and an existing Job Set as inputs. Solution The solution is to make a series of requests using the following URIs and method types to submit, monitor progress and ultimately retrieve the result of the output creation operation. There is also the option of cancelling an operation during processing if required.

  • PAGE 381

    Process Output Creation (By Job Set) (JSON) Example PAGE 382

    Progress & Actions

    JavaScript/jQuery oc-process-by-jse-json.js /* Output Creation Service - Process Output Creation (By Job Set) (JSON) Example */ (function ($, c) { "use strict"; $(function () { c.

  • PAGE 383

    operationId = null; setTimeout(function () { $progressBar.attr("value", 0); $submitButton.prop("disabled", false); $cancelButton.prop("disabled", true); }, 100); }) .fail(c.displayDefaultFailure); } }); $("form").on("submit", function (event) { event.preventDefault(); if (!c.checkSessionValid()) return; var jobSetId = $("#jobset").val(), configId = $("#ocpreset").val(), createOnly = $("#createonly").prop("checked"); var getFinalResult = function () { var resultastxt = $("#resultastxt").

  • PAGE 384

    } }) .fail(c.displayDefaultFailure); }; /* Process Output Creation (By Job Set) (JSON) */ $.ajax({ type: "POST", url: "/rest/serverengine/workflow/outputcreation/" + configId, data: JSON.stringify(c.plainIDToJson (jobSetId, createOnly)), contentType: "application/json" }) .done(function (response, status, request) { var progress = null; operationId = request.getResponseHeader ("operationId"); $submitButton.prop("disabled", true); $cancelButton.prop("disabled", false); c.

  • PAGE 385

    { progress = response; $progressBar.attr ("value", progress); } setTimeout(getProgress, 1000); } else { $progressBar.attr("value", (progress = 100)); c.displayInfo("Operation Completed"); getFinalResult(); operationId = null; setTimeout(function () { $progressBar.attr ("value", 0); $submitButton.prop ("disabled", false); $cancelButton.prop ("disabled", true); }, 100); } }) .fail(c.displayDefaultFailure); } }; getProgress(); }) .fail(c.

  • PAGE 386

    Screenshot & Output Usage To run the example simply enter the Job Set ID and the Managed File ID or Name of your output creation preset (previously uploaded to the file store) into the appropriate text fields, and then check any options that you may require: l l Create Only – Create the output in server but do not send spool file to its final destination. In this example this would mean that the output files(s) would not be sent to the output directory specified in the output creation preset.

  • PAGE 387

    Once the operation has started processing, the Operation ID will be displayed in the Results area and the Cancel button will become enabled, giving you the option to cancel the running operation. The progress of the operation will be displayed in the progress bar, and once the output creation operation has completed, the output result will be returned and displayed to the Results area. Note If the result returned is expected to be file data, then then a download link will be displayed.

  • PAGE 388

    Running an Output Creation Operation By Job (Using JSON) Problem You want to run an output creation operation to produce print output using an output creation preset and a list of existing Jobs as inputs. Solution The solution is to make a series of requests using the following URIs and method types to submit, monitor progress and ultimately retrieve the result of the output creation operation. There is also the option of cancelling an operation during processing if required.

  • PAGE 389

    Process Output Creation (By Job) (JSON) Example PAGE 390

    Progress & Actions

    JavaScript/jQuery oc-process-by-je-json.js /* Output Creation Service - Process Output Creation (By Job) (JSON) Example */ (function ($, c) { "use strict"; $(function () { c.

  • PAGE 391

    operationId = null; setTimeout(function () { $progressBar.attr("value", 0); $submitButton.prop("disabled", false); $cancelButton.prop("disabled", true); }, 100); }) .fail(c.displayDefaultFailure); } }); $("form").on("submit", function (event) { event.preventDefault(); if (!c.checkSessionValid()) return; var jobIds = $("#jobs").val(), configId = $("#ocpreset").val(), createOnly = $("#createonly").prop("checked"); var getFinalResult = function () { var result = ($("#resultastxt").

  • PAGE 392

    /* Process Output Creation (By Job) (JSON) */ $.ajax({ type: "POST", url: "/rest/serverengine/workflow/outputcreation/" + configId + "/jobs", data: JSON.stringify(c.plainIDListToJson (jobIds, createOnly)), contentType: "application/json" }) .done(function (response, status, request) { var progress = null; operationId = request.getResponseHeader ("operationId"); $submitButton.prop("disabled", true); $cancelButton.prop("disabled", false); c.displayStatus("Output Creation Operation Successfully Submitted"); c.

  • PAGE 393

    setTimeout(getProgress, 1000); } else { $progressBar.attr("value", (progress = 100)); c.displayInfo("Operation Completed"); getFinalResult(); operationId = null; setTimeout(function () { $progressBar.attr ("value", 0); $submitButton.prop ("disabled", false); $cancelButton.prop ("disabled", true); }, 100); } }) .fail(c.displayDefaultFailure); } }; getProgress(); }) .fail(c.

  • PAGE 394

    Screenshot & Output Usage To run the example simply enter a comma delimited list of your Job IDs and the Managed File ID or Name of your output creation preset (previously uploaded to the file store) into the appropriate text fields, and then check any options that you may require: l l Create Only – Create the output in server but do not send spool file to its final destination.

  • PAGE 395

    Once the operation has started processing, the Operation ID will be displayed in the Results area and the Cancel button will become enabled, giving you the option to cancel the running operation. The progress of the operation will be displayed in the progress bar, and once the output creation operation has completed, the output result will be returned and displayed to the Results area. Note If the result returned is expected to be file data, then then a download link will be displayed.

  • PAGE 396

    Running an All-In-One Operation (Using JSON) Problem You want to run an All-In-One operation to produce either a Data Set, Content Sets, a Job Set or print output using one of the available process and input combinations. Solution The solution is to make a series of requests using the following URIs and method types to submit, monitor progress and ultimately retrieve the result of the All-In-One operation. There is also the option of cancelling an operation during processing if required.

  • PAGE 397

    3.4.1.min.js"> PAGE 398

    Content Creation
    PAGE 399

  • Output Creation
    PAGE 400

    disabled>

    Progress & Actions

  • PAGE 401

    PAGE 402

    $parameters = $jcpreset = $jobs = $ocpreset = $persistdres = $createonly = $resultastxt = $printrange = $("#parameters"), $("#jcpreset"), $("#jobs"), $("#ocpreset"), $("#persistdres"), $("#createonly"), $("#resultastxt"), $("#printrange"), AIOConfig = outputDesc = operationId = null, null, null, $submitButton = $("#submit"), $cancelButton = $("#cancel"), $progressBar = $("progress"); c.setupRuntimeParametersTableInput($parameters); $printrange .on("change", function (event) { c.

  • PAGE 403

    }, 100); }) .fail(c.displayDefaultFailure); } }); /** * @function generateAIOConfig * @description Validates the workflow selected by the user * and constructs and an All-In-One Configuration using the relevant * input fields in the HTML Form. * Any invalid inputs or workflow selections will be redflagged in * the HTML Form. Null can also be returned if no workflow selections * are made or if the workflow selections made are of an invalid sequence.

  • PAGE 404

    */ booleanValue = function ($input) { return $input.prop("checked"); }; /* Get Input Value and add it to the Configuration (Helper Function) */ function getInputValue($input, process, field, parser) { var value = $input.val().

  • PAGE 405

    missing = []; for (i = 0; i < required.length; i += 1) { var step = required[i]; if (config[step]) { if (!matches && step === "jobcreation") missing.push("contentcreation"); matches += 1; } else { if (matches !== 0) missing.push(step); } if (matches === selections) break; } /* Add the inputs to the Workflow Selections to Create the All-In-One Configuration */ if (config.

  • PAGE 406

    if (config.outputcreation) { getInputValue($ocpreset, "outputcreation", "config"); getInputValue($createonly, "outputcreation", "createOnly", booleanValue); if (!config.contentcreation) { getInputValue($jobs, "outputcreation", "identifiers", jsonIDListValue); $jobs.prop("disabled", false); } else { $jobs.prop("disabled", true); } $createonly.prop("disabled", false); $resultastxt.prop("disabled", false); outputDesc = "Output"; } else { $createonly.prop("disabled", true); $resultastxt.

  • PAGE 407

    if (config.jobcreation && !config.jobcreation.config && config.jobcreation.parameters) { $jcpreset.prop("required", true); } else { $jcpreset.prop("required", false); } /* Red-flag any omissions in Workflow Selections */ if (!selections || missing.length) { for (i = 0; i < missing.length; i += 1) $("#" + missing[i]).prop("required", true); return null; } return config; } $inputs .on("change", function (event) { var input = event.target; var process = $("#" + input.id + "-inputs"); process.

  • PAGE 408

    var getFinalResult = function () { var resultastxt = $resultastxt.prop("checked"), result = (resultastxt) ? "getResultTxt" : "getResult"; /* Get Result of Operation */ var settings = { type: "POST", url: "/rest/serverengine/workflow/print/" + result + "/" + operationId }; if (!resultastxt) settings.dataType = "file"; $.ajax(settings) .done(function (response, status, request) { c.displayHeading("Operation Result"); if (!resultastxt) { c.displaySubResult(outputDesc, c.

  • PAGE 409

    $cancelButton.prop("disabled", false); c.displayStatus("All-In-One Operation Successfully Submitted"); c.displayHeading("Input Configuration"); c.displaySubResult("JSON All-In-One Configuration", c.jsonPrettyPrint(AIOConfig)); c.displayResult("Operation ID", operationId); var getProgress = function () { if (operationId !== null) { /* Get Progress of Operation */ $.ajax({ type: "GET", cache: false, url: "/rest/serverengine/workflow/print/getProgress/" + operationId }) .

  • PAGE 410

    ("value", 0); $submitButton.prop ("disabled", false); $cancelButton.prop ("disabled", true); }, 100); } }) .fail(c.displayDefaultFailure); } }; getProgress(); }) .fail(c.displayDefaultFailure); }) .

  • PAGE 411

    Screenshot & Output Page 411

  • PAGE 412

    Page 412

  • PAGE 413

    Usage To run the example simply select the input combination of your choosing, populate the appropriate input fields and then check any options that you may require. The following file based input fields can be referenced by Managed File ID\Name: l Data file l Data Mapping configuration l Template l Job Creation preset l Output Creation preset Specific to the specification of a Job Creation Preset, one or more Runtime Parameters can also be specified.

  • PAGE 414

    The following option is only available if the input combination specifically includes the data mapping process but with no job creation preset specified: l Persist Data Records – Create/persist data records entities in the server during the data mapping process (intended for use with once-off jobs where the storage of data records in the server is not required). Lastly, select the Submit button to start the All-In-One operation.

  • PAGE 415

    Solution The solution is to make a series of requests using the following URIs and method types to submit, monitor progress and ultimately retrieve the result of the All-In-One operation.

  • PAGE 416

    Inputs
  • PAGE 417

    Text:

    Progress & Actions
    JavaScript/jQuery aio-process-adhoc-data.

  • PAGE 418

    .on("change", function (event) { c.setCustomInputValidity(event.target, c.validateNumericRange, "Invalid Print Range value entered"); }) .trigger("change"); $cancelButton.on("click", function () { if (operationId !== null) { /* Cancel an Operation */ $.ajax({ type: "POST", url: "/rest/serverengine/workflow/print/cancel/" + operationId }) .done(function (response) { c.displayInfo("Operation Cancelled!"); operationId = null; setTimeout(function () { $progressBar.attr("value", 0); $submitButton.

  • PAGE 419

    resultAsTxt = $("#resultastxt").prop("checked"), printRange = $printrange.val(); var getFinalResult = function () { var result = (resultAsTxt) ? "getResultTxt" : "getResult"; /* Get Result of Operation */ var settings = { type: "POST", url: "/rest/serverengine/workflow/print/" + result + "/" + operationId }; if (!resultAsTxt) settings.dataType = "file"; $.ajax(settings) .done(function (response, status, request) { c.displayHeading("Operation Result"); if (!resultAsTxt) { c.displaySubResult("Output", c.

  • PAGE 420

    if (!resultAsTxt && !async) settings.dataType = "file"; if (printRange.length > 0) settings.url += "&printRange=" + printRange; $.ajax(settings) .done(function (response, status, request) { if (async) { var progress = null; operationId = request.getResponseHeader ("operationId"); $submitButton.prop("disabled", true); $cancelButton.prop("disabled", false); c.displayStatus("All-In-One Operation Successfully Submitted"); c.

  • PAGE 421

    } else { $progressBar.attr ("value", (progress = 100)); c.displayInfo ("Operation Completed"); getFinalResult(); operationId = null; setTimeout(function () { $progressBar.attr ("value", 0); $submitButton.prop ("disabled", false); $cancelButton.prop ("disabled", true); }, 100); } }) .fail(c.displayDefaultFailure); } }; getProgress(); } else { c.displayInfo("Operation Completed"); c.displayHeading("Operation Result"); if (!resultAsTxt) { c.displaySubResult("Output", c.

  • PAGE 422

    Screenshot & Output Usage To run the example, you first need to use the Browse button to select an appropriate Data File to use as an input using the selection dialog box.

  • PAGE 423

    If required, a Job Creation preset can also be referenced by specifying a Managed File ID or Name. The following options can be specified : l l l l Asynchronous – Run the All-In-One operation asynchronously with the operation progress being displayed and the option to cancel the running operation. Create Only – Create the output in server but do not send spool file to its final destination.

  • PAGE 424

    REST API Reference The PReS Connect REST API defines a number of RESTful services that facilitate various functionality within the server during workflow processing. The following table is a summary of the services available in the PReS Connect REST API: Service Name Internal Name Description Authentication Service AuthenticationRestService This service exposes methods concerned with server security and authentication with the PReS Connect REST API.

  • PAGE 425

    Service Name Internal Name Description l l l Content Item Entity Service ContentItemEntityRestService Getting a list of all the active operations on the server Getting the result of a content creation operation for print Creation of single record preview PDFs using either a data file, data record or JSON as input This service exposes methods specific to the access and management of content item entities internal to the server.

  • PAGE 426

    Service Name Internal Name Description IDs contained within a content set l l l Data Record Entity Service DataRecordEntityRestService Getting the page details for a content set Getting and updating of content set properties Deletion of content sets from the server This service exposes methods specific to the access and management of data record entities internal to the server.

  • PAGE 427

    Service Name Internal Name Description l l l l Data Mapping Service DataminingRestService Getting all the data set IDs within the server Getting the data record IDs contained within a data set Getting and updating of data set properties Deletion of data sets from the server This service exposes methods specific to the management of the data mapping process within the workflow.

  • PAGE 428

    Service Name Internal Name Description entities internal to the server. It includes methods to facilitate the following functions: l Document Set Entity Service DocumentSetEntityRestService Getting and updating of document metadata properties This service exposes methods specific to the access and management of document set entities internal to the server.

  • PAGE 429

    Service Name Internal Name Description email using data records or JSON as input l l Entity Service EntityRestService Getting a list of all the active operations on the server Getting the result of a content creation operation for email This service exposes methods specific to the querying and selection of data entities internal to the server.

  • PAGE 430

    Service Name Internal Name Description l l l Content Creation (HTML) Service HTMLMergeRestService Uploading of job creation and output creation presets to the file store Download of managed files from the file store Deletion of managed files from the file store This service exposes methods specific to the management of the content creation process for the Web context within the workflow.

  • PAGE 431

    Service Name Internal Name Description cancellation of job creation operations using either content sets or content items as input l l Job Entity Service JobEntityRestService Getting a list of all the active operations on the server Getting the result of a job creation operation This service exposes methods specific to the access and management of job entities internal to the server.

  • PAGE 432

    Service Name Internal Name Description l l Job Set Entity Service JobSetEntityRestService Getting the document set IDs contained within a job segment Getting and updating of job segment metadata properties This service exposes methods specific to the access and management of job set entities internal to the server.

  • PAGE 433

    Service Name Internal Name Description cancellation of output creation operations using either a job set or jobs as input l l l All-In-One Service PrintRestService Getting a list of all the active operations on the server Getting the result of an output creation operation Running of +PReS Enhance workflow configurations via the Weaver engine This service exposes methods specific to the management of the All-In-One process within the workflow.

  • PAGE 434

    All-In-One Service The following table is a summary of the resources and methods available in the All-In-One service: Method Name Uniform Resource Identifier (URI) Method Type Service Handshake /rest/serverengine/workflow/print GET Process All-In-One (JSON) /rest/serverengine/workflow/print/submit POST Process All-In-One (Adhoc Data) /rest/serverengine/workflow/print/{dmConfigId}/ {templateId}/{jcConfigId}/{ocConfigId} POST Get All Operations /rest/serverengine/workflow/print/getOperations GE

  • PAGE 435

    Cancel an Operation Requests the cancellation of a running All-In-One operation of a specific operation ID. Request takes no content, and on success returns a response with no content. Request Method Type: POST URI: /rest/serverengine/workflow/print/cancel/{operationId} Content: – Content Type: – Add.

  • PAGE 436

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 204 No Content – – – Operation cancellation requested Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required.

  • PAGE 437

    Status Code Content ContentType Add. Headers Description token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 438

    Get All Operations Returns a list of all the workflow operations actively running on the Server. Request takes no content, and on success returns a response containing a JSON Operations List of all the actively running operations. Request Method Type: GET URI: /rest/serverengine/workflow/print/getOperations Content: – Content Type: – Add.

  • PAGE 439

    Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers.

  • PAGE 440

    Status Code Content ContentType Add. Headers Description authorization token specified in the request headers are invalid.

  • PAGE 441

    Get Progress of Operation Retrieves the progress of a running All-In-One operation of a specific operation ID. Request takes no content, and on success returns a response containing the current value of operation progress (values ranging from 0 – 100, followed by the value of 'done' on completion). Request Method Type: GET URI: /rest/serverengine/workflow/print/getProgress/{operationId} Content: – Content Type: – Add.

  • PAGE 442

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Progress value of AllIn-One operation text/plain – Progress of operation successfully retrieved Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 443

    Status Code Content ContentType Add. Headers Description the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 444

    Get Result of Operation Retrieves the final result of a completed All-In-One operation of a specific operation ID. Request takes no content, and on success returns a response (depending on the All-In-One configuration) containing either: l l the ID of the Data Set, Content Set or Job Set entity produced, or the absolute paths of the final output files produced (multiple spool files) or the content of a final output file (single spool file).

  • PAGE 445

    Name Required Type Default Value Description operation Response Success The following lists status codes indicative of a successful response: Status Code Content Content-Type Add.

  • PAGE 446

    Status Code Content Content-Type Add. Headers Description when neither basic authentication credentials nor an authorization token have been specified in the request headers. 401 Unauthorized Error message – – Server authentication has failed. Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed.

  • PAGE 447

    Status Code Content Content-Type Add. Headers Description invalid.

  • PAGE 448

    Get Result of Operation (as Text) Retrieves the final result of a completed All-In-One operation of a specific operation ID. Request takes no content, and on success returns a response (depending on the All-In-One configuration) containing either: l l the ID of the Data Set, Content Set or Job Set entity produced, or the absolute path or paths of the final output file or files produced (single or multiple spool files respectively).

  • PAGE 449

    Name Required Type Default Value Description operation Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Either: text/plain – Result of completed operation successfully retrieved l l ID of the Data Set, Content Set or Job Set Absolute Path (s) of the Output File(s) Error The following lists status codes indicative of a failed or error response: Status Code Content Content-Type Add.

  • PAGE 450

    Status Code Content Content-Type Add. Headers Description credentials nor an authorization token have been specified in the request headers. 401 Unauthorized Error message – – Server authentication has failed. Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 451

    Status Code Content Content-Type Not Found Error" on page 39 specifying error message stream Add.

  • PAGE 452

    Process All-In-One (JSON) Submits a request to initiate a new All-In-One operation. Request takes a JSON All-In-One Configuration as content, and on success returns a response containing additional headers that specify the ID of the new operation as well as link URLs that can be used to retrieve further information/cancel the operation.

  • PAGE 453

    Status Code Content ContentType Add. Headers l Description Link – Contains multiple link URLs that can be used to retrieve further information/cancel the operation Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 454

    Status Code Content ContentType Add. Headers Description Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 455

    Process All-In-One (Adhoc Data) Submits a request to initiate a new All-In-One operation using pre-existing inputs, with the exception of input data, which is submitting along with the request.

  • PAGE 456

    Parameters Path Name Required Type Default Value Description dmConfigId – – – The Managed File ID (or Name) of the Data Mapping configuration in File Store templateId – – – The Managed File ID (or Name) of the template in File Store jcConfigId Optional – the value of "0" can be specified if no preset is to be used – – The Managed File ID (or Name) of the Job Creation Preset in File Store ocConfigId – – – The Managed File ID (or Name) of the Output Creation Preset in File Store Query

  • PAGE 457

    Name Required Type Default Value Description createOnly – – false Whether output is to be only created in the server and not sent to it's final destination printRange – – – A specific range of records in the input data file to restrict the print output to filename – – – The file name of the data file to be uploaded Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType 202 Accepted – – Add.

  • PAGE 458

    Status Code Content Content-Type Add. Headers Description 200 OK Absolute Paths of the Output Files or the Output File itself application/octetstream – Data file uploaded to File Store and a new operation was created and completed successfully with the result returned Success (Synchronous + Get Result as Text) The following lists status codes indicative of a successful response: Status Code Content ContentType Add.

  • PAGE 459

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 460

    Status Code Content ContentType Add.

  • PAGE 461

    Service Handshake Queries the availability of the All-In-One service. Request Method Type: GET URI: /rest/serverengine/workflow/print Content: – Content Type: – Add. Headers: If server security settings are enabled, then one of the following: l l Authorization – Basic Authentication (Username and Password) credentials (Base64 encoded) auth_token – Authorization Token Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add.

  • PAGE 462

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 463

    Service Version Returns the version of the All-In-One service. Request Method Type: GET URI: /rest/serverengine/workflow/print/version Content: – Content Type: – Add. Headers: If server security settings are enabled, then one of the following: l l Authorization – Basic Authentication (Username and Password) credentials (Base64 encoded) auth_token – Authorization Token Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add.

  • PAGE 464

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 465

    Authentication Service The following table is a summary of the resources and methods available in the Authentication service: Method Name Uniform Resource Identifier (URI) Method Type Service Handshake /rest/serverengine/authentication GET Authenticate/Login to Server /rest/serverengine/authentication/login POST Service Version /rest/serverengine/authentication/version GET Page 465

  • PAGE 466

    Authenticate/Login to Server Submits an authentication request (using credentials) to the Connect server and if successful provides access to the various other REST API services available. Request takes no content, but requires an additional Authorization header which contains a base64 encoded set of credentials (username and password). On success, the response will return an authorization token which can then be used as an additional auth_token header in any future requests made to the REST API services.

  • PAGE 467

    Status Code Content ContentType Add. Headers Description 200 OK Authorization Token text/plain – Server authentication successful, new authorization token generated. Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication has failed. – Server authentication has failed.

  • PAGE 468

    Service Handshake Queries the availability of the Authentication service. Request Method Type: GET URI: /rest/serverengine/authentication Content: – Content Type: – Add.

  • PAGE 469

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 470

    Service Version Returns the version of the Authentication service. Request Method Type: GET URI: /rest/serverengine/authentication/version Content: – Content Type: – Add.

  • PAGE 471

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 472

    Content Creation (Email) Service The following table is a summary of the resources and methods available in the Content Creation (Email) service: Method Name Uniform Resource Identifier (URI) Method Type Service Handshake /rest/serverengine/workflow/contentcreation/email GET Process Content Creation (By Data Record) (JSON) /rest/serverengine/workflow/contentcreation/email/ {templateId} POST Process Content Creation (By Data) (JSON) /rest/serverengine/workflow/contentcreation/email/ {templateId}

  • PAGE 473

    Cancel an Operation Requests the cancellation of a running Content Creation (Email) operation of a specific operation ID. Request takes no content, and on success returns a response with no content. Request Method Type: POST URI: /rest/serverengine/workflow/contentcreation/email/cancel/{operationId} Content: – Content Type: – Add.

  • PAGE 474

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 204 No Content – – – Operation cancellation requested Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required.

  • PAGE 475

    Status Code Content ContentType Add. Headers Description token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 476

    Get All Operations Returns a list of all the workflow operations actively running on the Server. Request takes no content, and on success returns a response containing a JSON Operations List of all the actively running operations. Request Method Type: GET URI: /rest/serverengine/workflow/contentcreation/email/getOperations Content: – Content Type: – Add.

  • PAGE 477

    Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers.

  • PAGE 478

    Status Code Content ContentType Add. Headers Description authorization token specified in the request headers are invalid.

  • PAGE 479

    Get Progress of Operation Retrieves the progress of a running Content Creation (Email) operation of a specific operation ID. Request takes no content, and on success returns a response containing the current value of operation progress (values ranging from 0 – 100, followed by the value of 'done' on completion). Request Method Type: GET URI: /rest/serverengine/workflow/contentcreation/email/getProgress/ {operationId} Content: – Content Type: – Add.

  • PAGE 480

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Progress value of Content Creation (Email) operation text/plain – Progress of operation successfully retrieved Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 481

    Status Code Content ContentType Add. Headers Description the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 482

    Get Result of Operation Retrieves the final result of a completed Content Creation (Email) operation of a specific operation ID. Request takes no content, and on success returns a response containing a JSON Email Output List of all the email output messages created in the File Store. Alternatively, if the operation was to create email output directly to a SMTP mail server, then a response containing a report on the number of emails that were successfully sent will be returned instead.

  • PAGE 483

    Name Required Type Default Value Description operationId – – – Operation ID of Content Creation (Email) operation Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK "JSON Email Output List" on page 56 of the email message output in File Store text/plain – Result of completed operation successfully retrieved Result of Content Creation (Email) Operation (with successful email count) (e.g.

  • PAGE 484

    Status Code Content ContentType Add. Headers Description host value specifying the network address or name of a SMTP mail server Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed.

  • PAGE 485

    Status Code Content ContentType Add. Headers Description 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 486

    Process Content Creation (By Data) (JSON) Submits a request to initiate a new Content Creation (Email) operation. Request takes a JSON Record Data List (with Email Parameters) of the data values for one or more Data Records as content, and on success returns a response containing additional headers that specify the ID of the new operation as well as link URLs that can be used to retrieve further information/cancel the operation.

  • PAGE 487

    Query Name Required Type Default Value Description section – – Default section in template The Section of the Email context to export Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType 202 Accepted – – Add.

  • PAGE 488

    Status Code 401 Unauthorized Content Error message ContentType – Add. Headers Description Authentication credentials are accepted) Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. – Server authentication has failed. Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed.

  • PAGE 489

    Process Content Creation (By Data Record) (JSON) Submits a request to initiate a new Content Creation (Email) operation. Request takes a JSON Identifier List (with Email Parameters) of Data Record IDs as content, and on success returns a response containing additional headers that specify the ID of the new operation as well as link URLs that can be used to retrieve further information/cancel the operation.

  • PAGE 490

    Query Name Required Type Default Value Description section – – Default section in template The Section of the Email context to export Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType 202 Accepted – – Add.

  • PAGE 491

    Status Code 401 Unauthorized Content Error message ContentType – Add. Headers Description Authentication credentials are accepted) Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. – Server authentication has failed. Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed.

  • PAGE 492

    Status Code Content ContentType Add.

  • PAGE 493

    Service Handshake Queries the availability of the Content Creation (Email) service. Request Method Type: GET URI: /rest/serverengine/workflow/contentcreation/email Content: – Content Type: – Add.

  • PAGE 494

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 495

    Service Version Returns the version of the Content Creation (Email) service. Request Method Type: GET URI: /rest/serverengine/workflow/contentcreation/email/version Content: – Content Type: – Add.

  • PAGE 496

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 497

    Content Creation (HTML) Service The following table is a summary of the resources and methods available in the Content Creation (HTML) service: Method Name Uniform Resource Identifier (URI) Method Type Service Handshake /rest/serverengine/workflow/contentcreation/html GET Process Content Creation (By Data Record) /rest/serverengine/workflow/contentcreation/html/ {templateId}/{dataRecordId: [0-9]+} GET Process Content Creation (By Data Record) (JSON) /rest/serverengine/workflow/contentcreation/htm

  • PAGE 498

    Get Template Resource Submits a request to retrieve a resource from a template stored in the File Store. Request takes no content, and on success returns a response containing the resource from the template. Request Method Type: GET URI: /rest/serverengine/workflow/contentcreation/html/{templateId}/{relPath: .+} Content: – Content Type: – Add.

  • PAGE 499

    Response Success The following lists status codes indicative of a successful response: Status Code Content Content-Type Add. Headers Description 200 OK Resource located at the relative path within template (Depends on Resource requested) – Resource successfully retrieved Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 500

    Status Code Content ContentType Add. Headers Description 401 Unauthorized Error message – – Server authentication has failed. Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 501

    Process Content Creation (By Data) (JSON) Submits a request to create new HTML content for the Web context. Request takes a JSON Record Data List of the data values for the Data Record as content, and on success returns a response containing the HTML output produced, specific to the record data and parameters specified.

  • PAGE 502

    Query Name Required Type Default Value Description section – – Default section in template The section within the Web context to create inline – – NONE The inline mode to be used in the creation of content (Possible values: NONE, CSS or ALL.) cssSelector No String A CSS selector for the creation of only a specific HTML element within the template Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add.

  • PAGE 503

    Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers.

  • PAGE 504

    Status Code Content ContentType Add. Headers Description authorization token specified in the request headers are invalid. 404 Not Found – – – Template not found in File Store/Server 500 Internal Server Error – – – Content Creation Error: Web context in template not found / Invalid CSS selector.

  • PAGE 505

    Process Content Creation (By Data Record) Submits a request to create new HTML content for the Web context. Request takes no content, and on success returns a response containing the HTML output produced, specific to the Data Record and parameters specified. Request Method Type: GET URI: /rest/serverengine/workflow/contentcreation/html/{templateId}/ {dataRecordId: [0-9]+} Content: – Content Type: – Add.

  • PAGE 506

    Query Name Required Type Default Value Description section – – Default section in template The section within the Web context to create inline – – NONE The inline mode to be used in the creation of content (Possible values: NONE, CSS or ALL.) cssSelector No String A CSS selector for the creation of only a specific HTML element within the template Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add.

  • PAGE 507

    Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers.

  • PAGE 508

    Status Code Content ContentType Add. Headers Description authorization token specified in the request headers are invalid. 404 Not Found – – – Template or Data Record entity not found in File Store/Server 500 Internal Server Error – – – Content Creation Error: Data Record not found / Web context in template not found / Invalid CSS selector.

  • PAGE 509

    Process Content Creation (By Data Record) (JSON) Submits a request to create new HTML content for the Web context. Request takes a JSON HTML Parameters as content, and on success returns a response containing the HTML output produced, specific to the Data Record and parameters specified.

  • PAGE 510

    Name Required Type Default Value Description entity in Server Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add.

  • PAGE 511

    Status Code Content ContentType Add. Headers Description authentication credentials nor an authorization token have been specified in the request headers. 401 Unauthorized Error message – – Server authentication has failed. Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed.

  • PAGE 512

    Status Code Content ContentType Add.

  • PAGE 513

    Process Content Creation (No Data) Submits a request to create new HTML content for the Web context. Request takes no content, and on success returns a response containing the HTML output produced, using only the template, no input data and specific to the parameters specified. Request Method Type: POST URI: /rest/serverengine/workflow/contentcreation/html/{templateId} Content: – Content Type: – Add.

  • PAGE 514

    Query Name Required Type Default Value Description section – – Default section in template The section within the Web context to create inline – – NONE The inline mode to be used in the creation of content (Possible values: NONE, CSS or ALL.) cssSelector No – – A CSS selector for the creation of only a specific HTML element within the template Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add.

  • PAGE 515

    Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers.

  • PAGE 516

    Status Code Content ContentType Add. Headers Description authorization token specified in the request headers are invalid. 404 Not Found – – – Template not found in File Store 500 Internal Server Error – – – Content Creation Error: Web context in template not found / Invalid CSS selector.

  • PAGE 517

    Service Handshake Queries the availability of the Content Creation (HTML) service. Request Method Type: GET URI: /rest/serverengine/workflow/contentcreation/html Content: – Content Type: – Add.

  • PAGE 518

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 519

    Service Version Returns the version of the Content Creation (HTML) service. Request Method Type: GET URI: /rest/serverengine/workflow/contentcreation/html/version Content: – Content Type: – Add.

  • PAGE 520

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 521

    Content Creation Service The following table is a summary of the resources and methods available in the Content Creation service: Method Name Uniform Resource Identifier (URI) Method Type Service Handshake /rest/serverengine/workflow/contentcreation GET "Process Content Creation (By Data Set)" on page 525 /rest/serverengine/workflow/contentcreation/{templateId}/ {dataSetId} POST Process Content Creation (By Data Record) (JSON) /rest/serverengine/workflow/contentcreation/{templateId} POST Proces

  • PAGE 522

    Method Name Uniform Resource Identifier (URI) Method Type Create Preview PDF (By Data) (JSON) /rest/serverengine/workflow/contentcreation/pdfpreview/ {templateId} POST "Create Preview Image (By Data Record) (JSON)" on page 543 /rest/serverengine/workflow/contentcreation/imagepreview POST "Create Preview Image (By Data) (JSON)" on page 547 /rest/serverengine/workflow/contentcreation/imagepreview/ {templateId} POST Get All Operations /rest/serverengine/workflow/contentcreation/getOperations GET

  • PAGE 523

    Service Handshake Queries the availability of the Content Creation service. Request Method Type: GET URI: /rest/serverengine/workflow/contentcreation Content: – Content Type: – Add.

  • PAGE 524

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 525

    Process Content Creation (By Data Set) Submits a request to initiate a new Content Creation operation. Request takes no content, and on success returns a response containing additional headers that specify the ID of the new operation as well as link URLs that can be used to retrieve further information/cancel the operation. Request Method Type: POST URI: /rest/serverengine/workflow/contentcreation/{templateId}/{dataSetId} Content: – Content Type: – Add.

  • PAGE 526

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType 202 Accepted – – Add. Headers l l operationId – Operation ID of new Content Creation operation Description Creation of new operation successful Link – Contains multiple link URLs that can be used to retrieve further information/cancel the operation Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 527

    Status Code Content ContentType Add. Headers Description request headers. 401 Unauthorized Error message – – Server authentication has failed. Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 528

    Process Content Creation (By Data Record) (JSON) Submits a request to initiate a new Content Creation operation. Request takes a JSON Identifier List of Data Record IDs as content, and on success returns a response containing additional headers that specify the ID of the new operation as well as link URLs that can be used to retrieve further information/cancel the operation.

  • PAGE 529

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType 202 Accepted – – Add. Headers l l operationId – Operation ID of new Content Creation operation Description Creation of new operation successful Link – Contains multiple link URLs that can be used to retrieve further information/cancel the operation Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 530

    Status Code Content ContentType Add. Headers Description request headers. 401 Unauthorized Error message – – Server authentication has failed. Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 531

    Process Content Creation (By Data) (JSON) Submits a request to initiate a new Content Creation operation. Request takes a JSON Record Data List of the data values for one or more Data Records as content, and on success returns a response containing additional headers that specify the ID of the new operation as well as link URLs that can be used to retrieve further information/cancel the operation.

  • PAGE 532

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType 202 Accepted – – Add. Headers l l operationId – Operation ID of new Content Creation operation Description Creation of new operation successful Link – Contains multiple link URLs that can be used to retrieve further information/cancel the operation Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 533

    Status Code Content ContentType Add. Headers Description request headers. 401 Unauthorized Error message – – Server authentication has failed. Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 534

    Create Preview PDF (By Data Record) Submits a request to create a preview PDF of the print output for a single data record. Request takes no content, and on success returns a response containing the Managed File ID for the newly created preview PDF file. Request Method Type: GET URI: /rest/serverengine/workflow/contentcreation/pdfpreviewdirect Content: – Content Type: – Add.

  • PAGE 535

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Managed File ID text/plain – Creation of preview PDF in File Store successful Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 536

    Status Code Content ContentType Add. Headers Description the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 537

    Create Preview PDF (By Data) Submits a request to create a preview PDF of the print output for a single data record. Request takes binary file data as content, and on success returns a response containing the Managed File ID for the newly created preview PDF file. Request Method Type: POST URI: /rest/serverengine/workflow/contentcreation/pdfpreview/{templateId}/ {dmConfigId} Content: Data File (File) Content Type: application/octet-stream Add.

  • PAGE 538

    Name Required Type Default Value Description Mapping configuration in File Store Query Name Required Type Default Value Description persist – – true Whether the Data Record produced will be persisted in Server Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add.

  • PAGE 539

    Status Code Content ContentType Add. Headers Description template or resource doesn’t exist 401 Unauthorized 401 Unauthorized – Error message – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. Response when neither basic authentication credentials nor an authorization token have been specified in the request headers.

  • PAGE 540

    Status Code Content ContentType Add. Headers Description authorization token specified in the request headers are invalid.

  • PAGE 541

    Create Preview PDF (By Data) (JSON) Submits a request to create a preview PDF of the print output for a single data record. Request takes a JSON Record Data List of the data values for the Data Record as content, and on success returns a response containing the Managed File ID for the newly created preview PDF file.

  • PAGE 542

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Managed File ID text/plain – Creation of preview PDF in File Store successful Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 543

    Status Code Content ContentType Add. Headers Description the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 544

    creation Content Type: application/json Add.

  • PAGE 545

    Status Code Content OK Image Content-Type Add. Headers Description image successful. Response when the image parameters specified contain: l l 200 OK Preview Image image/png – a type value of JPG or JPEG an archive value and pages value that would result in a single page Creation of a preview image successful.

  • PAGE 546

    Status Code Content Content-Type Add. Headers Description that would result in a multiple pages Error The following lists status codes indicative of a failed or error response: Status Code Content Content-Type Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed.

  • PAGE 547

    Status Code Content Content-Type Add. Headers Description 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 548

    URI: /rest/serverengine/workflow/contentcreation/imagepreview/{templateId} Content: JSON Record Data List (with Image Parameters) of the data values for the Data Record Content Type: application/json Add.

  • PAGE 549

    Status Code Content Content-Type Add. Headers Description Response when the image parameters specified contain: OK l l 200 OK Preview Image image/png – a type value of JPG or JPEG an archive value and pages value that would result in a single page Creation of a preview image successful.

  • PAGE 550

    Error The following lists status codes indicative of a failed or error response: Status Code Content Content-Type Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers.

  • PAGE 551

    Status Code Content Content-Type Add. Headers Description basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 552

    Get All Operations Returns a list of all the workflow operations actively running on the Server. Request takes no content, and on success returns a response containing a JSON Operations List of all the actively running operations. Request Method Type: GET URI: /rest/serverengine/workflow/contentcreation/getOperations Content: – Content Type: – Add.

  • PAGE 553

    Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers.

  • PAGE 554

    Status Code Content ContentType Add. Headers Description authorization token specified in the request headers are invalid.

  • PAGE 555

    Get Progress of Operation Retrieves the progress of a running Content Creation operation of a specific operation ID. Request takes no content, and on success returns a response containing the current value of operation progress (values ranging from 0 – 100, followed by the value of 'done' on completion). Request Method Type: GET URI: /rest/serverengine/workflow/contentcreation/getProgress/{operationId} Content: – Content Type: – Add.

  • PAGE 556

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Progress value of Content Creation operation text/plain – Progress of operation successfully retrieved Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 557

    Status Code Content ContentType Add. Headers Description the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 558

    Get Result of Operation Retrieves the final result of a completed Content Creation operation of a specific operation ID. Request takes no content, and on success returns a response containing the IDs of the Content Sets produced. Request Method Type: POST URI: /rest/serverengine/workflow/contentcreation/getResult/{operationId} Content: – Content Type: – Add.

  • PAGE 559

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Content Set IDs text/plain – Result of completed operation successfully retrieved Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 560

    Status Code Content ContentType Add. Headers Description the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 561

    Cancel an Operation Requests the cancellation of a running Content Creation operation of a specific operation ID. Request takes no content, and on success returns a response with no content. Request Method Type: POST URI: /rest/serverengine/workflow/contentcreation/cancel/{operationId} Content: – Content Type: – Add.

  • PAGE 562

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 204 No Content – – – Operation cancellation requested Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required.

  • PAGE 563

    Status Code Content ContentType Add. Headers Description token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 564

    Service Version Returns the version of the Content Creation service. Request Method Type: GET URI: /rest/serverengine/workflow/contentcreation/version Content: – Content Type: – Add.

  • PAGE 565

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 566

    Content Item Entity Service The following table is a summary of the resources and methods available in the Content Item Entity service: Method Name Uniform Resource Identifier (URI) Method Type Service Handshake /rest/serverengine/entity/contentitems GET Get Data Record for Content Item /rest/serverengine/entity/contentitems/ {contentItemId}/datarecord GET Get Content Item Properties /rest/serverengine/entity/contentitems/ {contentItemId}/properties GET Update Content Item Properties /rest/ser

  • PAGE 567

    Get Content Item Properties Returns a list of the properties for a specific Content Item entity. Request takes no content, and on success returns a response containing a JSON Name/Value List (Properties Only) of all the properties for the Content Item. Request Method Type: GET URI: /rest/serverengine/entity/contentitems/{contentItemId}/properties Content: – Content Type: – Add.

  • PAGE 568

    Status Code Content Content-Type Add. Headers Description 200 OK JSON Name/Value List (Properties Only) of properties for Content Item application/json – Content Item entity properties successfully retrieved Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required.

  • PAGE 569

    Status Code Content ContentType Add. Headers Description 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 570

    Get Data Record for Content Item Returns the ID of the corresponding Data Record for a specific Content Item entity. Request takes no content, and on success returns a response containing a JSON Data Record Identifier for the Data Record of the Content Item. Request Method Type: GET URI: /rest/serverengine/entity/contentitems/{contentItemId}/datarecord Content: – Content Type: – Add.

  • PAGE 571

    Status Code Content Content-Type Add. Headers Description 200 OK JSON Data Record Identifier for the Data Record of Content Item application/json – Data Record Identifier returned Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed.

  • PAGE 572

    Status Code Content ContentType Add. Headers Description 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 573

    Service Handshake Queries the availability of the Content Item Entity service. Request Method Type: GET URI: /rest/serverengine/entity/contentitems Content: – Content Type: – Add.

  • PAGE 574

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 575

    Service Version Returns the version of the Content Item Entity service. Request Method Type: GET URI: /rest/serverengine/entity/contentitems/version Content: – Content Type: – Add.

  • PAGE 576

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 577

    Update Content Item Properties Submits a request to update (and replace) the properties for a specific Content Item entity in the Server. Request takes a JSON Name/Value List as content (the Content Item ID and the new properties), and on success returns a response containing the result of the request for update/replacement (“true”).

  • PAGE 578

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Result of request to update Content Item text/plain – Update of Content Item properties successfully requested (response of “true” for success) Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 579

    Status Code Content ContentType Add. Headers Description the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 580

    Update Multiple Content Item Properties Submits a request to update one or more properties for one or more Content Item entities in the Server. Request takes JSON Name/Value Lists as content (each with the Content Item ID and the new properties), and on success returns a response containing no content. Request Method Type: PUT URI: /rest/serverengine/entity/contentitems/properties Content: JSON Name/Value Lists of the properties of the Content Items Content Type: application/json Add.

  • PAGE 581

    Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers.

  • PAGE 582

    Status Code Content ContentType Add. Headers Description authorization token specified in the request headers are invalid.

  • PAGE 583

    Content Set Entity Service The following table is a summary of the resources and methods available in the Content Set Entity service: Method Name Uniform Resource Identifier (URI) Method Type "Service Handshake" below /rest/serverengine/entity/contentsets GET Get All Content Sets /rest/serverengine/entity/contentsets GET Get Content Items for Content Set /rest/serverengine/entity/contentsets/ {contentSetId} GET Get Page Details for Content Set /rest/serverengine/entity/contentsets/ {contentSet

  • PAGE 584

    Request Method Type: GET URI: /rest/serverengine/entity/contentsets Content: – Content Type: – Accept: text/plain Add. Headers: If server security settings are enabled, then one of the following: l l Authorization – Basic Authentication (Username and Password) credentials (Base64 encoded) auth_token – Authorization Token Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add.

  • PAGE 585

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 586

    Delete Content Set Entity Submits a request for a specific Content Set entity to be marked for deletion from the Server. Request takes no content, and on success returns a response containing the result of the request for deletion (“true” or “false”). Request Method Type: POST URI: /rest/serverengine/entity/contentsets/{contentSetId}/delete Content: – Content Type: – Add.

  • PAGE 587

    Status Code Content ContentType Add. Headers Description 200 OK Result of request for Content Set removal text/plain – Deletion of Content Set successfully requested from Server (response of “true” for success or “false” for failure) Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 588

    Status Code Content ContentType Add. Headers Description 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 589

    Get All Content Sets Returns a list of all the Content Set entities currently contained within the Server. Request takes no content, and on success returns a response containing a JSON Identifier List of all the Content Sets. Request Method Type: GET URI: /rest/serverengine/entity/contentsets Content: – Content Type: – Add.

  • PAGE 590

    Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers.

  • PAGE 591

    Status Code Content ContentType Add. Headers Description authorization token specified in the request headers are invalid.

  • PAGE 592

    Get Content Items for Content Set Returns a list of all the Content Item entities (and their corresponding Data Record entities) contained within a specific Content Set entity. Request takes no content, and on success returns a response containing a JSON Content Item Identifier List of all the Content Items in the Content Set. Request Method Type: GET URI: /rest/serverengine/entity/contentsets/{contentSetId} Content: – Content Type: – Add.

  • PAGE 593

    Response Success The following lists status codes indicative of a successful response: Status Code Content Content-Type Add. Headers Description 200 OK JSON Content Item Identifier List of all the Content Items in Content Set application/json – Content Item Identifier List returned Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 594

    Status Code Content ContentType Add. Headers Description the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 595

    Get Content Set Properties Returns a list of the properties for a specific Content Set entity. Request takes no content, and on success returns a response containing a JSON Name/Value List (Properties Only) of all the properties for the Content Set. Request Method Type: GET URI: /rest/serverengine/entity/contentsets/{contentSetId}/properties Content: – Content Type: – Add.

  • PAGE 596

    Status Code Content Content-Type Add. Headers Description 200 OK JSON Name/Value List (Properties Only) of properties for Content Set application/json – Content Set entity properties successfully retrieved Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required.

  • PAGE 597

    Status Code Content ContentType Add. Headers Description 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 598

    Get Page Details for Content Set Returns the page details for a specific Content Set entity, as either a summary or a list (broken down by Content Item entity).

  • PAGE 599

    Query Name Required Type Default Value Description detail – – False Return a list of details for each Content Item in the Content Set instead of a summary Response Success The following lists status codes indicative of a successful response: Status Code Content Content-Type Add.

  • PAGE 600

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 601

    Service Version Returns the version of the Content Set Entity service. Request Method Type: GET URI: /rest/serverengine/entity/contentsets/version Content: – Content Type: – Add.

  • PAGE 602

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 603

    Update Content Set Properties Submits a request to update (and replace) the properties for a specific Content Set entity in the Server. Request takes a JSON Name/Value List as content (the Content Set ID and the new properties), and on success returns a response containing the result of the request for update/replacement (“true”).

  • PAGE 604

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Result of request to update Content Set text/plain – Update of Content Set properties successfully requested (response of “true” for success) Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 605

    Status Code Content ContentType Add. Headers Description the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 606

    Data Mapping Service The following table is a summary of the resources and methods available in the Data Mapping service: Method Name Uniform Resource Identifier (URI) Method Type Service Handshake /rest/serverengine/workflow/datamining GET Process Data Mapping /rest/serverengine/workflow/datamining/{configId}/ {dataFileId} POST Process Data Mapping (JSON) /rest/serverengine/workflow/datamining/{configId} POST Process Data Mapping (PDF/VT to Data Set) /rest/serverengine/workflow/datamining/pdf

  • PAGE 607

    Method Name Uniform Resource Identifier (URI) Method Type Service Version /rest/serverengine/workflow/datamining/version GET Page 607

  • PAGE 608

    Cancel an Operation Requests the cancellation of a running Data Mapping operation of a specific operation ID. Request takes no content, and on success returns a response with no content. Request Method Type: POST URI: /rest/serverengine/workflow/datamining/cancel/{operationId} Content: – Content Type: – Add.

  • PAGE 609

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 204 No Content – – – Operation cancellation requested Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required.

  • PAGE 610

    Status Code Content ContentType Add. Headers Description token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid. 404 Not Found "JSON Error" on page 39 specifying error message text/plain – Operation not found in Server Create Content Set Submits a request to initiate a new Data Mapping operation.

  • PAGE 611

    Request takes a JSON Identifier (for Content Creation), and on success returns a response containing additional headers that specify the ID of the new operation as well as link URLs that can be used to retrieve further information/cancel the operation. Request Method Type: POST URI: /rest/serverengine/workflow/datamining/createcontentset/{dataFileID} Content: "JSON Identifier (for Content Creation)" on page 61 Content Type: application/json Add.

  • PAGE 612

    Status Code Content ContentType 202 Accepted – – Add. Headers l l operationId – Operation ID of new Data Mapping operation Description Creation of new operation successful Link – Contains multiple link URLs that can be used to retrieve further information/cancel the operation Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 400 Bad Request – – – Data mapping configuration not made for PDF files.

  • PAGE 613

    Status Code Content ContentType Add. Headers Description 401 Unauthorized Error message – – Server authentication has failed. Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 614

    Get All Operations Returns a list of all the workflow operations actively running on the Server. Request takes no content, and on success returns a response containing a JSON Operations List of all the actively running operations. Request Method Type: GET URI: /rest/serverengine/workflow/datamining/getOperations Content: – Content Type: – Add.

  • PAGE 615

    Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers.

  • PAGE 616

    Status Code Content ContentType Add. Headers Description authorization token specified in the request headers are invalid.

  • PAGE 617

    Get Progress of Operation Retrieves the progress of a running Data Mapping operation of a specific operation ID. Request takes no content, and on success returns a response containing the current value of operation progress (values ranging from 0 – 100, followed by the value of 'done' on completion). Request Method Type: GET URI: /rest/serverengine/workflow/datamining/getProgress/{operationId} Content: – Content Type: – Add.

  • PAGE 618

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Progress value of Data Mapping operation text/plain – Progress of operation successfully retrieved Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 619

    Status Code Content ContentType Add. Headers Description the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 620

    Get Result of Operation Retrieves the final result of a completed Data Mapping operation of a specific operation ID. Request takes no content, and on success returns a response containing the ID of the Data Set produced (or Content Set for a PDF/VT to Content Set specific data mapping operation). Alternatively, if the operation was to only validate the data mapping, then a response containing a JSON Data Mapping Validation Result will be returned instead.

  • PAGE 621

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Data Set ID (or Content Set ID) text/plain – Result of completed operation successfully retrieved Success (validate) Status Code Content ContentType Add.

  • PAGE 622

    Status Code Content ContentType Add. Headers Description token have been specified in the request headers. 401 Unauthorized Error message – – Server authentication has failed. Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 623

    Process Data Mapping Submits a request to initiate a new Data Mapping operation. Request takes no content, and on success returns a response containing additional headers that specify the ID of the new operation as well as link URLs that can be used to retrieve further information/cancel the operation. Request Method Type: POST URI: /rest/serverengine/workflow/datamining/{configId}/{dataFileId} Content: – Content Type: – Add.

  • PAGE 624

    Name Required Type Default Value Description Store Query Name Required Type Default Value Description validate – – false Only validate the Data Mapping operation to check for mapping errors Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType 202 Accepted – – Add.

  • PAGE 625

    Status Code Content ContentType Add. Headers Description 400 Bad Request – – – Data file or Data Mapping Configuration not found in File Store 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers.

  • PAGE 626

    Status Code Content ContentType Add. Headers Description credentials or the authorization token specified in the request headers are invalid. Error (Validate) The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed.

  • PAGE 627

    Status Code Content ContentType Add. Headers Description expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 628

    Process Data Mapping (JSON) Submits a request to initiate a new Data Mapping operation. Request takes a JSON Identifier (Managed File) of the data file's Managed File ID or Name as content, and on success returns a response containing additional headers that specify the ID of the new operation as well as link URLs that can be used to retrieve further information/cancel the operation.

  • PAGE 629

    Query Name Required Type Default Value Description validate – – false Only validate the Data Mapping operation to check for mapping errors Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType 202 Accepted – – Add.

  • PAGE 630

    Status Code Content ContentType Add. Headers Description Configuration not found in File Store 401 Unauthorized 401 Unauthorized – Error message – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. Response when neither basic authentication credentials nor an authorization token have been specified in the request headers.

  • PAGE 631

    Status Code Content ContentType Add. Headers Description specified in the request headers are invalid. 500 Internal Server Error – – – JSON Identifier bad or missing Error (Validate) The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 632

    Status Code Content ContentType Add. Headers Description Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 633

    Process Data Mapping (PDF/VT to Content Set) Submits a request to initiate a new Data Mapping operation using a PDF/VT data file specifically. No Data Mapping configuration or template are specified, and a Content Set will be created based on the default properties extracted from the metadata of the PDF/VT data file.

  • PAGE 634

    Name Required Type Default Value Description Store Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType 202 Accepted – – Add.

  • PAGE 635

    Status Code 401 Unauthorized Content Error message ContentType – Add. Headers Description Authenticate – BASIC (Basic Authentication credentials are accepted) required. – Server authentication has failed. Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed.

  • PAGE 636

    Process Data Mapping (PDF/VT to Data Set) Submits a request to initiate a new Data Mapping operation using a PDF/VT data file specifically. No data mapping configuration is specified, and a Data Set will be created based on the default properties extracted from the metadata of the PDF/VT data file.

  • PAGE 637

    Name Required Type Default Value Description Store Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType 202 Accepted – – Add.

  • PAGE 638

    Status Code 401 Unauthorized Content Error message ContentType – Add. Headers Description Authenticate – BASIC (Basic Authentication credentials are accepted) required. – Server authentication has failed. Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed.

  • PAGE 639

    Service Handshake Queries the availability of the Data Mapping service. Request Method Type: GET URI: /rest/serverengine/workflow/datamining Content: – Content Type: – Add.

  • PAGE 640

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 641

    Service Version Returns the version of the Data Mapping service. Request Method Type: GET URI: /rest/serverengine/workflow/datamining/version Content: – Content Type: – Add.

  • PAGE 642

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 643

    Data Record Entity Service The following table is a summary of the resources and methods available in the Data Record Entity service: Method Name Uniform Resource Identifier (URI) Method Type Service Handshake /rest/serverengine/entity/datarecords GET Add Data Records /rest/serverengine/entity/datarecords POST Get Data Record Values /rest/serverengine/entity/datarecords/ {dataRecordId}/values GET Update Data Record Values /rest/serverengine/entity/datarecords/ {dataRecordId}/values PUT Get D

  • PAGE 644

    Add Data Records Submits a request to add one or more Data Record entities to one or more entities in the Server as either: l a Data Record of an existing Data Set entity in the Server, or l a nested Data Record in a Data Table of an existing Data Record entity in the Server Request takes JSON New Record Lists as content (each with the Data Set/Data Record ID, Data Table and the new records/values), and on success returns a response containing no content.

  • PAGE 645

    Status Code Content ContentType Add. Headers Description 200 OK – – – Data Records for Data Set/Data Record entities successfully added Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed.

  • PAGE 646

    Status Code Content ContentType Add. Headers Description 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 647

    Get Data Record Properties Returns a list of the properties for a specific Data Record entity. Request takes no content, and on success returns a response containing a JSON Name/Value List (Properties Only) of all the properties for the Data Record. Request Method Type: GET URI: /rest/serverengine/entity/datarecords/{dataRecordId}/properties Content: – Content Type: – Add.

  • PAGE 648

    Status Code Content Content-Type Add. Headers Description 200 OK JSON Name/Value List (Properties Only) of properties for Data Record application/json – Data Record entity properties successfully retrieved Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required.

  • PAGE 649

    Status Code Content ContentType Add. Headers Description 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 650

    Get Data Record Values Returns a list of the values for a specific Data Record entity, and potentially the values of any nested Data Records (if recursive).

  • PAGE 651

    Query Name Required Type Default Value Description recursive – – False Recurse all Data Tables within the Data Record and retrieve the values of any nested Data Records explicitTypes – – False Retrieve both values and data types of the Data Record Response Success The following lists status codes indicative of a successful response: Status Code Content Content-Type Add.

  • PAGE 652

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 653

    Status Code Content ContentType Add.

  • PAGE 654

    Get Multiple Data Record Values Returns a list of the values for one or more Data Record entities, and potentially the values of any nested Data Records (if recursive). Request takes no content, and on success returns a response containing JSON Record Content Lists of all the values for each Data Record. Request Method Type: GET URI: /rest/serverengine/entity/datarecords/values Content: – Content Type: – Add.

  • PAGE 655

    Name Required Type Default Value Description Records Response Success The following lists status codes indicative of a successful response: Status Code Content Content-Type Add. Headers Description 200 OK JSON Record Content Lists of the values for each Data Record application/json – Data Record entity values successfully retrieved Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 656

    Status Code Content ContentType Add. Headers Description 401 Unauthorized Error message – – Server authentication has failed. Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 657

    Get Multiple Data Record Values (JSON) Returns a list of the values for one or more Data Record entities, and potentially the values of any nested Data Records (if recursive).

  • PAGE 658

    Status Code Content Content-Type Add.

  • PAGE 659

    Status Code Content ContentType Add. Headers Description Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 660

    Service Handshake Queries the availability of the Data Record Entity service. Request Method Type: GET URI: /rest/serverengine/entity/datarecords Content: – Content Type: – Add.

  • PAGE 661

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 662

    Service Version Returns the version of the Data Record Entity service. Request Method Type: GET URI: /rest/serverengine/entity/datarecords/version Content: – Content Type: – Add.

  • PAGE 663

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 664

    Update Data Record Properties Submits a request to update (and replace) the properties for a specific Data Record entity in the Server. Request takes a JSON Name/Value List as content (the Data Record ID and the new properties), and on success returns a response containing the result of the request for update/replacement (“true”).

  • PAGE 665

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Result of request to update Data Record text/plain – Update of Data Record properties successfully requested (response of “true” for success) Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 666

    Status Code Content ContentType Add. Headers Description the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 667

    Update Data Record Values Submits a request to update one or more values for a specific Data Record entity in the Server. Request takes a JSON Record Content List (Fields Only) as content (the Data Record ID and the new values), and on success returns a response containing no content. Request Method Type: PUT URI: /rest/serverengine/entity/datarecords/{dataRecordId}/values Content: JSON Record Content List (Fields Only) of the values for Data Record Content Type: application/json Add.

  • PAGE 668

    Status Code Content ContentType Add. Headers Description 200 OK – – – Data Record entity values successfully updated Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed.

  • PAGE 669

    Status Code Content ContentType Add. Headers message Description authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 670

    Update Multiple Data Record Properties Submits a request to update one or more properties for one or more Data Record entities in the Server. Request takes JSON Name/Value Lists as content (each with the Data Record ID and the new properties), and on success returns a response containing no content. Request Method Type: PUT URI: /rest/serverengine/entity/datarecords/properties Content: JSON Name/Value Lists of the properties of the Data Records Content Type: application/json Add.

  • PAGE 671

    Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers.

  • PAGE 672

    Status Code Content ContentType Add. Headers Description authorization token specified in the request headers are invalid.

  • PAGE 673

    Update Multiple Data Record Values Submits a request to update one or more values for one or more Data Record entities in the Server. Request takes JSON Record Content Lists (Fields Only) as content (each with the Data Record ID and the new values), and on success returns a response containing no content. Request Method Type: PUT URI: /rest/serverengine/entity/datarecords Content: JSON Record Content Lists (Fields Only) of the values for the Data Records Content Type: application/json Add.

  • PAGE 674

    Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers.

  • PAGE 675

    Status Code Content ContentType Add. Headers Description authorization token specified in the request headers are invalid.

  • PAGE 676

    Data Set Entity Service The following table is a summary of the resources and methods available in the Data Set Entity service: Method Name Uniform Resource Identifier (URI) Method Type "Service Handshake" below /rest/serverengine/entity/datasets GET Get All Data Sets /rest/serverengine/entity/datasets GET Get Data Records for Data Set /rest/serverengine/entity/datasets/{dataSetId} GET Delete Data Set Entity /rest/serverengine/entity/datasets/ {dataSetId}/delete POST Get Data Set Properties

  • PAGE 677

    Content: – Content Type: – Accept: text/plain Add. Headers: If server security settings are enabled, then one of the following: l l Authorization – Basic Authentication (Username and Password) credentials (Base64 encoded) auth_token – Authorization Token Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add.

  • PAGE 678

    Status Code 401 Unauthorized Content Error message ContentType – Add. Headers Description Authentication credentials are accepted) Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. – Server authentication has failed. Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed.

  • PAGE 679

    Delete Data Set Entity Submits a request for a specific Data Set entity to be marked for deletion from the Server. Request takes no content, and on success returns a response containing the result of the request for deletion (“true” or “false”). Request Method Type: POST URI: /rest/serverengine/entity/datasets/{dataSetId}/delete Content: – Content Type: – Add.

  • PAGE 680

    Status Code Content ContentType Add. Headers Description 200 OK Result of request for Data Set removal text/plain – Deletion of Data Set successfully requested from Server (response of “true” for success or “false” for failure) Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 681

    Status Code Content ContentType Add. Headers Description 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 682

    Get All Data Sets Returns a list of all the Data Set entities currently contained within the Server. Request takes no content, and on success returns a response containing a JSON Identifier List of all the Data Sets. Request Method Type: GET URI: /rest/serverengine/entity/datasets Content: – Content Type: – Add.

  • PAGE 683

    Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers.

  • PAGE 684

    Status Code Content ContentType Add. Headers Description authorization token specified in the request headers are invalid.

  • PAGE 685

    Get Data Records for Data Set Returns a list of all the Data Record entities contained within a specific Data Set entity. Request takes no content, and on success returns a response containing a JSON Identifier List of all the Data Records in the Data Set. Request Method Type: GET URI: /rest/serverengine/entity/datasets/{dataSetId} Content: – Content Type: – Add.

  • PAGE 686

    Status Code Content Content-Type Add. Headers Description 200 OK JSON Identifier List of all the Data Records in Data Set application/json – Identifier List of Data Records returned Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed.

  • PAGE 687

    Status Code Content ContentType Add. Headers Description 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 688

    Get Data Set Properties Returns a list of the properties for a specific Data Set entity. Request takes no content, and on success returns a response containing a JSON Name/Value List (Properties Only) of all the properties for the Data Set. Request Method Type: GET URI: /rest/serverengine/entity/datasets/{dataSetId}/properties Content: – Content Type: – Add.

  • PAGE 689

    Status Code Content Content-Type Add. Headers Description 200 OK JSON Name/Value List (Properties Only) of properties for Data Set application/json – Data Set entity properties successfully retrieved Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required.

  • PAGE 690

    Status Code Content ContentType Add. Headers Description 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 691

    Service Version Returns the version of the Data Set Entity service. Request Method Type: GET URI: /rest/serverengine/entity/datasets/version Content: – Content Type: – Add.

  • PAGE 692

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 693

    Update Data Set Properties Submits a request to update (and replace) the properties for a specific Data Set entity in the Server. Request takes a JSON Name/Value List as content (the Data Set ID and the new properties), and on success returns a response containing the result of the request for update/replacement (“true”). Request Method Type: PUT URI: /rest/serverengine/entity/datasets/{dataSetId}/properties Content: JSON Name/Value List of properties for Data Set Content Type: application/json Add.

  • PAGE 694

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Result of request to update Data Set text/plain – Update of Data Set properties successfully requested (response of “true” for success) Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 695

    Status Code Content ContentType Add. Headers Description the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 696

    Document Entity Service The following table is a summary of the resources and methods available in the Document Entity service: Method Name Uniform Resource Identifier (URI) Method Type Service Handshake /rest/serverengine/entity/documents GET Get Document Metadata Properties /rest/serverengine/entity/documents/ {documentId}/metadata GET Update Document Metadata Properties /rest/serverengine/entity/documents/ {documentId}/metadata PUT Service Version /rest/serverengine/entity/documents/version

  • PAGE 697

    Get Document Metadata Properties Returns a list of the metadata properties for a specific Document entity. Request takes no content, and on success returns a response containing a JSON Name/Value List (Properties Only) of all the metadata properties for the Document. Request Method Type: GET URI: /rest/serverengine/entity/documents/{documentId}/metadata Content: – Content Type: – Add.

  • PAGE 698

    Status Code Content Content-Type Add. Headers Description 200 OK JSON Name/Value List (Properties Only) of metadata properties for Document application/json – Document entity metadata properties successfully retrieved Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required.

  • PAGE 699

    Status Code Content ContentType Add. Headers Description expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 700

    Service Handshake Queries the availability of the Document Entity service. Request Method Type: GET URI: /rest/serverengine/entity/documents Content: – Content Type: – Add.

  • PAGE 701

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 702

    Service Version Returns the version of the Document Entity service. Request Method Type: GET URI: /rest/serverengine/entity/documents/version Content: – Content Type: – Add.

  • PAGE 703

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 704

    Update Document Metadata Properties Submits a request to update (and replace) the metadata properties for a specific Document entity in the Server. Request takes a JSON Name/Value List as content (the Document ID and the new metadata properties), and on success returns a response containing the result of the request for update/replacement (“true”).

  • PAGE 705

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Result of request to update Document text/plain – Update of Document metadata properties successfully requested (response of “true” for success) Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 706

    Status Code Content ContentType Add. Headers Description Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 707

    Document Set Entity Service The following table is a summary of the resources and methods available in the Document Set Entity service: Method Name Uniform Resource Identifier (URI) Method Type Service Handshake /rest/serverengine/entity/documentsets GET Get Documents for Document Set /rest/serverengine/entity/documentsets/ {documentSetId} GET Get Document Set Metadata Properties /rest/serverengine/entity/documentsets/ {documentSetId}/metadata GET Update Document Set Metadata Properties /rest/

  • PAGE 708

    Get Document Set Metadata Properties Returns a list of the metadata properties for a specific Document Set entity. Request takes no content, and on success returns a response containing a JSON Name/Value List (Properties Only) of all the metadata properties for the Document Set. Request Method Type: GET URI: /rest/serverengine/entity/documentsets/{documentSetId}/metadata Content: – Content Type: – Add.

  • PAGE 709

    Status Code Content Content-Type Add. Headers Description 200 OK JSON Name/Value List (Properties Only) of metadata properties for Document Set application/json – Document Set entity metadata properties successfully retrieved Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required.

  • PAGE 710

    Status Code Content ContentType Add. Headers Description expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 711

    Get Documents for Document Set Returns a list of all the Document entities contained within a specific Document Set entity. Request takes no content, and on success returns a response containing a JSON Identifier List of all the Documents in the Document Set. Request Method Type: GET URI: /rest/serverengine/entity/documentsets/{documentSetId} Content: – Content Type: – Add.

  • PAGE 712

    Status Code Content Content-Type Add. Headers Description 200 OK JSON Identifier List of all the Documents in Document Set application/json – Identifier List of Documents returned Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed.

  • PAGE 713

    Status Code Content ContentType Add. Headers Description 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 714

    Service Handshake Queries the availability of the Document Set Entity service. Request Method Type: GET URI: /rest/serverengine/entity/documentsets Content: – Content Type: – Add.

  • PAGE 715

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 716

    Service Version Returns the version of the Document Set Entity service. Request Method Type: GET URI: /rest/serverengine/entity/documentsets/version Content: – Content Type: – Add.

  • PAGE 717

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 718

    Update Document Set Metadata Properties Submits a request to update (and replace) the metadata properties for a specific Document Set entity in the Server. Request takes a JSON Name/Value List as content (the Document Set ID and the new metadata properties), and on success returns a response containing the result of the request for update/replacement (“true”).

  • PAGE 719

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Result of request to update Document Set text/plain – Update of Document Set metadata properties successfully requested (response of “true” for success) Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 720

    Status Code Content ContentType Add. Headers Description Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 721

    Entity Service The following table is a summary of the resources and methods available in the Entity service: Method Name Uniform Resource Identifier (URI) Method Type Service Handshake /rest/serverengine/entity GET Find Data Entity /rest/serverengine/entity/find PUT Service Version /rest/serverengine/entity/version GET Page 721

  • PAGE 722

    Find Data Entity Submits data entity search criteria to the PReS Connect Server. Request takes a JSON Search Parameters structure as content and on success returns a response containing JSON Identifier Lists (with Sort Key) of the data entity IDs matching the search criteria. Method Type: PUT URI: /rest/serverengine/entity/find Content: JSON Search Parameters containing search criteria/rules Content Type: application/json Add.

  • PAGE 723

    Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers.

  • PAGE 724

    Status Code Content ContentType Add. Headers Description authorization token specified in the request headers are invalid.

  • PAGE 725

    Service Handshake Queries the availability of the Entity service. Request Method Type: GET URI: /rest/serverengine/entity Content: – Content Type: – Add. Headers: If server security settings are enabled, then one of the following: l l Authorization – Basic Authentication (Username and Password) credentials (Base64 encoded) auth_token – Authorization Token Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add.

  • PAGE 726

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 727

    Service Version Returns the version of the Entity service. Request Method Type: GET URI: /rest/serverengine/entity/version Content: – Content Type: – Add. Headers: If server security settings are enabled, then one of the following: l l Authorization – Basic Authentication (Username and Password) credentials (Base64 encoded) auth_token – Authorization Token Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add.

  • PAGE 728

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 729

    File Store Service The following table is a summary of the resources and methods available in the File Store service: Method Name Uniform Resource Identifier (URI) Method Type Service Handshake /rest/serverengine/filestore GET Synchronize/Upload Managed File (Internal Only) /rest/serverengine/filestore/file/{fileId} POST Synchronize/Upload Managed Directory (Internal Only) /rest/serverengine/filestore/dir/{fileId} POST Download Managed File or Directory /rest/serverengine/filestore/file/{fileI

  • PAGE 730

    Method Name Uniform Resource Identifier (URI) Method Type Upload Output Creation Preset /rest/serverengine/filestore/OutputCreationConfig POST Service Version /rest/serverengine/filestore/version GET Page 730

  • PAGE 731

    Service Handshake Queries the availability of the File Store service. Request Method Type: GET URI: /rest/serverengine/filestore Content: – Content Type: – Add. Headers: If server security settings are enabled, then one of the following: l l Authorization – Basic Authentication (Username and Password) credentials (Base64 encoded) auth_token – Authorization Token Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add.

  • PAGE 732

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 733

    Synchronize/Upload Managed Directory (Internal Only) Synchronizes/uploads an existing directory of a specific Managed File ID (or Name) from a Server Extension File Store, to the Server's File Store and is used exclusively in a clustered environment. Request takes zipped file data as content, and on success returns a response containing the Managed File ID (or Name) of the directory. Warning This method is strictly used internally by PReS Connect.

  • PAGE 734

    Name Required Type Default Value Description the file or directory in File Store Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Managed File ID (or Name) text/plain – Directory successfully synchronized/uploaded to File Store Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 735

    Status Code Content ContentType Add. Headers Description 401 Unauthorized Error message – – Server authentication has failed. Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 736

    Synchronize/Upload Managed File (Internal Only) Synchronizes/uploads an existing file of a specific Managed File ID (or Name) from a Server Extension File Store, to the Server's File Store and is used exclusively in a clustered environment. Request takes binary file data as content, and on success returns a response containing the Managed File ID (or Name) of the file. Warning This method is strictly used internally by PReS Connect.

  • PAGE 737

    Parameters Path Name Required Type Default Value Description fileId – – – The Managed File ID (or Name) of the file or directory in File Store Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add.

  • PAGE 738

    Status Code Content ContentType Add. Headers Description authorization token have been specified in the request headers. 401 Unauthorized Error message – – Server authentication has failed. Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 739

    Request takes no content, and on success returns a response containing the file or directory data (as zipped file). Request Method Type: GET URI: /rest/serverengine/filestore/file/{fileId} Content: – Content Type: – Add.

  • PAGE 740

    Status Code Content Content-Type Add. Headers Description 200 OK File application/octetstream ContentDisposition – Filename of the Managed File File successfully downloaded from File Store. Example: "attachment; filename=PromoEN.OL-datamapper" 200 OK Directory (zipped) application/zip ContentDisposition – Filename of the Managed Directory Directory successfully downloaded from File Store. Example: "attachment; filename=letterol.

  • PAGE 741

    Status Code Content ContentType Add. Headers Description authorization token have been specified in the request headers. 401 Unauthorized Error message – – Server authentication has failed. Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 742

    Request takes no content, and on success returns a response containing the file or directory data (as zipped file). Request Method Type: GET URI: /rest/serverengine/filestore/file/{fileId}/{relPath: .+} Content: – Content Type: – Add.

  • PAGE 743

    Query Name Required Type Default Value Description output No String – The output method to be used for the file Response Success The following lists status codes indicative of a successful response: Status Code Content Content-Type Add. Headers Description 200 OK File application/octetstream Content-Disposition – Filename of the specific file within directory File successfully downloaded from File Store E.g. "attachment; filename=pps-box.

  • PAGE 744

    Status Code Content Content-Type Add. Headers Description 200 OK Directory (Zipped) application/zip Content-Disposition – File name of the specific directory (zipped) within directory Directory successfully downloaded from File Store. E.g. "attachment; filename=images.zip" Error The following lists status codes indicative of a failed or error response: Status Code Content Content-Type Add.

  • PAGE 745

    Status Code Content Content-Type Add. Headers Description Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid. 404 Not Found "JSON Error" on page 39 specifying error message application/octetstream – Directory not found in File Store.

  • PAGE 746

    Delete Managed File or Directory Removes an existing file or directory of a specific Managed File ID (or Name) from the File Store. Request takes no content, and on success returns a response containing the result of the request for removal (“true” or “false”). Request Method Type: GET URI: /rest/serverengine/filestore/delete/{fileId} Content: – Content Type: – Add.

  • PAGE 747

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Result of request for removal text/plain – Removal of file or directory successfully requested from File Store (response of “true” for success or “false” for failure) Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 748

    Status Code Content ContentType Add. Headers Description the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 749

    Upload Data File Submits a data file to the File Store. Request takes binary file data as content, and on success returns a response containing the new Managed File ID for the data file. Request Method Type: POST URI: /rest/serverengine/filestore/DataFile Content: Data File (File) Content Type: application/octet-stream Add.

  • PAGE 750

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Managed File ID (or Name) text/plain – Data file successfully uploaded to File Store Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 751

    Status Code Content ContentType Add. Headers Description the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 752

    Upload Data Mapping Configuration Submits a Data Mapping configuration to the File Store. Request takes binary file data as content, and on success returns a response containing the new Managed File ID for the configuration. Request Method Type: POST URI: /rest/serverengine/filestore/DataMiningConfig Content: Data Mapping Configuration (File) Content Type: application/octet-stream Add.

  • PAGE 753

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Managed File ID (or Name) text/plain – Configuration successfully uploaded to File Store Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 754

    Status Code Content ContentType Add. Headers Description the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 755

    Upload Template Submits a template to the File Store. Request takes zipped file data as content, and on success returns a response containing the new Managed File ID for the template. Request Method Type: POST URI: /rest/serverengine/filestore/template Content: Template (File) Content Type: application/zip Add.

  • PAGE 756

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Managed File ID (or Name) text/plain – Template successfully uploaded to File Store Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 757

    Status Code Content ContentType Add. Headers Description the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 758

    Upload Job Creation Preset Submits a Job Creation preset to the File Store. Request takes XML file data as content, and on success returns a response containing the new Managed File ID for the preset. Request Method Type: POST URI: /rest/serverengine/filestore/JobCreationConfig Content: Job Creation Preset (File) Content Type: application/xml Add.

  • PAGE 759

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Managed File ID (or Name) text/plain – Preset successfully uploaded to File Store Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 760

    Status Code Content ContentType Add. Headers Description the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 761

    Upload Output Creation Preset Submits an Output Creation preset to the File Store. Request takes XML file data as content, and on success returns a response containing the new Managed File ID for the preset. Request Method Type: POST URI: /rest/serverengine/filestore/OutputCreationConfig Content: Output Creation Preset (File) Content Type: application/xml Add.

  • PAGE 762

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Managed File ID (or Name) text/plain – Preset successfully uploaded to File Store Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 763

    Status Code Content ContentType Add. Headers Description the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 764

    Service Version Returns the version of the File Store service. Request Method Type: GET URI: /rest/serverengine/filestore/version Content: – Content Type: – Add. Headers: If server security settings are enabled, then one of the following: l l Authorization – Basic Authentication (Username and Password) credentials (Base64 encoded) auth_token – Authorization Token Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add.

  • PAGE 765

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 766

    Job Creation Service The following table is a summary of the resources and methods available in the Job Creation service: Method Name Uniform Resource Identifier (URI) Method Type Service Handshake /rest/serverengine/workflow/jobcreation GET Process Job Creation /rest/serverengine/workflow/jobcreation/{configId} POST "Process Job Creation (By Content Set) (JSON)" on page 783 /rest/serverengine/workflow/jobcreation/{configId} POST "Process Job Creation (By Content Set) (Runtime Parameters) (JSON

  • PAGE 767

    Method Name Uniform Resource Identifier (URI) Method Type Get Result of Operation /rest/serverengine/workflow/jobcreation/getResult/ {operationId} POST Cancel an Operation /rest/serverengine/workflow/jobcreation/cancel/ {operationId} POST Service Version /rest/serverengine/workflow/jobcreation/version GET Page 767

  • PAGE 768

    Cancel an Operation Requests the cancellation of a running Job Creation operation of a specific operation ID. Request takes no content, and on success returns a response with no content. Request Method Type: POST URI: /rest/serverengine/workflow/jobcreation/cancel/{operationId} Content: – Content Type: – Add.

  • PAGE 769

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 204 No Content – – – Operation cancellation requested Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required.

  • PAGE 770

    Status Code Content ContentType Add. Headers Description token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 771

    Get All Operations Returns a list of all the workflow operations actively running on the Server. Request takes no content, and on success returns a response containing a JSON Operations List of all the actively running operations. Request Method Type: GET URI: /rest/serverengine/workflow/jobcreation/getOperations Content: – Content Type: – Add.

  • PAGE 772

    Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers.

  • PAGE 773

    Status Code Content ContentType Add. Headers Description authorization token specified in the request headers are invalid.

  • PAGE 774

    Get Progress of Operation Retrieves the progress of a running Job Creation operation of a specific operation ID. Request takes no content, and on success returns a response containing the current value of operation progress (values ranging from 0 – 100, followed by the value of 'done' on completion). Request Method Type: GET URI: /rest/serverengine/workflow/jobcreation/getProgress/{operationId} Content: – Content Type: – Add.

  • PAGE 775

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Progress value of Job Creation operation text/plain – Progress of operation successfully retrieved Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 776

    Status Code Content ContentType Add. Headers Description the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 777

    Get Result of Operation Retrieves the final result of a completed Job Creation operation of a specific operation ID. Request takes no content, and on success returns a response containing the ID of the Job Set produced. Request Method Type: POST URI: /rest/serverengine/workflow/jobcreation/getResult/{operationId} Content: – Content Type: – Add.

  • PAGE 778

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Job Set ID text/plain – Result of completed operation successfully retrieved Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 779

    Status Code Content ContentType Add. Headers Description the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 780

    Process Job Creation Submits a request to initiate a new Job Creation operation. Request takes no content, and on success returns a response containing additional headers that specify the ID of the new operation as well as link URLs that can be used to retrieve further information/cancel the operation. Request Method Type: POST URI: /rest/serverengine/workflow/jobcreation/{configId} Content: – Content Type: – Add.

  • PAGE 781

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType 202 Accepted – – Add. Headers l l operationId – Operation ID of new Job Creation operation Description Creation of new operation successful Link – Contains multiple link URLs that can be used to retrieve further information/cancel the operation Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 782

    Status Code Content ContentType Add. Headers Description request headers. 401 Unauthorized Error message – – Server authentication has failed. Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 783

    Process Job Creation (By Content Set) (JSON) Submits a request to initiate a new Job Creation operation. Request takes a JSON Identifier List of Content Set IDs as content, and on success returns a response containing additional headers that specify the ID of the new operation as well as link URLs that can be used to retrieve further information/cancel the operation.

  • PAGE 784

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType 202 Accepted – – Add. Headers l l operationId – Operation ID of new Job Creation operation Description Creation of new operation successful Link – Contains multiple link URLs that can be used to retrieve further information/cancel the operation Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 785

    Status Code Content ContentType Add. Headers Description request headers. 401 Unauthorized Error message – – Server authentication has failed. Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 786

    Request takes a JSON Identifier List (with Runtime Parameters) of Content Set IDs and parameters as content, and on success returns a response containing additional headers that specify the ID of the new operation as well as link URLs that can be used to retrieve further information/cancel the operation.

  • PAGE 787

    Status Code Content ContentType 202 Accepted – – Add. Headers l l operationId – Operation ID of new Job Creation operation Description Creation of new operation successful Link – Contains multiple link URLs that can be used to retrieve further information/cancel the operation Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 788

    Status Code Content ContentType Add. Headers Description Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 789

    Process Job Creation (By Job Set Structure) (JSON) Submits a request to initiate a new Job Creation operation. Request takes a JSON Job Set Structure containing a list of Content Items as content, and on success returns a response containing additional headers that specify the ID of the new operation as well as link URLs that can be used to retrieve further information/cancel the operation.

  • PAGE 790

    Status Code Content ContentType Add. Headers Description operation l Link – Contains multiple link URLs that can be used to retrieve further information/cancel the operation Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed.

  • PAGE 791

    Status Code Content ContentType Add. Headers Description token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 792

    Service Handshake Queries the availability of the Job Creation service. Request Method Type: GET URI: /rest/serverengine/workflow/jobcreation Content: – Content Type: – Add.

  • PAGE 793

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 794

    Service Version Returns the version of the Job Creation service. Request Method Type: GET URI: /rest/serverengine/workflow/jobcreation/version Content: – Content Type: – Add.

  • PAGE 795

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 796

    Job Entity Service The following table is a summary of the resources and methods available in the Job Entity service: Method Name Uniform Resource Identifier (URI) Method Type Service Handshake /rest/serverengine/entity/jobs GET Get Content Items for Job /rest/serverengine/entity/jobs/ {jobId}/contents GET Get Job Segments for Job /rest/serverengine/entity/jobs/{jobId} GET Get Job Metadata Properties /rest/serverengine/entity/jobs/ {jobId}/metadata GET Update Job Metadata Properties /rest/s

  • PAGE 797

    Get Content Items for Job Returns a list of all the Content Item entities (and their corresponding Data Record entities) contained within a specific Job entity. Request takes no content, and on success returns a response containing a JSON Content Item Identifier List of all the Content Items for the Job. Request Method Type: GET URI: /rest/serverengine/entity/jobs/{jobId}/contents Content: – Content Type: – Add.

  • PAGE 798

    Status Code Content Content-Type Add. Headers Description 200 OK JSON Content Item Identifier List of all the Content Items in Job application/json – Content Item Identifier List returned Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed.

  • PAGE 799

    Status Code Content ContentType Add. Headers Description 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 800

    Get Job Metadata Properties Returns a list of the metadata properties for a specific Job entity. Request takes no content, and on success returns a response containing a JSON Name/Value List (Properties Only) of all the metadata properties for the Job. Request Method Type: GET URI: /rest/serverengine/entity/jobs/{jobId}/metadata Content: – Content Type: – Add.

  • PAGE 801

    Status Code Content Content-Type Add. Headers Description 200 OK JSON Name/Value List (Properties Only) of metadata properties for Job application/json – Job entity metadata properties successfully retrieved Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required.

  • PAGE 802

    Status Code Content ContentType Add. Headers Description expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 803

    Get Job Properties Returns a list of the properties for a specific Job entity. Request takes no content, and on success returns a response containing a JSON Name/Value List (Properties Only) of all the properties for the Job. Request Method Type: GET URI: /rest/serverengine/entity/jobs/{jobId}/properties Content: – Content Type: – Add.

  • PAGE 804

    Status Code Content Content-Type Add. Headers Description 200 OK JSON Name/Value List (Properties Only) of properties for Job application/json – Job entity properties successfully retrieved Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required.

  • PAGE 805

    Status Code Content ContentType Add. Headers Description 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 806

    Get Job Segments for Job Returns a list of all the Job Segment entities contained within a specific Job entity. Request takes no content, and on success returns a response containing a JSON Identifier List of all the Job Segments in the Job. Request Method Type: GET URI: /rest/serverengine/entity/jobs/{jobId} Content: – Content Type: – Add.

  • PAGE 807

    Status Code Content Content-Type Add. Headers Description 200 OK JSON Identifier List of all the Job Segments in Job application/json – Identifier List of Job Segments returned Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed.

  • PAGE 808

    Status Code Content ContentType Add. Headers Description 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 809

    Service Handshake Queries the availability of the Job Entity service. Request Method Type: GET URI: /rest/serverengine/entity/jobs Content: – Content Type: – Add. Headers: If server security settings are enabled, then one of the following: l l Authorization – Basic Authentication (Username and Password) credentials (Base64 encoded) auth_token – Authorization Token Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add.

  • PAGE 810

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 811

    Service Version Returns the version of the Job Entity service. Request Method Type: GET URI: /rest/serverengine/entity/jobs/version Content: – Content Type: – Add. Headers: If server security settings are enabled, then one of the following: l l Authorization – Basic Authentication (Username and Password) credentials (Base64 encoded) auth_token – Authorization Token Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add.

  • PAGE 812

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 813

    Update Job Metadata Properties Submits a request to update (and replace) the metadata properties for a specific Job entity in the Server. Request takes a JSON Name/Value List as content (the Job ID and the new metadata properties), and on success returns a response containing the result of the request for update/replacement (“true”).

  • PAGE 814

    Status Code Content ContentType Add. Headers Description 200 OK Result of request to update Job text/plain – Update of Job metadata properties successfully requested (response of “true” for success) Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required.

  • PAGE 815

    Status Code Content ContentType Add. Headers Description 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 816

    Update Job Properties Submits a request to update (and replace) the properties for a specific Job entity in the Server. Request takes a JSON Name/Value List as content (the Job ID and the new properties), and on success returns a response containing the result of the request for update/replacement (“true”). Request Method Type: PUT URI: /rest/serverengine/entity/jobs/{jobId}/properties Content: JSON Name/Value List of properties for Job Content Type: application/json Add.

  • PAGE 817

    Status Code Content ContentType Add. Headers Description 200 OK Result of request to update Job text/plain – Update of Job properties successfully requested (response of “true” for success) Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required.

  • PAGE 818

    Status Code Content ContentType Add. Headers Description 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 819

    Update Multiple Job Properties Submits a request to update one or more properties for one or more Job entities in the Server. Request takes JSON Name/Value Lists as content (each with the Job ID and the new properties), and on success returns a response containing no content. Request Method Type: PUT URI: /rest/serverengine/entity/jobs/properties Content: JSON Name/Value List of the properties of the Jobs Content Type: application/json Add.

  • PAGE 820

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 821

    Job Segment Entity Service The following table is a summary of the resources and methods available in the Job Segment Entity service: Method Name Uniform Resource Identifier (URI) Method Type Service Handshake /rest/serverengine/entity/jobsegments GET Get Document Sets for Job Segment /rest/serverengine/entity/jobsegments/ {jobSegmentId} GET Get Job Segment Metadata Properties /rest/serverengine/entity/jobsegments/ {jobSegmentId}/metadata GET Update Job Segment Metadata Properties /rest/server

  • PAGE 822

    Get Document Sets for Job Segment Returns a list of all the Document Set entities contained within a specific Job Segment entity. Request takes no content, and on success returns a response containing a JSON Identifier List of all the Document Sets in the Job Segment. Request Method Type: GET URI: /rest/serverengine/entity/jobsegments/{jobSegmentId} Content: – Content Type: – Add.

  • PAGE 823

    Status Code Content Content-Type Add. Headers Description 200 OK JSON Identifier List of all the Document Sets in Job Segment application/json – Identifier List of Document Sets returned Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed.

  • PAGE 824

    Status Code Content ContentType Add. Headers Description 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 825

    Get Job Segment Metadata Properties Returns a list of the metadata properties for a specific Job Segment entity. Request takes no content, and on success returns a response containing a JSON Name/Value List (Properties Only) of all the metadata properties for the Job Segment. Request Method Type: GET URI: /rest/serverengine/entity/jobsegments/{jobSegmentId}/metadata Content: – Content Type: – Add.

  • PAGE 826

    Status Code Content Content-Type Add. Headers Description 200 OK JSON Name/Value List (Properties Only) of metadata properties for Job Segment application/json – Job Segment entity metadata properties successfully retrieved Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required.

  • PAGE 827

    Status Code Content ContentType Add. Headers Description expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 828

    Service Handshake Queries the availability of the Job Segment Entity service. Request Method Type: GET URI: /rest/serverengine/entity/jobsegments Content: – Content Type: – Add.

  • PAGE 829

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 830

    Service Version Returns the version of the Job Segment Entity service. Request Method Type: GET URI: /rest/serverengine/entity/jobsegments/version Content: – Content Type: – Add.

  • PAGE 831

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 832

    Update Job Segment Metadata Properties Submits a request to update (and replace) the metadata properties for a specific Job Segment entity in the Server. Request takes a JSON Name/Value List as content (the Job Segment ID and the new metadata properties), and on success returns a response containing the result of the request for update/replacement (“true”).

  • PAGE 833

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Result of request to update Job Segment text/plain – Update of Job Segment metadata properties successfully requested (response of “true” for success) Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 834

    Status Code Content ContentType Add. Headers Description Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 835

    Job Set Entity Service The following table is a summary of the resources and methods available in the Job Set Entity service: Method Name Uniform Resource Identifier (URI) Method Type "Service Handshake" below /rest/serverengine/entity/jobsets GET Get All Job Sets /rest/serverengine/entity/jobsets GET Get Jobs for Job Set /rest/serverengine/entity/jobsets/{jobSetId} GET Delete Job Set Entity /rest/serverengine/entity/jobsets/ {jobSetId}/delete POST Get Job Set Metadata Properties /rest/serv

  • PAGE 836

    Request Method Type: GET URI: /rest/serverengine/entity/jobsets Content: – Content Type: – Accept: text/plain Add. Headers: If server security settings are enabled, then one of the following: l l Authorization – Basic Authentication (Username and Password) credentials (Base64 encoded) auth_token – Authorization Token Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add.

  • PAGE 837

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 838

    Delete Job Set Entity Submits a request for a specific Job Set entity to be marked for deletion from the Server. Request takes no content, and on success returns a response containing the result of the request for deletion (“true” or “false”). Request Method Type: POST URI: /rest/serverengine/entity/jobsets/{jobSetId}/delete Content: – Content Type: – Add.

  • PAGE 839

    Status Code Content ContentType Add. Headers Description 200 OK Result of request for Job Set removal text/plain – Deletion of Job Set successfully requested from Server (response of “true” for success or “false” for failure) Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required.

  • PAGE 840

    Status Code Content ContentType Add. Headers Description 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 841

    Get All Job Sets Returns a list of all the Job Set entities currently contained within the Server. Request takes no content, and on success returns a response containing a JSON Identifier List of all the Job Sets. Request Method Type: GET URI: /rest/serverengine/entity/jobsets Content: – Content Type: – Add.

  • PAGE 842

    Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers.

  • PAGE 843

    Status Code Content ContentType Add. Headers Description authorization token specified in the request headers are invalid.

  • PAGE 844

    Get Job Set Metadata Properties Returns a list of the metadata properties for a specific Job Set entity. Request takes no content, and on success returns a response containing a JSON Name/Value List (Properties Only) of all the metadata properties for the Job Set. Request Method Type: GET URI: /rest/serverengine/entity/jobsets/{jobSetId}/metadata Content: – Content Type: – Add.

  • PAGE 845

    Status Code Content Content-Type Add. Headers Description 200 OK JSON Name/Value List (Properties Only) of metadata properties for Job Set application/json – Job Set entity metadata properties successfully retrieved Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required.

  • PAGE 846

    Status Code Content ContentType Add. Headers Description expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 847

    Get Job Set Properties Returns a list of the properties for a specific Job Set entity. Request takes no content, and on success returns a response containing a JSON Name/Value List (Properties Only) of all the properties for the Job Set. Request Method Type: GET URI: /rest/serverengine/entity/jobsets/{jobSetId}/properties Content: – Content Type: – Add.

  • PAGE 848

    Status Code Content Content-Type Add. Headers Description 200 OK JSON Name/Value List (Properties Only) of properties for Job Set application/json – Job Set entity properties successfully retrieved Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required.

  • PAGE 849

    Status Code Content ContentType Add. Headers Description 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 850

    Get Jobs for Job Set Returns a list of all the Job entities contained within a specific Job Set entity. Request takes no content, and on success returns a response containing a JSON Identifier List of all the Jobs in the Job Set. Request Method Type: GET URI: /rest/serverengine/entity/jobsets/{jobSetId} Content: – Content Type: – Add.

  • PAGE 851

    Status Code Content Content-Type Add. Headers Description 200 OK JSON Identifier List of all the Jobs in Job Set application/json – Identifier List of Jobs returned Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed.

  • PAGE 852

    Status Code Content ContentType Add. Headers Description 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 853

    Service Version Returns the version of the Job Set Entity service. Request Method Type: GET URI: /rest/serverengine/entity/jobsets/version Content: – Content Type: – Add.

  • PAGE 854

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 855

    Update Job Set Metadata Properties Submits a request to update (and replace) the metadata properties for a specific Job Set entity in the Server. Request takes a JSON Name/Value List as content (the Job Set ID and the new metadata properties), and on success returns a response containing the result of the request for update/replacement (“true”).

  • PAGE 856

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Result of request to update Job Set text/plain – Update of Job Set metadata properties successfully requested (response of “true” for success) Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 857

    Status Code Content ContentType Add. Headers Description the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 858

    Update Job Set Properties Submits a request to update (and replace) the properties for a specific Job Set entity in the Server. Request takes a JSON Name/Value List as content (the Job Set ID and the new properties), and on success returns a response containing the result of the request for update/replacement (“true”). Request Method Type: PUT URI: /rest/serverengine/entity/jobsets/{jobSetId}/properties Content: JSON Name/Value List of properties for Job Set Content Type: application/json Add.

  • PAGE 859

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Result of request to update Job Set text/plain – Update of Job Set properties successfully requested (response of “true” for success) Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 860

    Status Code Content ContentType Add. Headers Description the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 861

    Output Creation Service The following table is a summary of the resources and methods available in the Output Creation service: Method Name Uniform Resource Identifier (URI) Method Type Service Handshake /rest/serverengine/workflow/outputcreation GET "Process Output Creation (By Job Set)" on page 865 /rest/serverengine/workflow/outputcreation/{configId}/ {jobSetId} POST "Process Output Creation (By Job Set) (JSON)" on page 868 /rest/serverengine/workflow/outputcreation/{configId} POST Process O

  • PAGE 862

    Method Name Uniform Resource Identifier (URI) Method Type Operation {operationId} Get Result of Operation (as Text) /rest/serverengine/workflow/outputcreation/getResultTxt/ {operationId} POST Cancel an Operation /rest/serverengine/workflow/outputcreation/cancel/ {operationId} POST Service Version /rest/serverengine/workflow/outputcreation/version GET Page 862

  • PAGE 863

    Service Handshake Queries the availability of the Output Creation service. Request Method Type: GET URI: /rest/serverengine/workflow/outputcreation Content: – Content Type: – Add.

  • PAGE 864

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 865

    Process Output Creation (By Job Set) Submits a request to initiate a new Output Creation operation. Request takes no content, and on success returns a response containing additional headers that specify the ID of the new operation as well as link URLs that can be used to retrieve further information/cancel the operation. Request Method Type: POST URI: /rest/serverengine/workflow/outputcreation/{configId}/{jobSetId} Content: – Content Type: – Add.

  • PAGE 866

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType 202 Accepted – – Add. Headers l l operationId – Operation ID of new Output Creation operation Description Creation of new operation successful Link – Contains multiple link URLs that can be used to retrieve further information/cancel the operation Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 867

    Status Code Content ContentType Add. Headers Description request headers. 401 Unauthorized Error message – – Server authentication has failed. Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 868

    Process Output Creation (By Job Set) (JSON) Submits a request to initiate a new Output Creation operation. Request takes a JSON Identifier (with Output Parameters) of the Job Set ID as content, and on success returns a response containing additional headers that specify the ID of the new operation as well as link URLs that can be used to retrieve further information/cancel the operation.

  • PAGE 869

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType 202 Accepted – – Add. Headers l l operationId – Operation ID of new Output Creation operation Description Creation of new operation successful Link – Contains multiple link URLs that can be used to retrieve further information/cancel the operation Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 870

    Status Code Content ContentType Add. Headers Description request headers. 401 Unauthorized Error message – – Server authentication has failed. Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 871

    Process Output Creation (By Job) (JSON) Submits a request to initiate a new Output Creation operation. Request takes a JSON Identifier List (with Output Parameters) of the Job IDs as content, and on success returns a response containing additional headers that specify the ID of the new operation as well as link URLs that can be used to retrieve further information/cancel the operation.

  • PAGE 872

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType 202 Accepted – – Add. Headers l l operationId – Operation ID of new Output Creation operation Description Creation of new operation successful Link – Contains multiple link URLs that can be used to retrieve further information/cancel the operation Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 873

    Status Code Content ContentType Add. Headers Description request headers. 401 Unauthorized Error message – – Server authentication has failed. Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 874

    Run +PReS Enhance Workflow Configuration Submits a request to run a +PReS Enhance workflow configuration via the Weaver engine directly, using a list of command-line arguments. Request takes no content, and on success returns a response containing the result of the request to run/execute the workflow configuration. Request Method Type: GET URI: /rest/serverengine/workflow/outputcreation/execute/{args}/{size} Content: – Content Type: – Add.

  • PAGE 875

    Name Required Type Default Value Description +PReS Enhance workflow configuration l l size – – -O, – the path to directory to be used for output – the path(s) to the file(s) to be used as input The estimated page size, used by PReS Connect to determine the job size (which determines the number of speed units to use) – 1 For a list of all the available command-line arguments accepted by the Weaver engine, please reference the +PReS Enhance documentation.

  • PAGE 876

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 877

    Get All Operations Returns a list of all the workflow operations actively running on the Server. Request takes no content, and on success returns a response containing a JSON Operations List of all the actively running operations. Request Method Type: GET URI: /rest/serverengine/workflow/outputcreation/getOperations Content: – Content Type: – Add.

  • PAGE 878

    Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers.

  • PAGE 879

    Status Code Content ContentType Add. Headers Description authorization token specified in the request headers are invalid.

  • PAGE 880

    Get Progress of Operation Retrieves the progress of a running Output Creation operation of a specific operation ID. Request takes no content, and on success returns a response containing the current value of operation progress (values ranging from 0 – 100, followed by the value of 'done' on completion). Request Method Type: GET URI: /rest/serverengine/workflow/outputcreation/getProgress/{operationId} Content: – Content Type: – Add.

  • PAGE 881

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Progress value of Output Creation operation text/plain – Progress of operation successfully retrieved Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 882

    Status Code Content ContentType Add. Headers Description the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 883

    Get Result of Operation Retrieves the final result of a completed Output Creation operation of a specific operation ID. Request takes no content, and on success returns a response containing either the absolute paths of the final output files produced (multiple spool files) or the content of a final output file (single spool file). Request Method Type: POST URI: /rest/serverengine/workflow/outputcreation/getResult/{operationId} Content: – Content Type: – Add.

  • PAGE 884

    Response Success The following lists status codes indicative of a successful response: Status Code Content Content-Type Add. Headers Description 200 OK Absolute Paths of the Output Files or the Output File itself application/octetstream – Result of completed operation successfully retrieved Error The following lists status codes indicative of a failed or error response: Status Code Content Content-Type Add.

  • PAGE 885

    Status Code Content Content-Type Add. Headers Description has failed. Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 886

    Get Result of Operation (as Text) Retrieves the final result of a completed Output Creation operation of a specific operation ID. Request takes no content, and on success returns a response containing the absolute path or paths of the final output file or files produced (single or multiple spool files respectively). Request Method Type: POST URI: /rest/serverengine/workflow/outputcreation/getResultTxt/{operationId} Content: – Content Type: – Add.

  • PAGE 887

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 200 OK Absolute Path(s) of the Output File(s) text/plain – Result of completed operation successfully retrieved Error The following lists status codes indicative of a failed or error response: Status Code Content Content-Type Add.

  • PAGE 888

    Status Code Content Content-Type Add. Headers Description Response when the authorization token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 889

    Cancel an Operation Requests the cancellation of a running Output Creation operation of a specific operation ID. Request takes no content, and on success returns a response with no content. Request Method Type: POST URI: /rest/serverengine/workflow/outputcreation/cancel/{operationId} Content: – Content Type: – Add.

  • PAGE 890

    Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add. Headers Description 204 No Content – – – Operation cancellation requested Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required.

  • PAGE 891

    Status Code Content ContentType Add. Headers Description token specified in the request headers has now expired. 403 Forbidden Error message – – Server authentication has failed. Response when either the basic authentication credentials or the authorization token specified in the request headers are invalid.

  • PAGE 892

    Service Version Returns the version of the Output Creation service. Request Method Type: GET URI: /rest/serverengine/workflow/outputcreation/version Content: – Content Type: – Add.

  • PAGE 893

    Status Code Content ContentType Add. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed. 401 Unauthorized Error message – Response when neither basic authentication credentials nor an authorization token have been specified in the request headers. Response when the authorization token specified in the request headers has now expired.

  • PAGE 894

    Copyright Information Copyright © 1994–2021 Objectif Lune Inc. All Rights Reserved. No part of this publication may be reproduced, transmitted, transcribed, stored in a retrieval system, or translated into any other language or computer language in whole or in part, in any form or by any means, whether it be electronic, mechanical, magnetic, optical, manual or otherwise, without prior written consent of Objectif Lune Inc. Objectif Lune Inc.

  • PAGE 895

    Legal Notices and Acknowledgements PReS Connect, Copyright © 2021, Objectif Lune Inc. All rights reserved. This guide uses the following third party components: l l jQuery Library Copyright © JS Foundation and other contributors. This is distributed under the terms of the Massachusetts Institute of Technology (MIT) license. QUnit Library Copyright © JS/jQuery Foundation and other contributors. This is distributed under the terms of the Massachusetts Institute of Technology (MIT) license.

  • PAGE 896