Generate completed documents

Fills a template for the selected entities. Small jobs download immediately as a PDF or ZIP; jobs exceeding the server page threshold are queued and return a JSON status envelope instead.

Authentication

AuthorizationBearer

The signed-in SchoolSet user token sent by the frontend.

Request

This endpoint expects an object.
document_idintegerRequired
entity_idslist of integersOptional
entity_typeenumOptional
output_typeenumOptionalDefaults to auto
Allowed values:
academic_year_idintegerOptional

Response

Either an immediate generated file or a queued generation result.

Errors

404
Not Found Error
422
Unprocessable Entity Error