---
title: "Updates a Task Category"
method: PUT
path: "/TaskCategories"
tags: ["TaskCategories"]
---

# Updates a Task Category

`PUT /TaskCategories`

## Request

- Base URL: `https://api.insightly.com/v3.1`
- URL: `https://api.insightly.com/v3.1/TaskCategories`
- Auth: none declared. Required headers: `Authorization`

This endpoint is used to update an existing task category, for example to change the background color for the task category's label in the web UI. This endpoint is only accessible to users with administrator permission.

## Headers

- `Authorization` string, required

## Request body

- APICategory
  - `CATEGORY_ID` integer
  - `CATEGORY_NAME` string, required
  - `ACTIVE` boolean
  - `BACKGROUND_COLOR` string, required

## Response `200`

Task Category updated.

- object
  - `CATEGORY_ID` integer
  - `CATEGORY_NAME` string, required
  - `ACTIVE` boolean
  - `BACKGROUND_COLOR` string, required

## Other responses

- `400`: Data validation error.
- `401`: Authentication failed.
- `403`: API User does not have permission to edit Task Categories.
- `404`: Task Category not found.
- `409`: Task Category cannot be updated because it has been deactivated.

---

[API](https://skmtc.dev/insightly/apis/insightly-api-v3-1.md) - [All operations](https://skmtc.dev/insightly/apis/insightly-api-v3-1/llms.txt) - [OpenAPI document](https://skmtc.dev/insightly/apis/insightly-api-v3-1/revisions/e7df0c3b65fb?raw)
