1.5

Running a Content Creation Operation for Print By Data
Record (Using JSON)
Problem
You want to run a content creation operation to generate a Content Set using a design 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. These
requests can be submitted via the Content Creation REST service:
Process Content
Creation (By Data
Record) (JSON)
/rest/serverengine/workflow/contentcreation/{templateId}
POST
Get Progress of
Operation
/rest/serverengine/workflow/contentcreation/getProgress/
{operationId}
GET
Get Result of
Operation
/rest/serverengine/workflow/contentcreation/getResult/
{operationId}
POST
Cancel an Operation
/rest/serverengine/workflow/contentcreation/cancel/
{operationId}
POST
Example
HTML5
cc-process-by-dre-json.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Process Content Creation (By Data Record) (JSON)
Example</title>
Page 135