---
title: "Update course preferences | Aggiorna preferenze del corso"
method: PATCH
path: "/courses/{courseId}/preferences"
tags: ["Courses"]
---

# Update course preferences | Aggiorna preferenze del corso

`PATCH /courses/{courseId}/preferences`

## Request

- Base URL: `https://app.didattica.polito.it/api`
- URL: `https://app.didattica.polito.it/api/courses/{courseId}/preferences`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/polito/apis/polito-faculty-api/docs/courses/:courseId/preferences/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `courseId` integer, required

## Request body

- CoursePreferencesRequest
  - `notifications` object
    - `notices` boolean
    - `files` boolean
    - `lectures` boolean
  - `style` Symbol
    - `label` string
    - `color` union
      - string
      - ThemeColors
        - `light` string, required: Color used in light mode.
        - `dark` string, required: Color used in dark mode.
    - `icon` string

## Response `204`

There is no content to send for this request, but the headers may be useful.

## Other responses

- `400`: The server could not understand the request due to invalid syntax.
- `500`: Server error

## Changes

- **2026-10-25** `c29c33e75373`: 1 info
  - added the new optional request property `style`

[Operation history](https://skmtc.dev/polito/apis/polito-faculty-api/changes/courses/:courseId/preferences/patch.md)

---

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