Skip to main content

Files

Specification​

{
"name": "<String>",
"installedFileName": "<String>",
"extension": "<String>",
"description": "<String>",
"mimeType": "<String>"
}

Structure values​

Field NameTypeDescriptionRequiredDefault
nameStringMetadata reference name. The name to use when referring to the file in other metadata commands.Required
installedFileNameStringThe name the file is installed under on a cluster — useful for files (e.g. wheels) that need a specific name to install correctly. A supplied or inferred name ending in .<extension> (case-insensitive) has that one suffix stripped when the file is created, so the installed name doesn't end up with the extension doubled.OptionalThe uploaded file's own name; if that's unavailable, falls back to name.
extensionStringThe file extension. Never inferred from the uploaded file's name — always taken from this field.Required
descriptionStringDescription of the fileOptionalNone
mimeTypeStringMIME type of the fileOptionalNone

A name that is exactly .<extension> — a dotfile, like .bashrc with extension bashrc — strips to an empty stem and installs as .<extension>, rather than being rejected.

Example​

{
"name": "bootstrap-deps",
"installedFileName": "pandas-2.1.0-py3-none-any.whl",
"extension": "whl",
"description": "Custom pandas wheel to be installed on cluster startup",
"mimeType": "application/octet-stream"
}