Update a project (JSON Merge Patch).
PATCH/api/v1/projects/{project_id}projects:write
The project row changes at once. A changed project_number or organisation is then copied onto the project's documents by a background task (eventual), which re-syncs them.
| Scope | projects:write |
| Asynchronous | No |
| MCP tool | update_project |
| Portal permissions | edit_projects |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
project_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-Match | header | string | Optional |
Request body
| Content type | Type |
|---|---|
application/json | ProjectPatchInput |
application/merge-patch+json | ProjectPatchInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json Project or object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
412 | precondition_failed | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
Project
| Field | Type | Required | Description |
|---|---|---|---|
completed_date | string (date) or null | Required | |
created_at | string (date-time) or null | Required | |
created_by | UserRef or null | Required | |
document_controller | UserRef or null | Required | |
email_address | string or null | Required | |
organisation | object or null | Required | The project's organisation (its client). |
other_parties | string or null | Required | |
parties | string or null | Required | |
project_id | string | Required | |
project_name | string or null | Required | |
project_number | string or null | Required | |
project_owner | string or null | Required | |
project_status | object or null | Required | |
project_type | object or null | Required | |
reference_number | string or null | Required | |
source | string or null | Required | |
start_date | string (date) or null | Required |
ProjectPatchInput
| Field | Type | Required | Description |
|---|---|---|---|
completed_date | string (date) or null | Optional | |
created_at | string (date-time) or null | Optional | |
created_by | UserRefInput or null | Optional | |
document_controller | UserRefInput or null | Optional | |
email_address | string or null | Optional | |
organisation | object or null | Optional | |
other_parties | string or null | Optional | |
parties | string or null | Optional | |
project_id | string or null | Optional | |
project_name | string or null | Optional | |
project_number | string or null | Optional | |
project_owner | string or null | Optional | |
project_status | object or null | Optional | |
project_type | object or null | Optional | |
reference_number | string or null | Optional | |
source | string or null | Optional | |
start_date | string (date) or null | Optional |
UserRef
| Field | Type | Required | Description |
|---|---|---|---|
display_name | string | Required | |
kind | string: user, system, integration or string | Required | |
user_id | string or null | Required |
UserRefInput
| Field | Type | Required | Description |
|---|---|---|---|
display_name | string | Optional | |
kind | string: user, system, integration | Optional | |
user_id | string or null | Optional |