# Update existing category

Endpoint: PATCH /tickets/categories/{categoryId}
Version: v3
Security: oauth2

## Security:

  - `oauth2` (unknown)
    oauth2

## Path parameters:

  - `categoryId` (string, required)

## Request fields (application/json):

  - `name` (null | string)
    Gets or sets the category name.

  - `isActive` (null | boolean)
    Gets or sets a value indicating whether the category is active or not.

  - `locations` (null | array)
    Gets or sets the list of locations associated with the ticket category.

## Response 200:

  - `200` (unknown)
    OK

## Response 200 fields (application/json):

  - `id` (string)
    Gets or sets the ticket category id.

  - `name` (null | string)
    Gets or sets the category name.

  - `isActive` (boolean)
    Gets or sets a value indicating whether the category is active or not.

  - `locations` (null | array)
    Gets or sets the list of locations associated with the ticket category.

## Response 404:

  - `404` (unknown)
    Category not found

## Response 404 fields (application/json):

  - `type` (null | string)

  - `title` (null | string)

  - `status` (null | integer)

  - `detail` (null | string)

  - `instance` (null | string)

## Response 409:

  - `409` (unknown)
    A category with the same name already exists.

## Response 409 fields (application/json):

  - `type` (null | string)

  - `title` (null | string)

  - `status` (null | integer)

  - `detail` (null | string)

  - `instance` (null | string)

