---
title: "Update Lesson Settings"
method: PATCH
path: "/datamates/{datamate_id}/lessons/settings"
tags: ["LEARNED_LESSONS"]
---

# Update Lesson Settings

`PATCH /datamates/{datamate_id}/lessons/settings`

## Request

- Base URL: `https://api.myaltimate.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myaltimate.com/datamates/{datamate_id}/lessons/settings`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Owner: serve this workspace's lessons to every bound repo, or only to
each lesson's own. Its own endpoint because the workspace update takes the
whole workspace object from the frontend.

## Path parameters

- `datamate_id` integer, required

## Request body

- UpdateLessonSettingsRequest
  - `share_lessons_across_repos` boolean, required
  - `expected_revision` integer, required

## Response `200`

Successful Response

- LessonSettingsResponse
  - `share_lessons_across_repos` boolean, required
  - `revision` integer, required
  - `is_owner` boolean, required
  - `pending_count` integer, required

## Other responses

- `403`: Not the workspace's owner
- `404`: Workspace or lesson not found
- `409`: Changed since read, or refused
- `422`: Validation Error

## Changes

- **2026-10-14** `1b2d675195d7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/myaltimate/apis/myaltimate-api/changes/datamates/:datamate_id/lessons/settings/patch.md)

---

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