--tag-id to attach an existing tag, or pass --name to attach an existing tag by name (and create one with that name if none exists). At least one of the two flags is required. If you pass both --tag-id and --name, pass only the one you want; supplying both has no defined precedence.
Synopsis
Arguments
| Argument | Type | Description |
|---|---|---|
<sourceId> | integer | Channel ID or event ID to attach the tag to. TalkValue detects whether the ID is a channel or an event automatically. |
Options
| Flag | Type | Description |
|---|---|---|
--tag-id <id> | integer | Attach an existing tag by ID. Find IDs with tag list or capture them when you tag create. |
--name <name> | string | Attach by name. If no tag with that name exists, TalkValue creates one and attaches it in the same request. |
Examples
1. Attach an existing tag by ID
42 to channel (or event) 7. The response prints the tag as confirmation the write succeeded.
2. Create-or-attach by name
3. Bulk-attach the same tag to many channels
Response
channel get or event get) updates immediately and includes this tag on subsequent reads.
See also
tag create. Create a tag first when you want a known ID before the attach.- Tags. How tags roll up to analytics and dashboard filters.
path channel getandpath event get. Re-read the source to confirm the tag landed.
