跳到主要内容

CreateFileRequest

The parameters of a file that the portal creates from a template or a blank document.

NameTypeDescriptionNotes
titleStringThe title of the new file. The extension in it decides the format, and one of a known text, spreadsheet or presentation format is rewritten to the DOCX, XLSX or PPTX of the portal unless enableExternalExt says otherwise; a title with no extension gets DOCX added.[required] [example: New Document.docx] [minLength: 0] [maxLength: 165] [nullable]
templateIdCreateFileRequest_templateId[optional]
enableExternalExtBooleanWhether the extension of the title is kept as it is: true stores the title verbatim, false rewrites a known foreign format to the format the portal edits itself.[optional] [example: false]
formIdInteger (int32)A ready form from the form gallery of the portal to copy instead of a template, named by the identifier the gallery reports for it. It takes precedence over templateId; 0 means no form.[optional] [example: 0]