Model tree
FileUploadCreateBody
The body of a create-file-upload request.| Field | Type | Description |
|---|---|---|
mode | "single_part" | "multi_part" | "external_url" | How the file arrives. single_part when absent: the bytes are sent in one follow-up request. multi_part for files over 20 MiB. external_url imports from a public HTTPS URL with no upload step. |
filename | string | The name of the file. Required for multi_part and external_url. Include an extension, or give content_type so one can be inferred. |
contentType | string | The MIME type of the file. It must match the bytes and any extension on filename. |
numberOfParts | integer | How many parts a multi_part upload is split into. It must match the number of parts actually sent. ≥ 1; ≤ 10000 |
externalUrl | string | A public HTTPS URL for Notion to import. Required for an external_url upload. |