| Field | Type | Required | Description |
|---|---|---|---|
folderId | String! | Yes | Parent folder item ID or root. |
name | String! | Yes | Creates a new file without replacing an existing one. OneDrive and SharePoint return conflict for an existing name; Google Drive creates a new item with the same name. File name, 1-255 characters without a slash. |
content | String! | Yes | File content, at most 10,000,000 characters as sent. |
contentEncoding | ExternalFileContentEncoding | No | utf8 (default) or base64. |
mimeType | String | No | MIME type; derived from the name when omitted. |
idempotencyKey | String | No | 1-128 characters without whitespace. A retry with the same key and input within 24 hours returns the first file instead of creating another. |
CreateExternalFileInput
Input object in the GraphQL API.