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 |
Example
curl -X POST 'https://brain.unisonlabs.ai/v1/brain/doc/tag' \
-H "Authorization: Bearer $UNISON_TOKEN" \
-H 'content-type: application/json' \
-d '{"path": "..."}'Returns the JSON described above on success, or an error envelope { "error": { "code", "message" } } on failure.