Tag note
Add or remove a tag on a bullet.
POST https://cotlet.dev/api/v1/remnote/notes/{note_id}/tag
write
Adds a tag to a bullet, or removes it when remove is true. The tag has to exist in your knowledge base already; the call fails with the tag name instead of creating a new one. It changes only your own notes and is undone by calling it again with remove set the other way, so it does not ask first.
Parameters
| Name | Type | Description |
|---|---|---|
| note_id string required | string | Bullet ID from search_notes or get_document. |
| tag string required | string | Existing tag name, without ##. |
| remove boolean | boolean | true removes the tag. Default: false. |
Request
curl -X POST https://cotlet.dev/api/v1/remnote/notes/note_8c41d2/tag \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tag":"tag"}' result = client.call("remnote", "tag_note", {"note_id":"note_8c41d2","tag":"tag"}) const result = await cotlet.call('remnote', 'tag_note', {"note_id":"note_8c41d2","tag":"tag"}); cotlet call remnote tag_note --data '{"note_id":"note_8c41d2","tag":"tag"}' Example response
{
"document_id": "rem_91ab02",
"tag": "ToRead",
"status": "tagged"
}