Databricks SDK for JavaScript
    Preparing search index...
    interface ImportRequest {
        content?: Uint8Array<ArrayBufferLike>;
        format?: ExportFormat;
        language?: Language;
        overwrite?: boolean;
        path?: string;
    }
    Index

    Properties

    content?: Uint8Array<ArrayBufferLike>

    The base64-encoded content. This has a limit of 10 MB.

    If the limit (10MB) is exceeded, exception with error code MAX_NOTEBOOK_SIZE_EXCEEDED is thrown. This parameter might be absent, and instead a posted file is used.

    format?: ExportFormat

    This specifies the format of the file to be imported.

    The value is case sensitive.

    • AUTO: The item is imported depending on an analysis of the item's extension and the header content provided in the request. If the item is imported as a notebook, then the item's extension is automatically removed.
    • SOURCE: The notebook or directory is imported as source code.
    • HTML: The notebook is imported as an HTML file.
    • JUPYTER: The notebook is imported as a Jupyter/IPython Notebook file.
    • DBC: The notebook is imported in archive format. Required for directories.
    • R_MARKDOWN: The notebook is imported from R Markdown format.
    language?: Language

    The language of the object. This value is set only if the object type is NOTEBOOK.

    overwrite?: boolean

    The flag that specifies whether to overwrite existing object. It is false by default. For DBC format, overwrite is not supported since it may contain a directory.

    path?: string

    The absolute path of the object or directory. Importing a directory is only supported for the DBC and SOURCE formats.