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

# Update a subject

`PATCH /subjects/{subjectId}`

## 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.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)
