Logo
OneDrive Logo

OneDrive APIs

Microsoft OneDrive is a file hosting service and synchronization service operated by Microsoft as part of its web version of Office.

OneDrive APIs

Account Request URL

https://developer.microsoft.com/en-gb/windows

Base Endpoint

https://<tenant name>-my.sharepoint.com/personal/<user principal name>

Drive

Create new drive.

https://graph.microsoft.com/v1.0/drives

parentReferenceId,owner,description,quota,specialFolder,conflictBehavior

Drive

Get drive by id.

https://graph.microsoft.com/v1.0/drives/{drive-id}

drive-id

Drive

Update drive by id.

https://graph.microsoft.com/v1.0/drives/{drive-id}

drive-id,name,description,quota

Drive

Delete drive by id.

https://graph.microsoft.com/v1.0/drives/{drive-id}

drive-id

Drive

List drives for the signed-in user.

https://graph.microsoft.com/v1.0/drives

top,skip,filter,orderby,select

Drive

Get drive root.

https://graph.microsoft.com/v1.0/drives/{drive-id}/root

drive-id,select

Item

Create new item in drive.

https://graph.microsoft.com/v1.0/drives/{drive-id}/items

parentReference,name,contentType,description,folder,fileSystemInfo,file

Item

Get item by id.

https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{item-id}

drive-id,item-id,select

Item

Update item by id.

https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{item-id}

drive-id,item-id,name,description,contentType,folder

Item

Delete item by id.

https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{item-id}

drive-id,item-id

Item

Get children of item.

https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{item-id}/children

drive-id,item-id,top,skip,filter,orderby,select

Item

Get item versions.

https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{item-id}/versions

drive-id,item-id,top,skip,filter,orderby,select

Item

Get item permissions.

https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{item-id}/permissions

drive-id,item-id,top,skip,filter,orderby,select

Item

Create new permission for item.

https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{item-id}/permissions

drive-id,item-id,roles,grantee,inherit,conflictBehavior

Item

Get activity history of item.

https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{item-id}/activities

drive-id,item-id,top,skip,filter,orderby,select

Item

Get insights on item.

https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{item-id}/insights

drive-id,item-id,top,skip,filter,orderby,select

DriveItem

Get the content of item.

https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{item-id}/content

drive-id,item-id

DriveItem

Update the content of item.

https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{item-id}/content

drive-id,item-id

DriveItem

Create copy of item.

https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{item-id}/copy

drive-id,item-id,parentReference,name

DriveItem

Create link for item.

https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{item-id}/createLink

drive-id,item-id,type,scope,expirationDateTime

DriveItem

Restore item from recycle bin.

https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{item-id}/restore

drive-id,item-id

Details

Popular

Provider

Country HQ

US

API Type

REST

Categories

Microsoft
Files

Alternatives

Important URLs

Last Updated on

2024-04-03

Created At

2024-03-04

Other Apps

Upskill for a better future

Want to start tracking API at scale?

Get updates about your favorite APIs and SDKs

Contact Us

We do our best to ensure that the data we release is complete, accurate, and useful. However, because we are not able to verify all the data, and because the processing required to make the data useful is complex, we cannot be held liable for omissions or inaccuracies.

ApiRefs Logo