---
title: "Update Activity"
method: PATCH
path: "/teacher/in-class/activities/{activity_id}"
tags: ["in-class"]
---

# Update Activity

`PATCH /teacher/in-class/activities/{activity_id}`

## 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/in-class/activities/{activity_id}`
- Auth: OAuth 2 (password, token URL `api/login`)

## Path parameters

- `activity_id` string, required

## Request body

- ActivityUpdate
  - `title` string, nullable
  - `questions` ActivityQuestionSchema[], nullable
    - `id` string, nullable
    - `prompt` string, required
    - `choices` object, required
    - `correct` 'A' | 'B' | 'C' | 'D', required
    - `error_labels` object
    - `savoir_faire_ids` string[]
    - `source` QuestionSourceSchema
      - `kind` 'public_exercise' | 'calcul_template' | 'annales_exercise' | 'document' | 'manual'
      - `ref_id` string, nullable

## Response `200`

Successful Response

- ActivityResponse
  - `id` string, required
  - `title` string, required
  - `folder_id` string, nullable
  - `questions` ActivityQuestionSchema[], required
    - `id` string, nullable
    - `prompt` string, required
    - `choices` object, required
    - `correct` 'A' | 'B' | 'C' | 'D', required
    - `error_labels` object
    - `savoir_faire_ids` string[]
    - `source` QuestionSourceSchema
      - `kind` 'public_exercise' | 'calcul_template' | 'annales_exercise' | 'document' | 'manual'
      - `ref_id` string, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Malformed identifier
- `403`: Not authorized for this resource
- `404`: Resource not found
- `409`: Business rule violated
- `422`: Validation Error

## Changes

> 55 revisions in range; 1 not diffed.

- **2026-10-15** `7925dd21e4d0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/excellence-ai/apis/excellence-learning/changes/teacher/in-class/activities/:activity_id/patch.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)
