Merge tags into one on all the user's items
Like renameTag for several tags at once: each of tags becomes into. into may be one of tags
(it is left alone). An API key needs write access to items.
bearerAuthorizationBearer <token>A personal API key (ga_…), sent as Authorization: Bearer ga_…. A key gets 403 on a resource it has no access to, and on anything that changes data without write access.
application/json- body
tags*array<>1 <= items <= 50into*stringlength <= 64Done. items is how many of the user's items changed.
application/json- response
items*integer0 <= valuecurl -X POST 'https://example.com/v1/tags/merge' \ -H 'Content-Type: application/json' \ -d '{ "tags": [ "string" ], "into": "string"}'{ "items": 0}Rename a tag on all the user's items POST
Every item of the user that has `tag` (its own tag or an AI tag; archived items too, deleted ones not) gets `to` instead. Renaming to a tag that already exists merges the two: an item with both keeps one, in the earlier place. Tags are compared after lowercasing and folding white space. Each changed item sends an `item.updated` webhook. An API key needs write access to `items`.
Delete tags from all the user's items POST
Removes the tags from the user's items (own and AI tags; archived items too) and dismisses them on those items, so tagging them again does not suggest them back. Allowed while the library is read-only over its plan's limits. Smart Spaces and rules that name a deleted or renamed tag are not changed. An API key needs write access to `items`.