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

# Update category

`PUT /kb-categories/{id}`

## Request

- Base URL: `https://api.weav.com/v1`
- URL: `https://api.weav.com/v1/kb-categories/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `name` string
  - `slug` string, nullable
  - `section_id` string, uuid, nullable

## Response `200`

Success

- KbCategory
  - `id` string, uuid
  - `name` string
  - `slug` string
  - `section_id` string, uuid, nullable
  - `position` integer, nullable
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable

## Other responses

- `401`: Unauthorized
- `404`: Not found
- `422`: Validation error or slug already taken

---

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