Add tags
Add tags to one or more items.
POST https://cotlet.dev/api/v1/zotero/tags
write
Adds the tags to each item and keeps the tags it already has. It reaches nobody and runs without asking first; removing a tag is a click on the minus button next to it in Zotero.
Parameters
| Name | Type | Description |
|---|---|---|
| item_keys string[] required | string[] | Items to tag. |
| tags string[] required | string[] | Tags to add. |
Request
curl -X POST https://cotlet.dev/api/v1/zotero/tags \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"item_keys":["item keys"],"tags":["tags"]}' result = client.call("zotero", "add_tags", {"item_keys":["item keys"],"tags":["tags"]}) const result = await cotlet.call('zotero', 'add_tags', {"item_keys":["item keys"],"tags":["tags"]}); cotlet call zotero add_tags --data '{"item_keys":["item keys"],"tags":["tags"]}' Example response
{
"updated": [
"H6R2VB5D",
"N9Q4XA7E"
],
"tags_added": [
"transformers",
"to read"
]
}