DocuTray
API ReferenceDocument types

updateDocumentType

Update a document type

PUT/api/document-types/{id}

Updates an existing document type. All fields are optional.

Permissions:

  • Non-admin users can only update document types they created
  • Non-admin users cannot set isPublic to true
  • codeType is immutable and will be ignored if provided

When isDraft changes, the status field is automatically updated. A version snapshot is created with the state before the update.

Authorization

ApiKeyAuth
AuthorizationBearer <token>

Bearer token for API authentication

In: header

Path Parameters

id*string

Document type ID

Request Body

application/json

Response Body

application/json