2021.1

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

Summary of content (910 pages)

Options
Actions
JavaScript/jQuery fs-datamapper-upload.

  • PAGE 163

    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 164

    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 165

    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 166

    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 167

    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 168

    Options

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

  • PAGE 169

    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 170

    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 171

    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 172

    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 173

    Options
    Actions
    JavaScript/jQuery fs-jcpreset-upload.

  • PAGE 174

    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 175

    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 176

    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 177

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

  • PAGE 178

    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 179

    Options
    Actions
    JavaScript/jQuery fs-ocpreset-upload.

  • PAGE 180

    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 181

    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 182

    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 183

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

  • PAGE 184

    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 185

    Finding Specific Data Entities in the Server Problem You want to find specific Data Entities stored within the PlanetPress 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.

  • PAGE 186

  • PAGE 187

    Sorting Rules
  • PAGE 188

    Actions
    rules.

  • PAGE 189

    data-type="enum-condition-string"/>

  • PAGE 190

    PAGE 191

  • PAGE 193

    PAGE 194

    PAGE 195

  • PAGE 197

    ", { "id": "remove-rule", "type": "button", "value": "Remove Rule" })); if (ruleType === "RULESET") { $buttons .

  • PAGE 203

    incompatible = {}, reconfigure = {}; categories.forEach(function (category) { options[category] = []; $("fieldset#" + category) .find("#rule-type") .children("option") .each(function (index, option) { var $option = $(option), allClazz = $entity.attr("id") + ""; if ($option.hasClass(allClazz) || $option.hasClass(allClazz + $entity.val())) options[category].push($option.val ()); }); }); /** * Prompt User & Remove any Existing Rules that are * incompatible with currently Entity type selected */ categories.

  • PAGE 204

    var type = $entity.attr ("id") + "-" + entity; if ($(rule).find ("div.option").hasClass(type)) { if (reconfigure [category] === undefined) reconfigure [category] = []; reconfigure [category].push(index); } }); }); }); if (Object.keys(incompatible).length > 0 && !confirm(MSG_INCOMPAT_RULES)) { $entity.val($entity.data("previous")); return; } categories.forEach(function (category) { var $rules = $("fieldset#" + category) .children("div#RULESET") .find("div.

  • PAGE 205

    var $selector = $("fieldset#" + category).find ("#rule-type"), selection = $selector.val(); $selector .children() .each(function (index, option) { var $option = $(option), name = $option.val(), invalid = ($.inArray(name, options [category]) < 0); if (invalid && selection === name) selection = null; $option .prop("disabled", invalid) .prop("hidden", invalid); }) .each(function (index, option) { var $option = $(option); if (selection === null && !$option.prop ("disabled")) { $selector.val($option.

  • PAGE 206

    if ($body.find("div:visible #compareType").val () === "name") fieldType = "FIELD"; else if ($body.find("div #fieldType").val() === "date") fieldType = "DATE"; $body .children("div") .not(".form-only") .children(":visible :input") .each(function (index, input) { var $input = $(input), id = $input.attr("id"), type = $input.attr("type"), value; if (id !== undefined && !$input.prop("disabled")) { if (id.match(/^value(s|\d*)\-/) !== null) { type = id.split("-")[1]; id = id.

  • PAGE 207

    } if (fieldType !== null && id.match(/^value\d*$/)) value = { "type": fieldType, "value": value }; rule[id] = value; } }); if (ruleType === "RULESET") rule.rules = processRules($body.children ("div.sub-rules")); rules.push($.extend(true, { [typeKey]: ruleType }, rule)); }); return rules; } $("form") /* Add Rule Handler */ .on("click", "input#add-rule", function (event) { var $parent = $(event.target).closest("fieldset"), $rule = loadRule($parent.attr("id"), $parent .find ("#rule-type") .val ()); $(event.

  • PAGE 208

    /* Remove Rule Handler */ .on("click", "input#remove-rule", function (event) { var $rule = $(event.target).closest(".rule"), remove = true; if ($rule.attr("id") === "RULESET" && $rule.find("div.sub-rules div.rule").length > 1) if (!confirm(MSG_MULTIPLE_RULES)) remove = false; if (remove) $rule.remove(); }) /* "Select Rule Options" Change Handler */ .on("change", "select.options-selector", function (event) { var $entity = $("#entity"), types = $entity .children("option") .toArray() .

  • PAGE 209

    if ($option.hasClass(clazz)) matched.push(clazz); }); if (matched.length) selected = ($.inArray($entity.attr ("id") + "-" + $entity.val(), matched) >= 0); $selectors.each(function (selectorIndex, selector) { var allClass = selector.id + "-"; if (!$option.hasClass(allClass) && !$option.hasClass(allClass + $(selector).val())) { selected = false; } }); $option .prop("hidden", !selected) .find("input, select") .prop("disabled", !selected); if (before && selected) unhidden.push($option .children("select.

  • PAGE 210

    "search": processRules(($("#search")))[0], }; /* Process & Add Sorting & Grouping Rules */ ["sort", "group"].forEach(function (type) { var rules = (processRules($("#" + type +"ing")))[0].rules; if (rules.length) search[type] = rules; }); $.ajax({ type: "PUT", url: "/rest/serverengine/entity/find", data: JSON.stringify(search), contentType: "application/json" }) .done(function (response) { c.displayStatus("Request Successful"); c.displayHeading("Input Parameters"); c.

  • PAGE 211

    Screenshot & Output Page 211

  • PAGE 212

    Page 212

  • PAGE 213

    Usage To run the example first select the Entity Type that you are searching for. The data entity types available are: l Data Sets l Data Records l Content Sets l Content Items l Job Sets l Jobs Once a data entity type is selected, various rules can be added to form the search criteria. There are three categories of rules available: search, sorting and grouping rules.

  • PAGE 214

    The types of search rules available are specific to the data entity type selected.

  • PAGE 215

    Data Value search rules can be configured by specifying the following options: l l l Name – Name of the data record field to search by Condition – Operator for the comparison of the data record field (e.g. Equals (=), Not Equals (<>), Less Than (<), Greater Than (>), etc.

  • PAGE 216

    l l Binding Style – The style of binding to match (e.g. Stapled, Glued, Stitched, Coil, etc.) Binding Edge – The edge (or side on which the binding occurs) to match (e.g. Left, Right, Top or Bottom) l Binding Type – The type or location of the binding to match (e.g. Saddle, Side or Corner) l Binding Angle – The binding angle to match (e.g.

  • PAGE 217

    Sorting Rules There are also two types of sorting rules that can be used as part of the overall search criteria: l Data Value – Sort the search results by the value of a data record field l Property Value – Sort the search results by the value of a data entity property The types of sorting rules available are also specific to the data entity type selected.

  • PAGE 218

    Grouping Rules There are also two types of grouping rules that can be used as part of the overall search criteria: l Data Value – Group the search results by the value of a data record field l Property Value – Group the search results by the value of a data entity property The types of grouping rules available are also specific to the data entity type selected.

  • PAGE 219

    Note By default, comparison conditions in search rules are evaluated alphanumerically, regardless of the type of value. Numeric evaluation of comparison conditions is not currently supported in the PlanetPress Connect REST API. The only exception to this rule is the ability to numerically sort or group results by specifying sorting or grouping rules of a Data Value type. Warning The Entity Type selected for the search criteria can be changed during or even after rules have been added.

  • PAGE 220

    Finding all the Data Sets in the Server Problem You want to obtain a list of all the previously created Data Sets contained in the PlanetPress Connect Server potentially for use in a Content Creation operation. Solution The solution is to create a request using the following URI and method type and submit it to the server via the Data Set Entity REST service: Get All Data Sets /rest/serverengine/entity/datasets GET Example HTML5 dse-get-all-datasets.

  • PAGE 221

    JavaScript/jQuery dse-get-all-datasets.js /* Data Set Entity Service - Get All Data Sets Example */ (function ($, c) { "use strict"; $(function () { c.setupExample(); $("form").on("submit", function (event) { event.preventDefault(); if (!c.checkSessionValid()) return; $.ajax({ type: "GET", url: "/rest/serverengine/entity/datasets" }) .done(function (response) { c.displayStatus("Request Successful"); c.displayHeading("Data Set IDs"); c.displaySubResult("Plain", c.

  • PAGE 222

    Screenshot & Output Usage To run the example simply select the Submit button to request a list of the all the data sets currently contained within the server. The resulting list will then be returned and displayed to the Results area in both Plain list and JSON Identifier List formats. Further Reading See the Data Set Entity Service page of the REST API Reference section for further detail.

  • PAGE 223

    Finding the Data Records in a Data Set Problem You want to obtain a list of all the previously created Data Records contained within a specific Data Set potentially for use in a Content Creation operation. Solution The solution is to create a request using the following URI and method type and submit it to the server via the Data Set Entity REST service: Get Data Records for Data Set /rest/serverengine/entity/datasets/{dataSetId} GET Example HTML5 dse-get-datarecords.

  • PAGE 224

    Actions
    JavaScript/jQuery dse-get-datarecords.js /* Data Set Entity Service - Get Data Records for Data Set Example */ (function ($, c) { "use strict"; $(function () { c.setupExample(); $("form").on("submit", function (event) { event.preventDefault(); if (!c.checkSessionValid()) return; var dataSetId = $("#dataset").val(); $.

  • PAGE 225

    c.displaySubResult("JSON Identifier List", c.jsonPrettyPrint(response)); }) .fail(c.displayDefaultFailure); }); }); }(jQuery, Common)); Screenshot & Output Usage To run the example simply enter the Data Set ID and select the Submit button to request a list of the all the data records contained within the specific data set in the server.

  • PAGE 226

    The resulting list will then be returned and displayed to the Results area in both Plain list and JSON Identifier List formats. Further Reading See the Data Set Entity Service page of the REST API Reference section for further detail.

  • PAGE 227

    Finding all the Content Sets in the Server Problem You want to obtain a list of all the previously created Content Sets contained in the PlanetPress Connect Server potentially for use in a Job Creation operation. Solution The solution is to create a request using the following URI and method type and submit it to the server via the Content Set Entity REST service: Get All Content Sets /rest/serverengine/entity/contentsets GET Example HTML5 cse-get-all-contentsets.

  • PAGE 228

    Actions
    JavaScript/jQuery cse-get-all-contentsets.js /* Content Set Entity Service - Get All Content Sets Example */ (function ($, c) { "use strict"; $(function () { c.setupExample(); $("form").on("submit", function (event) { event.preventDefault(); if (!c.checkSessionValid()) return; var type = $("#type").

  • PAGE 229

    (response)); c.displaySubResult("JSON Identifier List", c.jsonPrettyPrint(response)); }) .fail(c.displayDefaultFailure); }); }); }(jQuery, Common)); Screenshot & Output Usage To run the example simply select the Submit button to request a list of the all the content sets currently contained within the server. The resulting list will then be returned and displayed to the Results area in both Plain list and JSON Identifier List formats.

  • PAGE 230

    Further Reading See the Content Set Entity Service page of the REST API Reference section for further detail.

  • PAGE 231

    Finding the Content Items in a Content Set Problem You want to obtain a list of all the previously created Content Items contained within a specific Content Set potentially for use in a Job Creation operation. Solution The solution is to create a request using the following URI and method type and submit it to the server via the Content Set Entity REST service: Get Content Items for Content Set /rest/serverengine/entity/contentsets/ {contentSetId} GET Example HTML5 cse-get-contentitems.

  • PAGE 232

    Actions
    JavaScript/jQuery cse-get-contentitems.js /* Content Set Entity Service - Get Content Items for Content Set Example */ (function ($, c) { "use strict"; $(function () { c.setupExample(); $("form").on("submit", function (event) { event.preventDefault(); if (!c.checkSessionValid()) return; var contentSetId = $("#contentset").val(); $.

  • PAGE 233

    c.displaySubResult("JSON Content Item Identifier List", c.jsonPrettyPrint(response)); }) .fail(c.

  • PAGE 234

    Usage To run the example simply enter the Content Set ID and select the Submit button to request a list of the all the content items contained within the specific content set in the server. The resulting list will then be returned as a list of Content Item and Data Record ID pairs which will be displayed to the Results area in both Plain table and JSON Content Item Identifier List formats. Further Reading See the Content Set Entity Service page of the REST API Reference section for further detail.

  • PAGE 235

    Finding all the Job Sets in the Server Problem You want to obtain a list of all the previously created Job Sets contained in the PlanetPress Connect Server potentially for use in a Output Creation operation. Solution The solution is to create a request using the following URI and method type and submit it to the server via the Job Set Entity REST service: Get All Job Sets /rest/serverengine/entity/jobsets GET Example HTML5 jse-get-all-jobsets.

  • PAGE 236

    JavaScript/jQuery jse-get-all-jobsets.js /* Job Set Entity Service - Get All Job Sets Example */ (function ($, c) { "use strict"; $(function () { c.setupExample(); $("form").on("submit", function (event) { event.preventDefault(); if (!c.checkSessionValid()) return; $.ajax({ type: "GET", url: "/rest/serverengine/entity/jobsets" }) .done(function (response) { c.displayStatus("Request Successful"); c.displayHeading("Job Set IDs"); c.displaySubResult("Plain", c.

  • PAGE 237

    Screenshot & Output Usage To run the example simply select the Submit button to request a list of the all the job sets currently contained within the server. The resulting list will then be returned and displayed to the Results area in both Plain list and JSON Identifier List formats. Further Reading See the Job Set Entity Service page of the REST API Reference section for further detail.

  • PAGE 238

    Finding the Jobs in a Job Set Problem You want to obtain a list of all the previously created Jobs contained within a specific Job Set potentially for use in a Output Creation operation. Solution The solution is to create a request using the following URI and method type and submit it to the server via the Job Set Entity REST service: Get Jobs for Job Set /rest/serverengine/entity/jobsets/{jobSetId} GET Example HTML5 jse-get-jobs.

  • PAGE 239

    Actions
    JavaScript/jQuery jse-get-jobs.js /* Job Set Entity Service - Get Jobs for Job Set Example */ (function ($, c) { "use strict"; $(function () { c.setupExample(); $("form").on("submit", function (event) { event.preventDefault(); if (!c.checkSessionValid()) return; var jobSetId = $("#jobset").val(); $.

  • PAGE 240

    }) .fail(c.displayDefaultFailure); }); }); }(jQuery, Common)); Screenshot & Output Usage To run the example simply enter the Job Set ID and select the Submit button to request a list of the all the jobs contained within the specific job set in the server. The resulting list will then be returned and displayed to the Results area in both Plain list and JSON Identifier List formats. Further Reading See the Job Set Entity Service page of the REST API Reference section for further detail.

  • PAGE 241

    Working with the Workflow Services This section consists of a number of pages covering various useful working examples: 1. Running a Data Mapping Operation 2. Running a Data Mapping Operation (Using JSON) 3. Running a Data Mapping Operation for PDF/VT File (to Data Set) 4. Running a Data Mapping Operation for PDF/VT File (to Content Set) 5. Running a Content Creation Operation for Print By Data Set 6. Running a Content Creation Operation for Print By Data Record (Using JSON) 7.

  • PAGE 242

    See the Data Mapping Service, Content Creation Service, Content Creation (Email) Service, Content Creation (HTML) Service, Job Creation Service, Output Creation Service and All-InOne Service pages of the REST API Reference section for further detail. Note A complete listing including these examples can be found in the index.html file located at the root of the working example source code which contains links to all working examples.

  • PAGE 243

    Running a Data Mapping Operation Problem You want to run a data mapping operation to produce a Data Set using a data file and a data mapping configuration 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 data mapping operation. There is also the option of cancelling an operation during processing if required.

  • PAGE 244

    PAGE 245

    JavaScript/jQuery dm-process.js /* Data Mapping Service - Process Data Mapping 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/datamining/cancel/" + operationId }) .done(function (response) { c.

  • PAGE 246

    var configId = $("#datamapper").val(), dataFileId = $("#datafile").val(), validate = $("#validate").prop("checked"); var getFinalResult = function () { /* Get Result of Operation */ $.ajax({ type: "POST", url: "/rest/serverengine/workflow/datamining/getResult/" + operationId }) .done(function (response, status, request) { c.displayHeading("Operation Result"); if (validate) c.displaySubResult("JSON Data Mapping Validation Result", c.jsonPrettyPrint(response)); else c.

  • PAGE 247

    c.displayResult("Operation ID", operationId); var getProgress = function () { if (operationId !== null) { /* Get Progress of Operation */ $.ajax({ type: "GET", cache: false, url: "/rest/serverengine/workflow/datamining/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 248

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

  • PAGE 249

    l Validate Only – Only validate the Data Mapping operation to check for mapping errors (no Data Set is created). Lastly, 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 250

    Running a Data Mapping Operation (Using JSON) Problem You want to run a data mapping operation to produce a Data Set using a data file and a data mapping configuration 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 data mapping operation. There is also the option of cancelling an operation during processing if required.

  • PAGE 251

    PAGE 252

    JavaScript/jQuery dm-process-json.js /* Data Mapping Service - Process Data Mapping (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/datamining/cancel/" + operationId }) .done(function (response) { c.

  • PAGE 253

    var configId = $("#datamapper").val(), dataFileId = $("#datafile").val(), validate = $("#validate").prop("checked"); var getFinalResult = function () { /* Get Result of Operation */ $.ajax({ type: "POST", url: "/rest/serverengine/workflow/datamining/getResult/" + operationId }) .done(function (response, status, request) { c.displayHeading("Operation Result"); if (validate) { c.displaySubResult("JSON Data Mapping Validation Result", c.jsonPrettyPrint(response)); } else { c.

  • PAGE 254

    $cancelButton.prop("disabled", false); c.displayStatus("Data Mapping 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/datamining/getProgress/" + operationId }) .done(function (response, status, request) { if (response !== "done") { if (response !== progress) { progress = response; $progressBar.

  • PAGE 255

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

  • PAGE 256

    Usage To run the example simply enter the Managed File ID or Name for your data file and your data mapping configuration (previously uploaded to the file store) into the appropriate text fields, and then check any options that you may require: l Validate Only – Only validate the Data Mapping operation to check for mapping errors (no Data Set is created). Lastly, select the Submit button to start the data mapping operation.

  • PAGE 257

    Running a Data Mapping Operation for PDF/VT File (to Data Set) Problem You want to run a data mapping operation to produce a Data 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 258

    PAGE 259

    $(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 260

    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 261

    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 262

    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 263

    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 264

    PAGE 265

    $(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 266

    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 267

    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 268

    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 269

    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 270

    3.4.1.min.js"> PAGE 271

    /* 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 272

    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 273

    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 274

    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 275

    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 276

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

    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 278

    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 279

    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 280

    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 281

    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 282

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

    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 284

    $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 285

    ("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 286

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

  • PAGE 287

    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 288

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

    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 290

    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 291

    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 529 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 292

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

    Inputs
  • PAGE 293

    /* 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 294

    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 295

    Further Reading See the "Content Creation Service" on page 529 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 296

    Inputs

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

  • PAGE 297

    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 298

    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 299

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

    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 302

    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 303

    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 304

    Screenshot & Output Page 304

  • PAGE 305

    Page 305

  • PAGE 306

    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 Parameters 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 307

    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 308

    Example PAGE 309

  • PAGE 310

    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 311

    "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 312

    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 313

    Screenshot & Output Page 313

  • PAGE 314

    Page 314

  • PAGE 315

    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 316

    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 317

    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 318

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

    PAGE 320

    Progress & Actions
    JavaScr

  • PAGE 321

    $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 322

    .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 323

    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 324

    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 325

    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 326

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

  • PAGE 327

    Screenshot & Output Page 327

  • PAGE 328

    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 329

    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 330

    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 331

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

    PAGE 333

    Progress & Actions
  • PAGE 334

    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 335

    .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 336

    }); }) .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 337

    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 338

    ("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 339

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

  • PAGE 340

    Screenshot & Output Page 340

  • PAGE 341

    Page 341

  • PAGE 342

    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 343

    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 344

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

  • PAGE 345

    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 346

    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 359

    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 360

    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 361

    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 362

    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 363

    3.4.1.min.js">

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

    Inputs
    PAGE 364

    /* 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 365

    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 366

    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 367

    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 368

    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 369

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

    Progress & Actions
    PAGE 371

    PAGE 372

    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 373

    $.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 374

    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 375

    }; 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 376

    Next, specify one or more Runtime Parameters.

  • PAGE 377

    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 378

    Process Output Creation (By Job Set) Example PAGE 379

    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 380

    }); $("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 381

    }) .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 382

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

  • PAGE 383

    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 384

    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 385

    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 386

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

    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 388

    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 389

    } }) .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 390

    { 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 391

    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 392

    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 393

    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 394

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

    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 396

    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 397

    /* 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 398

    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 399

    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 400

    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 401

    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 402

    3.4.1.min.js"> PAGE 403

    Content Creation
    PAGE 404

  • Output Creation
    PAGE 405

    disabled>

    Progress & Actions

  • PAGE 406

    PAGE 407

    $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 408

    }, 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 409

    */ 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 410

    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 411

    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 412

    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 413

    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 414

    $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 415

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

  • PAGE 416

    Screenshot & Output Page 416

  • PAGE 417

    Page 417

  • PAGE 418

    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 419

    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 420

    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 421

    Inputs
  • PAGE 422

    Text:

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

  • PAGE 423

    .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 424

    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 425

    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 426

    } 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 427

    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 428

    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 429

    REST API Reference The PlanetPress 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 PlanetPress Connect REST API: Service Name Internal Name Description Authentication Service AuthenticationRestService This service exposes methods concerned with server security and authentication with the PlanetPress Connect REST API.

  • PAGE 430

    Service Name Internal Name Description set, data records or JSON as input 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 431

    Service Name Internal Name Description IDs within the server l l l l Getting the content item IDs contained within a content set Getting the page details for a content set Getting and updating of content set properties Deletion of content sets from the server Conversion Service ConversionRestService This service exposes methods specific to file conversions.

  • PAGE 432

    Service Name Internal Name Description internal to the server. It includes methods to facilitate the following functions: 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 433

    Service Name Internal Name Description mapping operation Document Entity Service DocumentEntityRestService This service exposes methods specific to the access and management of document entities internal to the server.

  • PAGE 434

    Service Name Internal Name Description l l l Entity Service EntityRestService Creation, monitoring and cancellation of content creation operations for email using data records or JSON as input 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 435

    Service Name Internal Name Description store l l l l Content Creation (HTML) Service HTMLMergeRestService Uploading of templates to the File Store 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 436

    Service Name Internal Name Description It includes methods to facilitate the following functions: l l l Job Entity Service JobEntityRestService Creation, monitoring and cancellation of job creation operations using either content sets or content items as input 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 437

    Service Name Internal Name Description It includes methods to facilitate the following functions: 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 438

    Service Name Internal Name Description l l l l All-In-One Service PrintRestService Creation, monitoring and cancellation of output creation operations using either a job set or jobs as input 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 439

    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-InOne (JSON) /rest/serverengine/workflow/print/submit POST Process All-InOne (Adhoc Data) /rest/serverengine/workflow/print/{dmConfigId}/ {templateId}/{jcConfigId}/{ocConfigId} POST Get All Operations /rest/serverengine/workflow/print/getOperations GET

  • PAGE 440

    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 441

    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 442

    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 443

    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 444

    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 445

    Status Code Content ContentType Add. Headers Description authorization token specified in the request headers are invalid. Get Managed Result of Operation Retrieves the Managed File ID of the final result of a completed Output Creation operation of a specific operation ID. Request takes no content, and on success returns the Managed File ID of the output (file or directory) in the File Store.

  • PAGE 446

    Name Required Type Default Value Description operationId – – – Operation ID of All-In-One operation Response Success The following lists status codes indicative of a successful response: Status Code Content ContentType Add.

  • PAGE 447

    Status Code Content Content-Type 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 448

    Status Code Content Content-Type Add.

  • PAGE 449

    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 450

    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 451

    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 452

    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 453

    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 454

    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 455

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

  • PAGE 456

    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 457

    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 458

    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 459

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

  • PAGE 460

    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 461

    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 462

    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 463

    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 464

    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 465

    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 466

    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 467

    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 468

    Status Code Content ContentType Add.

  • PAGE 469

    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 470

    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 471

    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 472

    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 473

    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 473

  • PAGE 474

    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 475

    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 476

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

  • PAGE 477

    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 478

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

  • PAGE 479

    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 480

    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 481

    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 482

    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 483

    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 484

    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 485

    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 486

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

  • PAGE 487

    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 488

    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 489

    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 490

    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 491

    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 492

    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 493

    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 494

    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 495

    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 496

    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 497

    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 498

    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 499

    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 500

    Status Code Content ContentType Add.

  • PAGE 501

    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 502

    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 503

    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 504

    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 505

    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 506

    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 507

    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 508

    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 509

    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 510

    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 511

    Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers 400 Bad Request 401 Unauthorized 401 Unauthorized Description Web context not found / Web section not found – Error message – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed.

  • PAGE 512

    Status Code Content ContentType Add. Headers Description Response when either the basic authentication credentials or the 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 513

    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 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 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 515

    Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers 400 Bad Request 401 Unauthorized 401 Unauthorized Description Web context not found / Web section not found – Error message – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed.

  • PAGE 516

    Status Code Content ContentType Add. Headers Description Response when either the basic authentication credentials or the 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 517

    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 518

    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 519

    Status Code 401 Unauthorized Content Error message ContentType – Add. Headers Description 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 520

    Status Code Content ContentType Add.

  • PAGE 521

    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 522

    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 523

    Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add. Headers 400 Bad Request 401 Unauthorized 401 Unauthorized Description Web context not found / Web section not found – Error message – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required. – Server authentication has failed.

  • PAGE 524

    Status Code Content ContentType Add. Headers Description Response when either the basic authentication credentials or the 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 525

    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 526

    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 527

    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 528

    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 529

    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 533 /rest/serverengine/workflow/contentcreation/{templateId}/ {dataSetId} POST Process Content Creation (By Data Record) (JSON) /rest/serverengine/workflow/contentcreation/{templateId} POST Proces

  • PAGE 530

    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) /rest/serverengine/workflow/contentcreation/imagepreview POST "Create Preview Image (By Data) (JSON)" on page 555 /rest/serverengine/workflow/contentcreation/imagepreview/ {templateId} POST Get All Operations /rest/serverengine/workflow/contentcreation/getOperations GET Get Progress

  • PAGE 531

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

  • PAGE 532

    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 533

    Process Content Creation (By Data Set) Submits a request to initiate a new Content Creation operation. Request takes a JSON Parameters object, 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 534

    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 535

    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 536

    Process Content Creation (By Data Record) (JSON) Submits a request to initiate a new Content Creation operation. Request takes a JSON Identifier List (with Runtime 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 537

    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 538

    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 539

    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 540

    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 541

    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 542

    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 543

    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 544

    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 545

    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 546

    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 547

    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 548

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

  • PAGE 549

    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 550

    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 551

    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 552

    creation Content Type: application/json Add.

  • PAGE 553

    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 554

    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 555

    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 556

    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 557

    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 558

    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 559

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

  • PAGE 560

    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 561

    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 562

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

  • PAGE 563

    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 564

    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 565

    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 566

    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 567

    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 568

    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 569

    Request Method Type: POST URI: /rest/serverengine/workflow/outputcreation/getManagedResult/ {operationId} Content: – Content Type: – Add.

  • PAGE 570

    Status Code Content ContentType Add. Headers Description 200 OK Managed File ID of the output (file or directory) in the File Store 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. Headers Description 401 Unauthorized – – WWWAuthenticate – BASIC (Basic Authentication credentials are accepted) Server authentication is required.

  • PAGE 571

    Status Code Content Content-Type 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 572

    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 573

    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 574

    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 575

    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 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

    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 578

    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 579

    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 580

    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 581

    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 582

    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 583

    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 584

    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 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

    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 587

    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 588

    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 589

    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 590

    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 591

    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 592

    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 593

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

  • PAGE 594

    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 595

    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 596

    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 597

    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 598

    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 599

    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 600

    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 601

    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 602

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

  • PAGE 603

    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 604

    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 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

    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 607

    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 608

    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 609

    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 610

    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 611

    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 612

    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 613

    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 614

    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 615

    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 616

    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 617

    Rasterize File Converts a PDF, PS, AFP or PCL file into a bitmap. The conversion can be done for a single page or for multiple pages. Request takes JSON Bitmap Parameters as content, and on success returns the converted page as a PNG or JPEG file, or returns a ZIP file with the converted images (PNG/JPEG) if rasterization is requested for more than one page.

  • PAGE 618

    Response Success The following lists status codes indicative of a successful response: Status Code Content Content-Type 200 OK A stream with a JPEG/PNG image or a ZIP file with JPEG/PNG images application/zip, image/jpeg, or image/png Add. Headers Description Bitmap creation successful 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 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 620

    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 Create Content Set /rest/serverengine/workflow/datamining/createcontentset/ {dataFileID} POST Process Data Mapping /rest/serverengine/workflow/datamining/{configId}/ {dataFileId} POST Process Data Mapping (JSON) /rest/serverengine/workflow/datamining/{confi

  • PAGE 621

    Method Name Uniform Resource Identifier (URI) Method Type Operation {operationId} Cancel an Operation /rest/serverengine/workflow/datamining/cancel/ {operationId} POST Service Version /rest/serverengine/workflow/datamining/version GET Page 621

  • PAGE 622

    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 623

    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 624

    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 625

    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 65 Content Type: application/json Add.

  • PAGE 626

    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 627

    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 628

    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 629

    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 630

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

  • PAGE 631

    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 632

    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 633

    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 634

    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 635

    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 636

    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 637

    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 638

    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 639

    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 640

    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 641

    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 642

    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 643

    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 644

    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 645

    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 646

    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 647

    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 648

    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 649

    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 650

    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 651

    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 652

    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 653

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

  • PAGE 654

    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 655

    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 656

    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 657

    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 658

    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 659

    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 660

    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 661

    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 662

    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 663

    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 664

    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 665

    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 666

    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 667

    Status Code Content ContentType Add.

  • PAGE 668

    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 669

    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 670

    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 671

    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 672

    Status Code Content Content-Type Add.

  • PAGE 673

    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 674

    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 675

    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 676

    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 677

    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 678

    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 679

    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 680

    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 681

    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 682

    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 683

    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 684

    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 685

    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 686

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

  • PAGE 687

    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 688

    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 689

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

  • PAGE 690

    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 691

    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 692

    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 693

    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 694

    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 695

    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 696

    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 697

    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 698

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

  • PAGE 699

    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 700

    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 701

    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 702

    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 703

    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 704

    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 705

    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 706

    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 707

    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 708

    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 709

    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 710

    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 711

    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 712

    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 713

    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 714

    Service Handshake Queries the availability of the Document Entity service. Request Method Type: GET URI: /rest/serverengine/entity/documents 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 Entity service. Request Method Type: GET URI: /rest/serverengine/entity/documents/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 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 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 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 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

    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 722

    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 723

    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 724

    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 725

    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 726

    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 727

    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 728

    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 729

    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 730

    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 731

    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 732

    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 733

    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 734

    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 735

    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 735

  • PAGE 736

    Find Data Entity Submits data entity search criteria to the PlanetPress 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 737

    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 738

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

  • PAGE 739

    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 740

    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 741

    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 742

    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 743

    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 Download Managed File or Directory /rest/serverengine/filestore/file/{fileId} GET "Download Contents of Managed Directory" on page 748 /rest/serverengine/filestore/file/{fileId}/{relPath: .

  • PAGE 744

    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 745

    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 746

    Download Managed File or Directory Obtains 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 file or directory data (as zipped file). Request Method Type: GET URI: /rest/serverengine/filestore/file/{fileId} Content: – Content Type: – Add.

  • PAGE 747

    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 748

    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 749

    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 750

    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 751

    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 752

    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 753

    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 754

    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 755

    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. 404 Not Found – – – File or directory not found in File Store Get Report Returns a report in JSON or XML of a template in the File Store.

  • PAGE 756

    Content: – Content Type: – Add. Headers: l Accept (optional) – a comma-separated list of acceptable content types, or */* if the client accepts all content types. Quality values in a weighted list will be ignored.

  • PAGE 757

    Response Success The following lists status codes indicative of a successful response: Status Code Content Content-Type 200 OK A JSON or XML structure holding information about a Connect template. The produced JSON is untyped; a value is either a string or an array. application/json if the client accepts it; otherwise application/xml Add. Headers Description Report returned. Error The following lists status codes indicative of a failed or error response: Status Code Content ContentType Add.

  • PAGE 758

    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 759

    List Resources Returns a list of one or more types of resources in the File Store: data files, templates, data mapping configurations, job creation presets and output creation presets, depending on the Type query parameter. If no Type value is passed, all OL Connect resources, but no generic or data files are listed.

  • PAGE 760

    Name Required Type Default Value Description omitted the endpoint will return: (comma-separated) of the files to list. Possible values: l l l l Templates l Data mapping configurations Job Creation Presets l Output Creation Presets l l l l GENERIC: Generic resources, e.g.

  • PAGE 761

    Status Code Content Content-Type Add. Headers Description information on Connect resources: l id (integer) l name (string) l path (string) l type (string) l size (integer) 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 762

    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. 404 Not Found – – – No resources of the specified type found in File Store.

  • PAGE 763

    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 764

    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 765

    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 766

    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 767

    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. Headers 400 Bad Request 401 Unauthorized 401 Unauthorized Description Request contains no data for upload to File Store.

  • PAGE 768

    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 769

    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 770

    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. Headers 400 Bad Request 401 Unauthorized 401 Unauthorized Description Request contains no data for upload to File Store.

  • PAGE 771

    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 772

    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 773

    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. Headers 400 Bad Request 401 Unauthorized 401 Unauthorized Description Request contains no data for upload to File Store.

  • PAGE 774

    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 775

    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 776

    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. Headers 400 Bad Request 401 Unauthorized 401 Unauthorized Description Request contains no data for upload to File Store.

  • PAGE 777

    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 778

    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 779

    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 780

    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 797 /rest/serverengine/workflow/jobcreation/{configId} POST "Process Job Creation (By Content Set) (Runtime Parameters) (JSON

  • PAGE 781

    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 781

  • PAGE 782

    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 783

    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 784

    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 785

    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 786

    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 787

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

  • PAGE 788

    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 789

    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 790

    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 791

    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 792

    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 793

    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 794

    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 795

    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 796

    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 797

    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 798

    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 799

    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 800

    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 801

    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 802

    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 803

    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 804

    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 805

    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 806

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

  • PAGE 807

    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 808

    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 809

    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 810

    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 811

    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 812

    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 813

    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 814

    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 815

    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 816

    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 817

    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 818

    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 819

    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 820

    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 821

    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 822

    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 823

    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 824

    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 825

    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 826

    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 827

    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 828

    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 829

    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 830

    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 831

    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 832

    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 833

    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 834

    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 835

    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 836

    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 837

    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 838

    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 839

    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 840

    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 841

    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 842

    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 843

    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 844

    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 845

    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 846

    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 847

    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 848

    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 849

    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 850

    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 851

    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 852

    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 853

    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 854

    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 855

    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 856

    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 857

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

  • PAGE 858

    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 859

    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 860

    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 861

    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 862

    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 863

    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 864

    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 865

    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 866

    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 867

    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 868

    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 869

    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 870

    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 871

    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 872

    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 873

    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 874

    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 875

    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 879 /rest/serverengine/workflow/outputcreation/{configId}/ {jobSetId} POST "Process Output Creation (By Job Set) (JSON)" on page 882 /rest/serverengine/workflow/outputcreation/{configId} POST Process O

  • PAGE 876

    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 876

  • PAGE 877

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

  • PAGE 878

    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 879

    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 880

    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 881

    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 882

    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 883

    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 884

    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 885

    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 886

    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 887

    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 888

    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 889

    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 PlanetPress 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 890

    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 891

    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 892

    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 893

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

  • PAGE 894

    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 895

    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 896

    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 897

    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 898

    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 899

    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 900

    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 901

    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 902

    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 903

    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 904

    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 905

    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 906

    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 907

    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 908

    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 909

    Legal Notices and Acknowledgements PlanetPress 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 910