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

Parameters: add_tags
NameTypeDescription
item_keys string[] required string[] Items to tag.
tags string[] required string[] Tags to add.

Request

cURL
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"]}'
Python
result = client.call("zotero", "add_tags", {"item_keys":["item keys"],"tags":["tags"]})
Node.js
const result = await cotlet.call('zotero', 'add_tags', {"item_keys":["item keys"],"tags":["tags"]});
CLI
cotlet call zotero add_tags --data '{"item_keys":["item keys"],"tags":["tags"]}'

Example response

JSON

{
  "updated": [
    "H6R2VB5D",
    "N9Q4XA7E"
  ],
  "tags_added": [
    "transformers",
    "to read"
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.