Skip to main content

Update an organisation (JSON Merge Patch).

PATCH/api/v1/organisations/{organisation_id}contacts:write

A rename carries the new name to the documents that name the organisation, through the bulk-assign task after commit (the caller needs Bulk Edit Document Details and the right to change every one of them).

Scopecontacts:write
AsynchronousNo
MCP toolupdate_organisation
Portal permissionsedit_organisations

Parameters​

NameInTypeRequiredDescription
organisation_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonOrganisationPatchInput
application/merge-patch+jsonOrganisationPatchInput

Responses​

StatusDescriptionBody
200Success.application/json Organisation or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409already_exists, conflictapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

ContactDetails​

FieldTypeRequiredDescription
business_typestring or nullRequired
categorystring or nullRequired
category_statusstring or nullRequired
date_of_birthstring (date) or nullRequired
designationstring or nullRequired
emailstring or nullRequired
f1string or nullRequired
f10string or nullRequired
f11string or nullRequired
f12string or nullRequired
f13string or nullRequired
f14string or nullRequired
f15string or nullRequired
f2string or nullRequired
f3string or nullRequired
f4string or nullRequired
f5string or nullRequired
f6string or nullRequired
f7string or nullRequired
f8string or nullRequired
f9string or nullRequired
faxstring or nullRequired
genderstring or nullRequired
id_numberstring or nullRequired
initialsstring or nullRequired
mobilestring or nullRequired
mobile_2string or nullRequired
notesstring or nullRequired
phonestring or nullRequired
phone_homestring or nullRequired
physical_addressstring or nullRequired
physical_codestring or nullRequired
physical_countrystring or nullRequired
postal_address_1string or nullRequired
postal_address_2string or nullRequired
postal_address_3string or nullRequired
postal_codestring or nullRequired
postal_countrystring or nullRequired
websitestring or nullRequired

ContactDetailsPatchInput​

FieldTypeRequiredDescription
business_typestring or nullOptional
categorystring or nullOptional
category_statusstring or nullOptional
date_of_birthstring (date) or nullOptional
designationstring or nullOptional
emailstring or nullOptional
f1string or nullOptional
f10string or nullOptional
f11string or nullOptional
f12string or nullOptional
f13string or nullOptional
f14string or nullOptional
f15string or nullOptional
f2string or nullOptional
f3string or nullOptional
f4string or nullOptional
f5string or nullOptional
f6string or nullOptional
f7string or nullOptional
f8string or nullOptional
f9string or nullOptional
faxstring or nullOptional
genderstring or nullOptional
id_numberstring or nullOptional
initialsstring or nullOptional
mobilestring or nullOptional
mobile_2string or nullOptional
notesstring or nullOptional
phonestring or nullOptional
phone_homestring or nullOptional
physical_addressstring or nullOptional
physical_codestring or nullOptional
physical_countrystring or nullOptional
postal_address_1string or nullOptional
postal_address_2string or nullOptional
postal_address_3string or nullOptional
postal_codestring or nullOptional
postal_countrystring or nullOptional
websitestring or nullOptional

Organisation​

FieldTypeRequiredDescription
allows_projectsbooleanRequiredWhether the organisation may own projects (client_flag).
created_atstring (date-time) or nullRequiredWhen the organisation was entered.
created_by_usernamestring or nullRequiredThe username of whoever entered the organisation (the Portal's Entered By); null when none was recorded.
detailsContactDetailsRequired
namestring or nullRequired
organisation_idstringRequired
updated_atstring (date-time) or nullRequiredWhen the organisation was last changed; null when it never was.

OrganisationPatchInput​

FieldTypeRequiredDescription
allows_projectsboolean or nullOptional
created_atstring (date-time) or nullOptional
created_by_usernamestring or nullOptional
detailsContactDetailsPatchInput or nullOptional
namestring or nullOptional
organisation_idstring or nullOptional
updated_atstring (date-time) or nullOptional