Capability Sources

Rename or move a OneDrive or SharePoint item within the same drive

Changed on

Requires Files.ReadWrite and filesWrite for the member's own OneDrive, or Files.ReadWrite.All and filesFull for other drives. Updates only the name and/or parent folder id; cannot move across drives or upload content. Uses only the calling member's delegated Microsoft 365 connection. Never automatically retry a mutation after a timeout, cancellation, or ambiguous response; inspect current state first.

patch/v1/capabilities/microsoft-365/drive-file/{itemId}

Request

  • Base URL
    https://api.openworklabs.com
  • URL
    https://api.openworklabs.com/v1/capabilities/microsoft-365/drive-file/{itemId}
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

itemIdstring required

Microsoft Graph drive item id.

Request body

driveIdstring

The file's driveId from a search, folder or link result. Omit for the member's own OneDrive.

namestring
parentIdstring

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

Response

Microsoft Graph mutation receipt returned.

oktrue required

Changes

    • breaking

      the response property / became nullable for the status

    • info

      response property file/size list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      added the new optional request property

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status