---
title: "Create Activity"
method: POST
path: "/teacher/in-class/activities"
tags: ["in-class"]
---

# Create Activity

`POST /teacher/in-class/activities`

## 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`
- Auth: OAuth 2 (password, token URL `api/login`)

## Request body

- ActivityCreate
  - `title` string
  - `folder_id` string, nullable
  - `questions` ActivityQuestionSchema[]
    - `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 `201`

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

- `403`: Not authorized for this resource
- `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/post.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)
