Onedriveconnector v1

Version 1

Connector Overview: This page documents all 19 actions for the Onedriveconnector v1.

General (5)

POST Copy a DriveItem

/drives/{driveId}/items/{itemId}/copy

Creates a copy of a DriveItem (file or folder), optionally in a new location or with a new name.

Parameters

Parameter Name

Description

Content Type

N/A

headers

N/A

headers.Header Key

N/A

headers.Header Value

N/A

Driveid

N/A

Itemid

N/A

Response Type

N/A

Options (1)

Option Name

Description

Name

New name for the copied file/folder. If omitted, the original name is retained.

POST Copy a DriveItem in Personal OneDrive

/me/drive/items/{item-id}/copy

Parameters

Parameter Name

Description

Content Type

N/A

headers

N/A

headers.Header Key

N/A

headers.Header Value

N/A

Item-id

N/A

Response Type

N/A

Options (1)

Option Name

Description

Name

New name for the copied file/folder. If omitted, the original name is retained.

POST Copy a DriveItem in SharePoint Site Drive

/sites/{siteId}/drive/items/{itemId}/copy

Parameters

Parameter Name

Description

Content Type

N/A

headers

N/A

headers.Header Key

N/A

headers.Header Value

N/A

Siteid

N/A

Itemid

N/A

Response Type

N/A

Options (1)

Option Name

Description

Name

New name for the copied file/folder. If omitted, the original name is retained.

POST Copy a DriveItem in a Group Drive

/groups/{groupId}/drive/items/{itemId}/copy

Parameters

Parameter Name

Description

Content Type

N/A

headers

N/A

headers.Header Key

N/A

headers.Header Value

N/A

Groupid

N/A

Itemid

N/A

Response Type

N/A

Options (1)

Option Name

Description

Name

New name for the copied file/folder. If omitted, the original name is retained.

POST Copy a DriveItem in a User's OneDrive

/users/{userId}/drive/items/{itemId}/copy

Parameters

Parameter Name

Description

Content Type

N/A

headers

N/A

headers.Header Key

N/A

headers.Header Value

N/A

Userid

N/A

Itemid

N/A

Response Type

N/A

Options (1)

Option Name

Description

Name

New name for the copied file/folder. If omitted, the original name is retained.

Download

GET Download Asset

x-oneteg-downloader-path-without-authorization

Parameters

Parameter Name

Description

HTTP Method

N/A

Download Url

N/A

Asset Name

N/A

Try Count

N/A

Read Timeout (seconds)

N/A

Connection Timeout (seconds)

N/A

Load File Content As Output

This toggle enables you to load file content as the step output. Supported formats include JSON, XML, YML/YAML, CSV, TXT, and other text-based file types. Note that images, PDF files, and other binary formats cannot be loaded. Additionally, there is a file size limit for this feature; please check the logs for details.

Follow Redirects

Enable or disable following URL redirects. If it is enabled, it will follow the URL redirects.

headers

N/A

headers.Header Key

N/A

headers.Header Value

N/A

Drive (12)

POST 1. Create session

/me/drive/root:/{item-path}:/createUploadSession

Parameters

Parameter Name

Description

Content Type

N/A

headers

N/A

headers.Header Key

N/A

headers.Header Value

N/A

Item-path

N/A

Response Type

N/A

Options (3)

Option Name

Description

@microsoft.graph.conflictbehavior

N/A

Description

N/A

Name

N/A

PUT 2. Upload file

/me/drive/uploadSession

Parameters

Parameter Name

Description

Content Type

N/A

headers

N/A

headers.Header Key

N/A

headers.Header Value

N/A

Guid

N/A

Overwrite

N/A

Rename

N/A

Dc

N/A

Tempauth

N/A

Content-length

N/A

Content-range

N/A

Response Type

N/A

Options (3)

Option Name

Description

@microsoft.graph.conflictbehavior

N/A

Description

N/A

Name

N/A

POST Create a folder

/me/drive/root/children

Parameters

Parameter Name

Description

Content Type

N/A

headers

N/A

headers.Header Key

N/A

headers.Header Value

N/A

Response Type

N/A

Options (2)

Option Name

Description

Name

N/A

Folder

N/A

POST Get Access Token Through OAuth Copy

/me/drive/

Parameters

Parameter Name

Description

headers

N/A

headers.Header Key

N/A

headers.Header Value

N/A

Response Type

N/A

GET Get a DriveItem resource by Path

/me/drive/root:/{ItemPath}

Parameters

Parameter Name

Description

headers

N/A

headers.Header Key

N/A

headers.Header Value

N/A

Itempath

N/A

Response Type

N/A

GET Get files shared with me

/me/drive/sharedWithMe

Parameters

Parameter Name

Description

headers

N/A

headers.Header Key

N/A

headers.Header Value

N/A

Content-type

N/A

Response Type

N/A

GET Get my recent files

/me/drive/recent

Parameters

Parameter Name

Description

headers

N/A

headers.Header Key

N/A

headers.Header Value

N/A

Content-type

N/A

Response Type

N/A

GET List All Files From Folder

/me/drive/items/{FolderId}/children

Parameters

Parameter Name

Description

headers

N/A

headers.Header Key

N/A

headers.Header Value

N/A

Folderid

N/A

Response Type

N/A

GET List All Files From Root Folder

/me/drive/root/children

Parameters

Parameter Name

Description

headers

N/A

headers.Header Key

N/A

headers.Header Value

N/A

Content-type

N/A

Response Type

N/A

GET Search my OneDrive

/me/drive/root/search(q='test')

Parameters

Parameter Name

Description

headers

N/A

headers.Header Key

N/A

headers.Header Value

N/A

Select

N/A

Content-type

N/A

Response Type

N/A

PATCH Update Item Properties

/sites/{SiteId}/drive/items/{ItemId}

Parameters

Parameter Name

Description

Content Type

N/A

headers

N/A

headers.Header Key

N/A

headers.Header Value

N/A

Siteid

N/A

Itemid

N/A

Response Type

N/A

Options (1)

Option Name

Description

Title

N/A

PUT Upload simple file

/me/drive/root:/{file_name}:/content

Parameters

Parameter Name

Description

Content Type

N/A

headers

N/A

headers.Header Key

N/A

headers.Header Value

N/A

File Name

N/A

Response Type

N/A

Options (1)

Option Name

Description

File

The binaries of the file

Misc

GET Get Item by Path

/{ItemPath}

Parameters

Parameter Name

Description

headers

N/A

headers.Header Key

N/A

headers.Header Value

N/A

Itempath

OneDrive also supports path-based addressing. This allows you to use a friendly URL syntax to address items relative to the hierarchy of items visible in OneDrive.

Response Type

N/A