Skip to main content
POST
Generate project document

Authorizations

X-API-Key
string
header
required

Per-manufacturer API key in the X-API-Key header, format emidat-{key_id}-{secret} where key_id is a random public handle. Issued by an owner in the Emidat dashboard; carries its own permission scopes, optional plant restrictions, and optional expiry. A revoked, expired, or unknown key returns 401. See the Authentication guide for details.

Path Parameters

id
string<uuid>
required

UUID of the project.

Body

application/json
format
enum<string>
required

pdf is the project overview; xlsx has the same figures as a spreadsheet.

Available options:
pdf,
xlsx

Response

Report queued.

State of the latest report requested in one format with POST /v2/projects/{id}/documents/generate.

status
enum<string>
required

idle — no report has been requested since the last one expired. queued/processing — a report is being generated; the file is withheld until it finishes. completed — the last report succeeded. failed — it did not; see err_code.

Available options:
idle,
queued,
processing,
completed,
failed
Example:

"queued"

err_code
string | null
required

Why the last report failed (err_project_document_failed), or null.

Example:

null