Capability Sources

List a SharePoint site's document libraries

Changed on

Lists the document libraries (drives) of one SharePoint site. Pass a library's id as driveId to browse, read or save its files. Read-only; needs the SharePoint sites permission.

get/v1/capabilities/microsoft-365/sites/{siteId}/drives

Request

  • Base URL: https://api.openworklabs.com
  • URL: https://api.openworklabs.com/v1/capabilities/microsoft-365/sites/{siteId}/drives
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Path parameters

siteIdstring required

SharePoint site id from a site search.

Response

Document libraries.

oktrue required

Changes

    • 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

      endpoint added