CreatePdfTemplate
Creates a new PDF template.
Parameters:
| Parameter | Type | Description |
|---|---|---|
input | PdfTemplateInput! | Template data. |
mutation CreatePdfTemplate($input: PdfTemplateInput!) {
CreatePdfTemplate(input: $input) {
id
label
document_type
active
default
}
}UpdatePdfTemplate
Updates an existing PDF template.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | ID! | Template ID. |
input | PdfTemplateInput! | Updated fields. |
DeletePdfTemplate
Deletes a PDF template.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | ID! | Template ID. |
DisablePdfTemplate
Disables a PDF template.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | ID! | Template ID. |
EnablePdfTemplate
Enables a disabled PDF template.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | ID! | Template ID. |
GeneratePdfTemplatePreview
Generates a preview rendering of a PDF template for a given document type.
Parameters:
PdfTemplateInput
| Field | Type | Description |
|---|---|---|
id | ID | ID for updates. |
label | String | Template name. |
document_type | PdfTemplateType | Target document type. |
pdf_settings | JSON | PDF configuration settings. |
default | Boolean | Whether this is the default template. |
