Search OneDrive and SharePoint files as the calling member
Changed onSearches file names and content across every OneDrive and SharePoint library the member can open (including files shared with them and Teams files) when the connection has the all-files permission; otherwise only the member's own OneDrive, as scope reports. Results carry driveId and id for reading, pulling or saving. Read-only. Pass nextPageToken as pageToken for the next page; hasMore with a null token means the list is partial.
Request
- Base URLhttps://api.openworklabs.com
- Auth
- API key in header x-api-key
- or HTTP bearer
Query parameters
Text to search in file names and content.
Maximum files to return, capped at 25.
nextPageToken from the previous page of the same list
Response
Files returned.
all: every OneDrive and SharePoint file the member can open; myDrive: only their own OneDrive, because the connection lacks the all-files permission.
Changes
- breaking
for the
queryrequest parameterpageToken, the minLength was increased from0to1 - warning
for the
queryrequest parameterpageToken, the maxLength was set to4096 - info
removed the pattern
^\d{1,6}$from thequeryrequest parameterpageToken
2 more changes in this revision
- breaking