# Update a project

> Update an existing project.

> For the complete documentation index, see [llms.txt](https://helpdesk.orangescrum.com/llms.txt).

Source: https://helpdesk.orangescrum.com/guide/api/endpoints/projects/projects-update

---
`POST /api/v1/partner/projects/update`

Update an existing project. Only send fields that need to be updated.

## Authorizations

- `X-API-KEY` *string* (required) — Developer API key (starts with pk_)

- `X-TIMESTAMP` *integer* (required) — Unix timestamp in seconds (must be within ±5 minutes of server time)

- `X-NONCE` *string* (required) — One-time random string (minimum 8 characters, prevents replay attacks)

- `X-SIGNATURE` *string* (required) — HMAC-SHA256 signature of canonical string (hex-encoded)

## Headers

- `Accept` *string* (required) — Content type for response

- `Content-Type` *string* (required) — Content type for request

## Request body

Encrypted request data containing project_id and fields to update

- `encrypted_data` *string* (required) — Base64-encoded encrypted JSON data. Encryption: AES-256-CBC with 16-byte IV prepended. Key: SHA256 hash of secret key.

## Responses

- **200** — Project updated successfully - Returns encrypted updated project data

- **401** — Unauthorized - Invalid or missing API key

- **404** — Project not found or no permission

- **422** — Validation error

- **500** — Server error
## Request samples

### cURL

```bash
curl -X POST 'https://v4-api.orangescrum.com/api/v1/partner/projects/update' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'X-API-KEY: pk_your_api_key' \
  -H 'X-TIMESTAMP: '"$(date +%s)" \
  -H 'X-NONCE: '"$(openssl rand -hex 8)" \
  -H 'X-SIGNATURE: <hmac-sha256>' \
  -d '{"encrypted_data":"<base64-aes-256-cbc-payload>"}'
```

### Python

```python
# call() is defined on the Authentication page.
from orangescrum import call

response = call(
    "/api/v1/partner/projects/update",
    { "project_id": "550e8400-e29b-41d4-a716-446655440000", "name": "Website Redesign v2", "description": "Updated description", "status": "Completed", "start_date": "2024-01-15", "end_date": "2024-08-31", "estimated_hours": 600.0 "isactive": true },
)
print(response)
```

### JavaScript

```javascript
// call() is defined on the Authentication page.
import { call } from './orangescrum.js';

const response = await call('/api/v1/partner/projects/update', { "project_id": "550e8400-e29b-41d4-a716-446655440000", "name": "Website Redesign v2", "description": "Updated description", "status": "Completed", "start_date": "2024-01-15", "end_date": "2024-08-31", "estimated_hours": 600.0 "isactive": true });
console.log(response);
```

### PHP

```php
<?php
// call() is defined on the Authentication page.
require 'orangescrum.php';

$response = call('/api/v1/partner/projects/update', json_decode('{ "project_id": "550e8400-e29b-41d4-a716-446655440000", "name": "Website Redesign v2", "description": "Updated description", "status": "Completed", "start_date": "2024-01-15", "end_date": "2024-08-31", "estimated_hours": 600.0 "isactive": true }', true));
print_r($response);
```

## Example response

```json
{
  "success": true,
  "message": "Project updated successfully",
  "data": {
    "project_id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Website Redesign v2",
    "short_name": "WR",
    "description": "Updated description",
    "project_type": "Web Development",
    "status": "Active",
    "isactive": true,
    "start_date": "2024-01-15",
    "end_date": "2024-08-31",
    "estimated_hours": 600.0,
    "is_favourite": false,
    "dt_created": "2024-01-10 10:30:00",
    "dt_updated": "2024-02-04 15:45:00"
  }
}
```

