---
title: "Update a category"
method: PUT
path: "/api/category/{id}"
tags: ["Category"]
---

# Update a category

`PUT /api/category/{id}`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/category/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/category/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates an existing category with the provided data

## Path parameters

- `id` integer, required

## Request body

- CategoryUpdateRequest
  - `name` string, required: Name of the category
  - `synopsis` string, nullable: Brief description of the category

## Response `204`

Category updated successfully

## Other responses

- `401`: Unauthenticated
- `403`: Forbidden
- `404`: Category not found
- `422`: Validation error
- `500`: Server error

---

[API](https://skmtc.dev/sponsorunited/apis/sponsorunited-api.md) - [All operations](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/revisions/cbf1ca5bff8f?raw)
