---
title: "Patch category"
method: PATCH
path: "/category/{categoryId}"
tags: ["Category"]
---

# Patch category

`PATCH /category/{categoryId}`

Patches a category with the specified changes, only the given values will be updated.

## Path parameters

- `categoryId` integer, required

## Request body

- CategoryDeltaApiModel — Updated category information
  - `Key` string — New category key
  - `Name` string — New category name
  - `Rank` integer — New category rank
  - `Status` 'Active' | 'InActive' — New category status
  - `LandingPage` LandingPageDeltaApiModel — Updated category landingpage information
    - `FilterTemplateId` integer — The id of connected filter template (null -&gt; use parent template)
    - `MerchandisingTemplateId` integer — The id of connected merchandising template (null -&gt; use parent template)
    - `MerchandisingBuilderId` integer — The id of connected merchandising builder (-1 -&gt; use parent builder)
  - `Parents` integer[] — New collection of category parents
  - `Url` string — The category url

## Response `200`

The id of the updated category

- integer

## Other responses

- `400` — BadRequest
- `404` — Category not found

---

[API](https://skmtc.net/tweakwise/apis/frontend-api.md) · [All operations](https://skmtc.net/tweakwise/apis/frontend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tweakwise/frontend-api/revisions/9bd1e2b3633f/schema)
