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

Downloads a file from onedrive using microsoft graph api.

Action Parameters

file_name
stringRequired
item_id
stringRequired
user_id
stringDefaults to me

Action Response

data
object
error
successful
boolean

Creates a new folder in onedrive using microsoft graph api.

Action Parameters

name
stringRequired
parent_folder
stringDefaults to /
user_id
stringDefaults to me

Action Response

data
object
error
successful
boolean

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

Action Parameters

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

Action Response

data
object
error
successful
boolean

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

Action Parameters

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

Action Response

data
object
error
successful
boolean

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

Action Parameters

folder
stringDefaults to /
name
string
user_id
stringDefaults to me

Action Response

data
object
error
successful
boolean

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

Action Parameters

select
array
top
integerDefaults to 50
user_id
stringDefaults to me

Action Response

data
object
error
successful
boolean

Uploads a file to onedrive using microsoft graph api.

Action Parameters

file
objectRequired
folder
stringDefaults to /
user_id
stringDefaults to me

Action Response

data
object
error
successful
boolean