---
title: "Update project type"
method: PATCH
path: "/project-types/{type_id}"
tags: ["project-types"]
---

# Update project type

`PATCH /project-types/{type_id}`

## Request

- Base URL: `https://api.cogram.com/v1`
- URL: `https://api.cogram.com/v1/project-types/{type_id}`
- Auth: HTTP bearer

Update a project type.

Only provided fields are updated.

## Path parameters

- `type_id` string, required

## Request body

- ProjectTypeUpdateV1: Update project-type request. All fields are optional - only provided fields will be updated.
  - `name` string, nullable: Unique within the org (case-insensitive).
  - `color` string, nullable: Optional hex color for UI display, e.g. '#3B82F6'.

## Response `200`

Successful Response

- ProjectTypeV1: Project-type response.
  - `id` string, required
  - `name` string, required
  - `color` string, nullable, required
  - `projects_count` integer, required
  - `created_at` string, date-time, nullable, required
  - `updated_at` string, date-time, nullable, required: Null if never updated.

## Other responses

- `401`: Unauthorized
- `404`: Not found
- `409`: Conflict
- `422`: Validation error
- `429`: Rate limit exceeded
- `500`: Internal server error

---

[API](https://skmtc.dev/cogram/apis/cogram-api.md) · [All operations](https://skmtc.dev/cogram/apis/cogram-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cogram/apis/cogram-api/revisions/5a3c9c40fca5?raw)
