---
title: "Generate amendment PDF"
method: POST
path: "/leases/{lease_id}/amendments/{amendment_id}/generate-pdf"
tags: ["Leases"]
---

# Generate amendment PDF

`POST /leases/{lease_id}/amendments/{amendment_id}/generate-pdf`

## Request

- Base URL: `https://api.faireplace.com/api`
- URL: `https://api.faireplace.com/api/leases/{lease_id}/amendments/{amendment_id}/generate-pdf`
- Auth: HTTP bearer

Generate a legal PDF document for the amendment using Typst templates.
The template is automatically selected based on the amendment type:
- `RENT_MODIFICATION`: Rent revision template (Art. 17-1)
- `DURATION_MODIFICATION`: Duration modification template
- `TENANT_MODIFICATION`: Tenant modification template (3 signature zones)
- Other types: Generic amendment template

Returns the PDF binary content with `Content-Type: application/pdf`.

## Path parameters

- `lease_id` string, uuid, required
- `amendment_id` string, uuid, required

## Response `200`

PDF generated successfully

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/faireplace/apis/faireplace-property-management-api.md) · [All operations](https://skmtc.dev/faireplace/apis/faireplace-property-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/faireplace/apis/faireplace-property-management-api/revisions/69de39762919?raw)
