---
title: "Create Subject"
method: POST
path: "/api/subjects/"
tags: ["subjects"]
---

# Create Subject

`POST /api/subjects/`

## Request

- Base URL: `https://api.regdoor.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.regdoor.com/api/subjects/`
- Auth: HTTP bearer

## Request body

- SubjectCreate
  - `title` string, required
  - `function` string, nullable
  - `definition` string, nullable
  - `tags_examples` string, nullable
  - `embedding` number[], nullable
  - `tag_uuids` string[], nullable

## Response `201`

Successful Response

- Subject
  - `uuid` string, uuid4, required
  - `title` string, required
  - `function` string, nullable
  - `definition` string, nullable
  - `tags_examples` string, nullable
  - `tags` TagRef[]
    - `uuid` string, uuid4, required
    - `name` string, required

## Other responses

- `422`: Validation Error

---

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