DocuTray
API ReferenceDocument types

createDocumentType

Create a new document type

POST/api/document-types

Creates a new document type.

Non-admin users:

  • isPublic is forced to false
  • source is set to USER
  • codeType must be prefixed with the organization slug (e.g., orgname_my_type)
  • At least 3 characters required after the prefix

Admin users:

  • Can set isPublic to true
  • source defaults to ADMIN
  • No prefix requirement on codeType

Authorization

ApiKeyAuth
AuthorizationBearer <token>

Bearer token for API authentication

In: header

Request Body

application/json

Response Body

application/json