Skip to content

Tags Attach ​

lindris tags attach

Attach a tag to one or more subscribers

Synopsis ​

POST /api/tags/{id}/subscribers — attach the tag to the given subscriber IDs. Subscribers already carrying the tag are silently skipped.

Subscriber IDs come from --subscriber (repeated or comma-separated) or, when no --subscriber flag is given, from stdin (whitespace- or comma-separated). Duplicate IDs are collapsed; a zero or negative ID is rejected before any request.

The response carries the API's own count and 'failed' list. Treat the count as IDs the API accepted rather than IDs it verified: an unknown subscriber ID is currently counted as attached and does not show up in 'failed'. Confirm with 'lindris tags subscribers <id>'.

The API accepts at most 100 IDs per call, so larger inputs are split into batches automatically and reported as one merged result. If a later batch fails, the IDs already attached are reported alongside the error.

bash
lindris tags attach <id> --subscriber=<sub-id>... [flags]

Examples ​

bash
$ lindris tags attach 1 --subscriber=101 --subscriber=102
$ lindris tags attach 1 --subscriber=101,102,103
$ echo "101 102 103" | lindris tags attach 1

Options ​

  • --subscriber strings - Subscriber ID to attach (repeated or comma-separated; or pipe IDs on stdin)

See Also ​