Brain

PUT /v1/brain/doc

Create or overwrite a brain .md document (SDK/CLI; agent uses a Bash heredoc).

unison-brain
PUT /v1/brain/doc

Create or overwrite a brain .md document (SDK/CLI; agent uses a Bash heredoc).

Required scope: brain:write

Body fields

NameRequiredNotes
pathyes
bodyMdno
kindno
titleno

Example

curl -X PUT 'https://brain.unisonlabs.ai/v1/brain/doc' \
  -H "Authorization: Bearer $UNISON_TOKEN" \
  -H 'content-type: application/json' \
  -d '{"path": "...", "bodyMd": "...", "kind": "..."}'

Returns the JSON described above on success, or an error envelope { "error": { "code", "message" } } on failure.