input

The input array can contain a number of different file objects that are used for different purposes. If you create the Json manually, then the first attribute in a file object must be "type" and must have one of these values:

  • generate

    Generates a new document.

  • pid

    Retrieves a document from Document Management for a given pid.

  • xquery

    Retrieves the first document that is found from the given xquery.

  • list

    Retrieves a list of documents that are found from the given xquery.

  • template

    Retrieves a document from Document Management given a document type and a template name.

    Note: Template is a Document Management feature on how to specify a specific document and is not related to a Word layout.

  • assemble

    Merge documents into one document.

  • data

    A raw document that is sent from the client, base64-encoded.

  • priority

    A list of file objects that is iterated until one document is found.

Each file type is described in detail below.