Skip to content

Undo a folder rule run

Takes the folder off the cards the run filed and the tags off the cards it tagged, where they are still there. The rules stay, and never put those cards or tags back.

POST/v1/folders/{folderId}/rule-runs/{runId}/undo
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

The run, now undoing

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

409

The run is more than a day old

Try it
Server
Authorization
Parameters
Request
curl -X POST 'https://teakvault.com/api/v1/folders/string/rule-runs/string/undo' \
  -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?