---
title: "Update a category"
method: PATCH
path: "/categories/{id}"
tags: ["Categories"]
---

# Update a category

`PATCH /categories/{id}`

## Request

- Base URL: `https://api.fanheroapi.com`
- URL: `https://api.fanheroapi.com/categories/{id}`
- Auth: API key in header `apiKey`

## Request body

- UpdateCategoryInput
  - `entitlements` string[]: Entitlemetns. A string array of product IDs.
  - `kind` string: Access level of this category
  - `password` string: Password
  - `slug` string: Category slug
  - `posts` string[]: Array of post IDs

## Response `200`

Category updated.

---

[API](https://skmtc.dev/fanhero/apis/headless-cms-endpoints.md) - [All operations](https://skmtc.dev/fanhero/apis/headless-cms-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/fanhero/apis/headless-cms-endpoints/revisions/fb8d50c05ee6?raw)
