> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# UpdateCategory

> Updates a category.

If a request with this mutation's Idempotency-Key was already completed, the response's `extensions` contains an `idempotency.{responseName}` entry with `wasReplayed: true`.



**mutation** `UpdateCategory(request: UpdateCategoryCommandRequestInput!): UpdateCategoryCommandResponse!`

## Arguments

**`request`**: `UpdateCategoryCommandRequestInput!` (required)

## Returns

`UpdateCategoryCommandResponse!`

**`categoryId`**: `ID!`

The ID of the updated category.

## Examples

```graphql Mutation
mutation UpdateCategory($request: UpdateCategoryCommandRequestInput!) {
  UpdateCategory(request: $request) {
    categoryId
  }
}
```

```json Variables
{
  "request": {
    "categoryId": "id"
  }
}
```

```json Response
{
  "data": {
    "UpdateCategory": {
      "categoryId": "id"
    }
  }
}
```
