/v1/workspace/drive-watchesList Drive watches
Every Google Drive and OneDrive folder this workspace watches (provider google_drive or onedrive), with where each one lands its new files (a pack page row, a board row, or the workspace document library), when it was last swept, how many documents that sweep landed and how many it has landed in total. Also answers the closed lists of target and provider words and whether a sweep can actually run on this deployment, overall and per provider. Admin only. Reach for it before adding a watch, to see whether the folder is already watched.
Access class: workspace:admin.
Send request
Use the documented inputs to call this endpoint directly.
Responses
the action's answer
{
"data": {
"providers": [
"string"
],
"reachable": true,
"reachableBy": {
"google_drive": true,
"onedrive": true
},
"targets": [
"string"
],
"watches": [
"string"
]
}
}a refusal: {"error": "<what a person needs to read>"}. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.
{
"error": "string"
}