Document
A document: a file kept in a folder, with who may read and write it.
idrequiredstring (uuid)- The document's id.
namerequiredstring- The document's name, unique among the live documents in its folder.
folder_idrequiredstring | null (uuid)- The folder the document is in.
deal_idrequiredstring | null (uuid)- The deal whose folder tree holds this document, or null when it is not in a deal's tree.
typerequiredstring- The kind of file, worked out from its content type.One of: binary, image, video, text, csv, doc, sheet, presentation, pdf, file, email
statusrequiredstring- Where the file is in processing. Only a file_available document can be downloaded; not_validated, not_scanned and watermark_processing are still in progress, failed_scan failed its virus scan, and video_processed is a transcoded video.One of: not_validated, not_scanned, failed_scan, file_available, video_processed, watermark_processing
mime_typerequiredstring | null- The content type of the file. Null for a video, which has no file.
sizerequiredinteger | null- The size of the file in bytes. Null for a video, which has no file.
descriptionrequiredstring | null- A note kept with the document.
metadatarequiredobject | null- Free-form key-value data kept with the document.
owner_idrequiredstring | null (uuid)- The user who added the document.
allow_downloadrequiredboolean | null- Whether people may download the document. Null follows the organisation's document settings.
apply_watermarkrequiredboolean | null- Whether downloads are watermarked. Null follows the organisation's document settings.
maskedrequiredboolean- Whether the document was produced from a form template with some of its content masked.
accessrequiredobject- Groups of users who may read and write the document without being listed in its permissions.
permissionsobject- Who may read and write the document, including what it inherits from its folder.
created_atrequiredstring (date-time)- When the document was added.
updated_atrequiredstring (date-time)- When the document last changed.