--name, and returns the new tag’s ID. Use the ID in subsequent tag attach calls when you want to attach the same tag to many channels or events without rediscovering it by name.
Tag names are unique per workspace, matched case-insensitively after trimming. Running tag create with a name that already exists returns that existing tag, so the command is safe to re-run in a script.
Synopsis
Options
Examples
1. Create a single tag
2. Capture the ID for the rest of the script
3. Bulk-create from a list
id\tname pair. Re-running the loop returns the same IDs. Pair it with tee tag-ids.txt to keep the mapping for later attach steps.
Response
id when scripting many attaches.
See also
tag attach. Attach the new tag to a channel or event.- Tags. When and why to use tags in Path.
path channel list. Find channel IDs to attach the tag to.
