Create File

Create File

Creates a file on the server that can later be used to generate and download a PDF document.

This endpoint is typically used together with **Download** for asynchronous document generation.

  • HTTP Method: POST
  • Endpoint: https://eledo.online/api/RESTv1/CreateFile

Request body

NameTypeRequiredDescription
templateIdStringYesTemplate identifier
templateVersionIntegerNoTemplate version
fileObjectYes*Input data to be stored
temporaryBooleanNoDeletes file after first download

Minimal example

{
    "templateId": "...",
    "file": null
}

Response

Body

NameTypeDescription
urlStringDownload URL for the file
errorsArrayList of errors

How it works

  1. Create a file using this endpoint
  2. Receive a download URL
  3. Use the Download endpoint to retrieve the generated PDF

When to use Create File

Use this endpoint when:

  • you need asynchronous document generation
  • you want to store input data before generating a PDF
  • you plan to download the result later

Next steps


Was this article helpful?

Yes

No