Direct uploads

Describe a OneDrive or SharePoint file pull for host file transport

Changed on

Returns the file's drive, eTag revision and the exact format and size a pull would save, without downloading content. Hosts then fetch the content route in ranged chunks. Optional connectionId selects a Microsoft 365 connection; unavailable selections never fall back to the default.

get/v1/direct-downloads/microsoft-365/drive-files

Request

  • Base URL: https://api.openworklabs.com
  • URL: https://api.openworklabs.com/v1/direct-downloads/microsoft-365/drive-files
  • Auth: HTTP bearer

Query parameters

driveIdstring

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

itemIdstring
urlstring starts_with

A OneDrive, SharePoint or Teams file link instead of driveId and itemId.

format'pdf'

pdf converts a Word, Excel, PowerPoint or other Office file; omit to transfer the stored bytes.

connectionIdstring

Selected Microsoft 365 connection; omit for the default. Unavailable selections never fall back to another account.

Response

Pull plan; no file content.

oktrue required

Changes

    • breaking

      for the query request parameter url, the format changed from uri to starts_with

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property / became nullable for the status

    • info

      response property anyOf[InvalidRequestError]/details/items/path/items/ list-of-types was narrowed by removing types number from media type application/json of response 400

    • info

      response property anyOf[subschema #2]/currentRevision list-of-types was narrowed by removing types null from media type application/json of response 409

    • info

      response property anyOf[subschema #2]/modifiedTime list-of-types was narrowed by removing types null from media type application/json of response 409

    • info

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

    • info

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

    • info

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

    • info

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

    • info

      endpoint added