One Drive

Learn how to use One Drive with Composio

Overview

Enum

ONE_DRIVE

Description

OneDrive is Microsoft’s cloud storage solution enabling users to store, sync, and share files across devices, offering offline access, real-time collaboration, and enterprise-grade security

Authentication Details

client_id
stringRequired
client_secret
stringRequired
oauth_redirect_uri
stringDefaults to https://backend.composio.dev/api/v1/auth-apps/add
scopes
stringDefaults to Files.ReadWrite.All,Sites.Read.All,offline_access

Actions

Creates a new text file in onedrive with the specified content.

Action Parameters

user_id
stringDefaults to me
folder
stringDefaults to /
name
stringRequired
content
stringRequired

Action Response

data
object
successful
boolean
error

Finds a folder by name in onedrive using microsoft graph api.

Action Parameters

user_id
stringDefaults to me
folder
stringDefaults to /
name
string

Action Response

data
object
successful
boolean
error

Finds an item by name in onedrive using microsoft graph api.

Action Parameters

user_id
stringDefaults to me
folder
stringDefaults to /
name
stringRequired
include_metadata
boolean

Action Response

data
object
successful
boolean
error

Retrieve all files and folders from the root directory of onedrive using the microsoft graph api.

Action Parameters

user_id
stringDefaults to me
select
array
top
integerDefaults to 50

Action Response

data
object
successful
boolean
error

Downloads a file from onedrive using microsoft graph api.

Action Parameters

user_id
stringDefaults to me
item_id
stringRequired
file_name
stringRequired

Action Response

data
object
successful
boolean
error

Creates a new folder in onedrive using microsoft graph api.

Action Parameters

user_id
stringDefaults to me
parent_folder
stringDefaults to /
name
stringRequired

Action Response

data
object
successful
boolean
error

Uploads a file to onedrive using microsoft graph api.

Action Parameters

user_id
stringDefaults to me
folder
stringDefaults to /
file
objectRequired

Action Response

data
object
successful
boolean
error