Brain
POST /v1/brain/doc/tag
Set/replace a document's frontmatter tags (SDK/CLI; agent uses `sed`).
POST /v1/brain/doc/tagSet/replace a document's frontmatter tags (SDK/CLI; agent uses sed).
Required scope: brain:write
Body fields
| Name | Required | Notes |
|---|---|---|
path | yes | |
add | no | Tags to add. |
remove | no | Tags to remove. |
Example
curl -X POST 'https://brain.unisonlabs.ai/v1/brain/doc/tag' \
-H "Authorization: Bearer $UNISON_TOKEN" \
-H 'content-type: application/json' \
-d '{"path": "/private/notes/kickoff.md", "add": ["decision"], "remove": ["draft"]}'Returns the JSON described above on success, or an error envelope { "error": { "code", "message" } } on failure.