---
title: "Update the specified media category"
method: POST
path: "/media-categories/{id}/"
tags: ["Media categories"]
---

# Update the specified media category

`POST /media-categories/{id}/`

Update the specified media category.

## Response `200`

OK

- object
  - `success` boolean
  - `category` XFMGCategory
    - `custom_fields` unknown[] — Custom field definitions available in this category
      - unknown
    - `can_add` boolean
    - `view_url` string
    - `category_id` integer
    - `title` string
    - `description` string
    - `category_type` string
    - `media_count` integer
    - `album_count` integer
    - `comment_count` integer
    - `allowed_types` unknown[]
      - unknown
    - `min_tags` integer
    - `category_index_limit` integer
    - `parent_category_id` integer
    - `display_order` integer

## Other responses

- `default` — Error

## Changes

- **2026-03-18** `e271d0e41f6d` — 2 breaking, 1 warning, 5 info
  - removed the media type `application/json` from the request body
  - the `success` response's property type changed from `string` to `boolean` for status `200`
  - deleted the `path` request parameter `id`
  - api operation id `post_media_categories_id_` removed and replaced with `postMediaCategoriesId`
  - …4 more
- **2026-03-06** `0f490cfb7931` — 4 info
  - api tag `Media categories` added
  - api tag `media-categories` removed
  - added optional request body
  - added the media type `application/json` for the response with the status `200`
- **2026-03-05** `6b68c4d49c45` — 1 info
  - endpoint added
- **2026-02-03** `fc0a40f3b859` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/xenforo-ltd/apis/xenforo-api/changes/media-categories/:id/post.md)

---

[API](https://skmtc.dev/xenforo-ltd/apis/xenforo-api.md) · [All operations](https://skmtc.dev/xenforo-ltd/apis/xenforo-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xenforo-ltd/xenforo-api/revisions/b15eba33657a/schema)
