Capability Sources

List a OneDrive or SharePoint folder

Changed on

Lists the items in a folder, or the top of a drive when folderId is omitted: the member's own OneDrive by default, or a SharePoint library or other drive with driveId. Read-only.

get/v1/capabilities/microsoft-365/drive-children

Request

  • Base URL: https://api.openworklabs.com
  • URL: https://api.openworklabs.com/v1/capabilities/microsoft-365/drive-children
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Query parameters

driveIdstring

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

folderIdstring

Folder id; omit for the top of the drive.

maxResultsinteger
pageTokenstring

nextPageToken from the previous page of the same folder.

Response

Folder items.

oktrue required
nextPageTokenstring nullable required

Changes

    • 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 files/items/size list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

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

    • info

      endpoint added