---
title: "Create a subject"
method: POST
path: "/subjects"
tags: ["Subjects"]
---

# Create a subject

`POST /subjects`

## Headers

- `organization` string, required

## Request body

- CreateSubjectInput
  - `entity` string, required — Entity identified by this subject
  - `fields` string[], required — Fields

## Response `201`

Subject created

- SubjectDto
  - `id` string — Subject ID
  - `fields` string[] — Fields
  - `entity` string — Entity identified by this subject

## Other responses

- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/fanhero/apis/tenant-endpoints.md) · [All operations](https://skmtc.net/fanhero/apis/tenant-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fanhero/tenant-endpoints/versions/8e7584c449dc/schema)
