---
title: "Set Generation"
method: PUT
path: "/v2/invoice-pdf-templates/generation"
tags: ["invoice-pdf-templates"]
---

# Set Generation

`PUT /v2/invoice-pdf-templates/generation`

## Request

- Base URL: `https://api.stuut.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stuut.ai/v2/invoice-pdf-templates/generation`
- Auth: HTTP bearer

Turn Invoice PDF Generation On or Off

The organization's explicit opt-in, off until someone with settings access turns it on, and read back as
`is_invoice_pdf_generation_enabled` on the organization. Stored in LaunchDarkly, so a read straight after this can briefly return the old
value; use this response instead. Requires admin access.

## Request body

- InvoicePdfGenerationSwitch: The organization's own on/off for generated invoice PDFs.
  - `is_enabled` boolean, required

## Response `200`

Successful Response

- InvoicePdfGenerationSwitch: The organization's own on/off for generated invoice PDFs.
  - `is_enabled` boolean, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/stuut/apis/stuut-api.md) - [All operations](https://skmtc.dev/stuut/apis/stuut-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stuut/apis/stuut-api/revisions/ff0ad16a55ff?raw)
