Update a contact (JSON Merge Patch).
PATCH/api/v1/contacts/{contact_id}contacts:write
A rename carries the new name to the documents that name the person under the organisation, through the bulk-assign task after commit.
| Scope | contacts:write |
| Asynchronous | No |
| MCP tool | update_contact |
| Portal permissions | edit_contacts |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
contact_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-Match | header | string | Optional |
Request body
| Content type | Type |
|---|---|
application/json | ContactPatchInput |
application/merge-patch+json | ContactPatchInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json Contact 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
Contact
| Field | Type | Required | Description |
|---|---|---|---|
contact_id | string | Required | |
created_at | string (date-time) or null | Required | When the contact was entered. |
created_by_username | string or null | Required | The username of whoever entered the contact (the Portal's Entered By); null when none was recorded. |
details | ContactDetails | Required | |
name | string or null | Required | |
organisation_id | string | Required | |
updated_at | string (date-time) or null | Required | When the contact was last changed; null when it never was. |
ContactDetails
| Field | Type | Required | Description |
|---|---|---|---|
business_type | string or null | Required | |
category | string or null | Required | |
category_status | string or null | Required | |
date_of_birth | string (date) or null | Required | |
designation | string or null | Required | |
email | string or null | Required | |
f1 | string or null | Required | |
f10 | string or null | Required | |
f11 | string or null | Required | |
f12 | string or null | Required | |
f13 | string or null | Required | |
f14 | string or null | Required | |
f15 | string or null | Required | |
f2 | string or null | Required | |
f3 | string or null | Required | |
f4 | string or null | Required | |
f5 | string or null | Required | |
f6 | string or null | Required | |
f7 | string or null | Required | |
f8 | string or null | Required | |
f9 | string or null | Required | |
fax | string or null | Required | |
gender | string or null | Required | |
id_number | string or null | Required | |
initials | string or null | Required | |
mobile | string or null | Required | |
mobile_2 | string or null | Required | |
notes | string or null | Required | |
phone | string or null | Required | |
phone_home | string or null | Required | |
physical_address | string or null | Required | |
physical_code | string or null | Required | |
physical_country | string or null | Required | |
postal_address_1 | string or null | Required | |
postal_address_2 | string or null | Required | |
postal_address_3 | string or null | Required | |
postal_code | string or null | Required | |
postal_country | string or null | Required | |
website | string or null | Required |
ContactDetailsPatchInput
| Field | Type | Required | Description |
|---|---|---|---|
business_type | string or null | Optional | |
category | string or null | Optional | |
category_status | string or null | Optional | |
date_of_birth | string (date) or null | Optional | |
designation | string or null | Optional | |
email | string or null | Optional | |
f1 | string or null | Optional | |
f10 | string or null | Optional | |
f11 | string or null | Optional | |
f12 | string or null | Optional | |
f13 | string or null | Optional | |
f14 | string or null | Optional | |
f15 | string or null | Optional | |
f2 | string or null | Optional | |
f3 | string or null | Optional | |
f4 | string or null | Optional | |
f5 | string or null | Optional | |
f6 | string or null | Optional | |
f7 | string or null | Optional | |
f8 | string or null | Optional | |
f9 | string or null | Optional | |
fax | string or null | Optional | |
gender | string or null | Optional | |
id_number | string or null | Optional | |
initials | string or null | Optional | |
mobile | string or null | Optional | |
mobile_2 | string or null | Optional | |
notes | string or null | Optional | |
phone | string or null | Optional | |
phone_home | string or null | Optional | |
physical_address | string or null | Optional | |
physical_code | string or null | Optional | |
physical_country | string or null | Optional | |
postal_address_1 | string or null | Optional | |
postal_address_2 | string or null | Optional | |
postal_address_3 | string or null | Optional | |
postal_code | string or null | Optional | |
postal_country | string or null | Optional | |
website | string or null | Optional |
ContactPatchInput
| Field | Type | Required | Description |
|---|---|---|---|
contact_id | string or null | Optional | |
created_at | string (date-time) or null | Optional | |
created_by_username | string or null | Optional | |
details | ContactDetailsPatchInput or null | Optional | |
name | string or null | Optional | |
organisation_id | string or null | Optional | |
updated_at | string (date-time) or null | Optional |