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

# Create a subject

`POST /subjects`

## Request

- Base URL: `https://api-staging.fanheroapi.com`
- URL: `https://api-staging.fanheroapi.com/subjects`
- Auth: API key in header `apiKey`

## 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.dev/fanhero/apis/user-management-endpoints.md) - [All operations](https://skmtc.dev/fanhero/apis/user-management-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/fanhero/apis/user-management-endpoints/revisions/3f982670c057?raw)
