---
title: "Create Class"
method: POST
path: "/api/classes"
tags: ["classes"]
---

# Create Class

`POST /api/classes`

## Request

- Base URL: `https://api.scanforai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.scanforai.com/api/classes`
- Auth: none declared

## Query parameters

- `lang` string

## Headers

- `X-UI-Lang` string

## Request body

- ClassIn
  - `name` string, required
  - `roster` string[], nullable
  - `roster_only` boolean
  - `ends` string, nullable
  - `description` string, nullable
  - `require_text` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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