Rename, recolor or change the rules of a folder
Saving new auto-tags, or a new or resumed auto-file search, starts a rule run over the cards already in the library; the response’s ruleRunId names it.
/v1/folders/{folderId}AuthorizationBearer token (OAuth access token or teakapi_ API key) · headerrequiredBearer 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.
folderIdstringrequiredapplication/jsonnamestring1 to 300 characters, unique per account ignoring case.
colorstring | nullA palette color, or null to clear it.
grayredorangeambergreentealbluevioletpinknullquerystringA smart folder's new search (at most 500 characters). Manual folders have none.
autoTagsstring[]Tags every card that joins this manual folder gets, at most 10. An empty array clears them. Up to 50 folders per account can have rules.
autoFileQuerystring | nullA search, with the qualifiers q accepts except like: and mood:, that files matching cards into this manual folder; at most 500 characters, or null to clear it.
autoFileEnabledbooleanFalse pauses the auto-file search without clearing it.
Folder updated
idstringrequirednamestringrequiredcolorstring | nullrequiredgrayredorangeambergreentealbluevioletpinknullkindstringrequiredmanual folders hold the cards put in them; smart folders show the cards that match their query when listed.
manualsmartquerystring | nullrequiredA smart folder's search (the same grammar as q), written the canonical way; null for a manual folder.
cardCountnumber | nullrequiredCards in a manual folder that are not archived or in Trash; null for a smart folder, whose cards are found when listed.
rulesFolderRules | nullrequiredA manual folder's rules; null for a smart folder.
Show propertiesHide properties
autoTagsstring[]requiredTags every card that joins the folder gets, however it joins. They stay when the card leaves.
autoFileobject | nullrequiredA search that files matching cards into the folder once their AI tags are written; null when the folder has none.
Show propertiesHide properties
querystringrequiredenabledbooleanrequirednullnullruleRunIdstring | nullrequiredThe folder's latest rule run, which saving its rules starts. Follow it with getFolderRuleRun.
createdAtnumberrequiredupdatedAtnumberrequiredFolder not found
A folder with this name exists (CONFLICT) or the account has rules on the most folders it can (RULE_LIMIT)