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

# Update a subcategory

`PUT /api/subcategory/{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/subcategory/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/subcategory/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates an existing subcategory with the provided data

## Path parameters

- `id` integer, required

## Request body

- SubcategoryUpdateRequest
  - `name` string, nullable: Name of the subcategory
  - `synopsis` string, nullable: Brief description of the subcategory
  - `always_in_social_review` boolean: Whether this subcategory is always included in social review
  - `leagues_social_review` integer[]: Array of league IDs for social review
  - `always_in_social_reject` boolean: Whether brands in this subcategory are always auto-rejected in social scans
  - `leagues_social_reject` integer[]: Array of league IDs for social auto-reject

## Response `200`

Subcategory updated successfully

- object
  - `id` integer
  - `name` string
  - `category_id` integer
  - `synopsis` string, nullable
  - `always_in_social_review` boolean
  - `leagues_in_social_review` object[]
    - `id` integer
    - `name` string
  - `always_in_social_reject` boolean
  - `leagues_in_social_reject` object[]
    - `id` integer
    - `name` string

## Other responses

- `401`: Unauthenticated
- `403`: Forbidden
- `404`: Subcategory not found
- `422`: Validation 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)
