---
title: "Updates an Opportunity Category"
method: PUT
path: "/OpportunityCategories"
tags: ["OpportunityCategories"]
---

# Updates an Opportunity Category

`PUT /OpportunityCategories`

## Request

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

This endpoint is used to update an existing opportunity category (for example, to change the background color for its label in the user interace). 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`

Opportunity 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 Opportunity Categories.
- `404`: Opportunity Category not found.
- `409`: Opportunity 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)
