---
title: "Update a subject"
method: PATCH
path: "/subjects/{subjectId}"
tags: ["Subjects"]
---

# Update a subject

`PATCH /subjects/{subjectId}`

## Request

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

## Request body

- UpdateSubjectInput
  - `entity` string: Entity identified by this subject
  - `fields` string[]: Fields

## Response `200`

Subject updated

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

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Subject not found

---

[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)
