---
title: "Update Teacher Pdf Preferences Route"
method: PUT
path: "/teacher-exams/{exam_id}/latex/teacher-preferences"
tags: ["Teacher Exams LaTeX"]
---

# Update Teacher Pdf Preferences Route

`PUT /teacher-exams/{exam_id}/latex/teacher-preferences`

## Request

- Base URL: `https://api.excellence-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.excellence-ai.com/teacher-exams/{exam_id}/latex/teacher-preferences`
- Auth: OAuth 2 (password, token URL `api/login`)

Update teacher's default PDF formatting preferences.

## Request body

- TeacherPDFPreferencesUpdate
  - `default_teacher_name` string, nullable
  - `default_school_logo_url` string, nullable
  - `default_class_name` string, nullable
  - `default_duration` string, nullable
  - `default_general_instructions` string, nullable
  - `default_template` string, nullable
  - `default_font_family` string, nullable
  - `default_font_size` number, nullable
  - `default_line_spacing` number, nullable
  - `default_include_header` boolean, nullable
  - `default_number_exercises` boolean, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

> 55 revisions in range; 1 not diffed.

- **2026-10-21** `1d6009058248`: 1 info
  - api operation id `update_teacher_pdf_preferences_teacher_exams__exam_id__latex_teacher_preferences_put` removed and replaced with `update_teacher_pdf_preferences_route_teacher_exams__exam_id__latex_teacher_preferences_put`
- **2026-09-20** `294412cdd7e2`: 1 info
  - added the new optional request property `default_number_exercises`

[Operation history](https://skmtc.dev/excellence-ai/apis/excellence-learning/changes/teacher-exams/:exam_id/latex/teacher-preferences/put.md)

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) - [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) - [OpenAPI document](https://skmtc.dev/excellence-ai/apis/excellence-learning/revisions/379e4a57dee8?raw)
