---
title: "Add activity to a lesson"
method: POST
path: "/LessonActivity/Add"
tags: ["LessonActivity"]
---

# Add activity to a lesson

`POST /LessonActivity/Add`

## Headers

- `X-Version` string

## Request body

- AddRequest
  - `lessonId` integer, required — lesson identifier
  - `activityTypeId` integer, required — activity type represented by identifier
  - `orderIndex` integer, required — order number of activity within the lesson
  - `maxScore` integer, nullable — max score value of activity: default 0
  - `lessonActivityId` integer, nullable — Non-unique lesson specific activity identifier

## Response `200`

Success

- AddResponse
  - `activityId` integer — activity identifier

## Other responses

- `201` — Created
- `400` — if param invalid
- `401` — if unauthorized

---

[API](https://skmtc.dev/eon-xr/apis/eonxr-api.md) · [All operations](https://skmtc.dev/eon-xr/apis/eonxr-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/eon-xr/eonxr-api/revisions/538c75161c64/schema)
