---
title: Update a project
description: "PATCH`/projects/{projectId}` ## Code Samples ```curl curl --request PATCH \\ --url 'https://api.taskflow.example.com/v2/projects/{projectId}' \\ --header 'Authorization: Bearer YOUR_TOKEN' \\ --header 'Content-Type: application/json' \\ --data '{ \"name\": \"string\", \"description\": \"string\" }' const response = await fetch('https://api.taskflow.example.com/v2/projects/{projectId}', { method: 'PATCH', headers: { 'Authorization': 'Bearer…"
url: "https://cbotai.shahrear.msf.bd/docs/update-a-project/"
updated: "2026-08-20"
category: hyper active / projects
---

# Update a project

PATCH`/projects/{projectId}`

## Code Samples

```curl

                curl --request PATCH \
  --url 'https://api.taskflow.example.com/v2/projects/{projectId}' \
  --header 'Authorization: Bearer YOUR_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "string",
    "description": "string"
}'

                const response = await fetch('https://api.taskflow.example.com/v2/projects/{projectId}', {
  method: 'PATCH',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "name": "string",
    "description": "string"
})
});

const data = await response.json();
console.log(data);

                import requests

headers = {
    "Authorization": "Bearer YOUR_TOKEN",
    "Content-Type": "application/json"
}

payload = {
    "name": "string",
    "description": "string"
}

response = requests.patch("https://api.taskflow.example.com/v2/projects/{projectId}", headers=headers, json=payload)

print(response.json())

                <?php
$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => 'https://api.taskflow.example.com/v2/projects/{projectId}',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => 'PATCH',
  CURLOPT_HTTPHEADER => [
  'Authorization: Bearer YOUR_TOKEN',
  'Content-Type: application/json'
  ],
  CURLOPT_POSTFIELDS => '{
    "name": "string",
    "description": "string"
}',
]);

$response = curl_exec($curl);
curl_close($curl);

echo $response;

                using System.Net.Http;
using System.Text;

var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("PATCH"), "https://api.taskflow.example.com/v2/projects/{projectId}");
request.Headers.Add("Authorization", "Bearer YOUR_TOKEN");
request.Content = new StringContent(@"{
    ""name"": ""string"",
    ""description"": ""string""
}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);

                import java.net.URI;
import java.net.http.*;

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://api.taskflow.example.com/v2/projects/{projectId}"))
    .header("Authorization", "Bearer YOUR_TOKEN")
    .header("Content-Type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
    "name": "string",
    "description": "string"
}
"""))
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

## Response

```json

                {
    "name": "string",
    "description": "string",
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "created_at": "2024-01-15T09:30:00Z"
}
```

## Request Body

Content type: `application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | **Required** |  |
| `description` | string \| null | Optional |  |

```json

                {
    "name": "string",
    "description": "string"
}
```

## Responses

### 200 — Updated

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | **Required** |  |
| `description` | string \| null | Optional |  |
| `id` | string (uuid) | **Required** |  |
| `created_at` | string (date-time) | **Required** |  |

```json

                {
    "name": "string",
    "description": "string",
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "created_at": "2024-01-15T09:30:00Z"
}
```
