Create Document
Headers
Request
Required: Document name - max 255 chars
Required if authoring_mode=COMPOSED: HTML body of the composed document - string
Optional: Long-form description - max 5000 chars
Required if authoring_mode=TEMPLATED: UUID of the source template - exists:templates,id
Optional: Effective-to date - date format - must be after_or_equal effective_from
Optional: Effective-from date for this document version - date format
Required: Document type UUID - exists:document_types,id (UUID converted to int by ConvertUuidToId middleware)
Optional: Document requires recipient signature(s) - boolean true|false|1|0
Optional: Default dispatch expiry in days - integer 1-3650
Optional: Expected role of primary signer - in: CUSTOMER|TENANT|PROPERTY_MANAGER|AUTHORIZED_REPRESENTATIVE|TECHNICIAN|SUBCONTRACTOR|INSPECTOR|SUPERVISOR|COMPANY_REPRESENTATIVE|WITNESS|OTHER - max 64 chars
Required if authoring_mode=UPLOADED: UUID of the source PDF attachment - exists:attachments,id
Optional: Document requires recipient acknowledgment - boolean true|false|1|0
Optional: Fifth reminder days before expiry - integer 0-365
Optional: First reminder days before expiry - integer 0-365
Optional: Third reminder days before expiry - integer 0-365
Optional: Fourth reminder days before expiry - integer 0-365
Optional: Second reminder days before expiry - integer 0-365

