academyFIVE API icon

academyFIVE API

Interact with academyFIVE API

Actions549

Documents → Generate and download a subject version document PDF

AI-generated

Summary

Generate a PDF document for a specific subject version by providing required data including type, document ID, and attributes; then download the generated PDF as a binary output.

Inputs

  • data (required) — Object containing document data with required fields: type (string), id (string), attributes which include subjectVersionId (number) and optional customProperties (JSON).
  • data.type (required) — String specifying the document type.
  • data.id (required) — String specifying the document identifier.
  • data.attributes.subjectVersionId (required) — Number identifying the subject version to generate the document for.
  • data.attributes.customProperties — Optional JSON object for custom properties; default values are used if omitted.

Output shape

binary file in workflow output

The operation produces a PDF file as a binary response with metadata including file name, MIME type, HTTP headers, and status code. This binary data can be used directly in workflows for further processing or storage.

Links

Discussion