Skip to main content

Update a document type (JSON Merge Patch).

PATCH/api/v1/document-types/{document_type_id}lookup_lists:write

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

Scopelookup_lists:write
AsynchronousNo
MCP toolupdate_document_type
Portal permissionsedit_document_types

Parameters​

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

Request body​

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

Responses​

StatusDescriptionBody
200Success.application/json DocumentType 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​

DocumentType​

FieldTypeRequiredDescription
document_type_idstringRequired
is_transmittalbooleanRequiredWhether documents of this type are transmittals.
namestring or nullRequired

DocumentTypePatchInput​

FieldTypeRequiredDescription
document_type_idstring or nullOptional
is_transmittalboolean or nullOptional
namestring or nullOptional