Skip to content

Get a folder rule run

How far a pass of the folder’s rules over the library has got, and whether it can still be undone.

GET/v1/folders/{folderId}/rule-runs/{runId}
Authorization
AuthorizationBearer token (OAuth access token or teakapi_ API key) · headerrequired

Bearer token. Accepts either an OAuth 2.0 access token (obtained via browser sign-in; expires after 1 hour and is refreshable) or a teakapi_ API key.

Path parameters
folderIdstringrequired
runIdstringrequired
Responses
200

Rule run

idstringrequired
folderIdstringrequired
statusstringrequired
Allowed:runningdoneundoingundonesuperseded
filedCountnumberrequired

Cards the run filed into the folder.

taggedCountnumberrequired

Cards the run added tags to.

canUndobooleanrequired
createdAtnumberrequired
completedAtnumber | nullrequired
404

Folder or rule run not found

Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://teakvault.com/api/v1/folders/string/rule-runs/string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "id": "string",
  "folderId": "string",
  "status": "running",
  "filedCount": 0,
  "taggedCount": 0,
  "canUndo": true,
  "createdAt": 0,
  "completedAt": 0
}

Was this page helpful?