Skip to main content
PATCH
Rename or move a OneDrive item within the same drive

Authorizations

x-api-key
string
header
required

Organization API key passed as the x-api-key header. The raw key is the header value; do not prefix it with Bearer.

Path Parameters

itemId
string
required

Microsoft Graph drive item id.

Required string length: 1 - 512

Body

application/json
name
string
Required string length: 1 - 255
parentId
string

Destination folder id within the calling member's same OneDrive; cross-drive moves are not supported.

Required string length: 1 - 512

Response

Microsoft Graph mutation receipt returned.

ok
boolean
required
file
object
required