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.

Type: POST
URI: /rest/serverengine/workflow/contentcreation/pdfpreview/{templateId}
Parameters:

Path:

  • templateId – the Managed File ID (or Name) of the design template in File Store
Request:
Add. Headers: auth_token – Authorization Token (if server security settings enabled)
Content: JSON Record Data List specifying a list of data values for the Data Record
Content Type: application/json
Response:
Add. Headers:
Content: Managed File ID
Content Type: text/plain
Status:
  • 200 OK – Creation of preview PDF in File Store successful
  • 401 Unauthorized – Server authentication required
  • 403 Forbidden – Server authentication has failed or expired
  • 404 Not Found – Design template not found in File Store