OneDrive integration (Storage, Productivity). Imported from open-connector.
https://graph.microsoft.com/v1.0/drives/{driveId}
| Param | Type | Required | Description |
|---|---|---|---|
| driveId | string | required | Optional drive ID. Omit it to use the authenticated user's default OneDrive. |
| select | array | optional | Optional Microsoft Graph fields to include in the response. |
/drives/{driveId}
| Param | Type | Required | Description |
|---|---|---|---|
| driveId | string | required | Optional drive ID. Omit it to use the authenticated user's default OneDrive. |
| select | array | optional | Optional Microsoft Graph fields to include in the response. |
| expand | array | optional | Optional Microsoft Graph relationships to expand in the response. |
/{itemId}/{driveId}
| Param | Type | Required | Description |
|---|---|---|---|
| driveId | string | required | Optional drive ID. Omit it to use the authenticated user's default OneDrive. |
| itemId | string | required | OneDrive drive item ID. |
| itemPath | string | optional | Path from the drive root, starting with /. |
| select | array | optional | Optional Microsoft Graph fields to include in the response. |
| expand | array | optional | Optional Microsoft Graph relationships to expand in the response. |
/{folderItemId}/{driveId}
| Param | Type | Required | Description |
|---|---|---|---|
| driveId | string | required | Optional drive ID. Omit it to use the authenticated user's default OneDrive. |
| folderItemId | string | required | OneDrive drive item ID. |
| folderPath | string | optional | Path from the drive root, starting with /. |
| top | integer | optional | Maximum number of items to return. |
| select | array | optional | Optional Microsoft Graph fields to include in the response. |
| expand | array | optional | Optional Microsoft Graph relationships to expand in the response. |
| orderBy | string | optional | Optional Microsoft Graph order-by expression. |
| nextLink | string | optional | Opaque Microsoft Graph nextLink returned by a previous OneDrive response. |
/{itemId}/{driveId}
| Param | Type | Required | Description |
|---|---|---|---|
| driveId | string | required | Optional drive ID. Omit it to use the authenticated user's default OneDrive. |
| itemId | string | required | OneDrive drive item ID. |
| format | string | optional | Optional format to convert the file into before download. |
| fileName | string | optional | Optional file name to use for the downloaded file. |
| ifNoneMatch | string | optional | Optional eTag or cTag used for conditional download requests. |
/content
| Param | Type | Required | Description |
|---|---|---|---|
| driveId | string | optional | Optional drive ID. Omit it to use the authenticated user's default OneDrive. |
| itemPath | string | required | Path to a drive item relative to the drive root. A leading slash is optional. |
| fileName | string | optional | Optional file name to use for the downloaded file. |
| ifNoneMatch | string | optional | Optional eTag or cTag used for conditional download requests. |
/{pathAndFilename}/{driveId}/pathAndFilename
| Param | Type | Required | Description |
|---|---|---|---|
| driveId | string | required | Optional drive ID. Omit it to use the authenticated user's default OneDrive. |
| format | string | required | Format to convert the drive item into. |
| itemId | string | optional | OneDrive drive item ID. |
| pathAndFilename | string | required | Path to a drive item relative to the drive root. A leading slash is optional. |
| fileName | string | optional | Optional file name to use for the downloaded file. |
/{parentItemId}/{driveId}
| Param | Type | Required | Description |
|---|---|---|---|
| driveId | string | required | Optional drive ID. Omit it to use the authenticated user's default OneDrive. |
| folder | string | optional | Destination folder path starting with /, or a parent folder item ID. |
| name | string | optional | File name used for inline upload content. |
| mimeType | string | optional | MIME type used for inline upload content. |
| file | object | optional | File uploaded through POST /api/files. |
| contentBase64 | string | optional | Base64-encoded file content used for inline uploads. |
| text | string | optional | Plain-text file content used for inline uploads. |
| description | string | optional | Optional OneDrive file description. |
| deferCommit | boolean | optional | Unsupported for now. Uploads are always committed immediately. |
| ifMatch | string | optional | Optional eTag used for conditional upload session creation. |
| fileSystemInfo | object | optional | Client-side file system timestamps. |
| conflictBehavior | string | optional | Conflict behavior used when a file with the same name already exists. |
| parentItemId | string | required | Path parameter: parentItemId |
/{itemId}/{driveId}
| Param | Type | Required | Description |
|---|---|---|---|
| driveId | string | required | Optional drive ID. Omit it to use the authenticated user's default OneDrive. |
| itemId | string | required | OneDrive drive item ID. |
| file | object | optional | File uploaded through POST /api/files. |
| contentBase64 | string | optional | Base64-encoded file content used for inline uploads. |
| text | string | optional | Plain-text file content used for inline uploads. |
| name | string | optional | File name used for inline upload content. |
| mimeType | string | optional | MIME type used for inline upload content. |
| description | string | optional | Optional OneDrive file description. |
| deferCommit | boolean | optional | Unsupported for now. Uploads are always committed immediately. |
| ifMatch | string | optional | Optional eTag used for conditional upload session creation. |
| ifNoneMatch | string | optional | Optional eTag used to prevent updates when the item has not changed. |
| fileSize | integer | optional | Optional file size hint used by Microsoft Graph for quota checks. |
| fileSystemInfo | object | optional | Client-side file system timestamps. |
| conflictBehavior | string | optional | Conflict behavior used when the updated content collides during commit. |
| driveItemSource | object | optional | A generic JSON object returned by Microsoft Graph. |
| mediaSource | object | optional | A generic JSON object returned by Microsoft Graph. |