Reference / Tags and custom fields

Tag or untag many members

tag_membersocmgr tags bulkPOST /v1/tags/{id}/membersWRITE

Put one tag on up to 10,000 selected people at once, or take it off them with remove: true — tag_member and untag_member for a set, in one transaction. Every member named gets an audit row, the ones the call did not change included, so a bulk action somebody regrets can be read back exactly. Select by member_ids, filter (the export/search filters), or all:true. Selections above 10,000 are refused before any change. dry_run reports the real selection and rolls back every write. A tag is an opinion, not evidence: it never causes two accounts to be joined. No idempotency_key is needed: repeated tag assignments are already idempotent and emit no duplicate transition; key workflow completion on eventId.

Parameters

member_idsstring (uuid)[]up to 10000
filterobject

Select all search matches, up to 10,000. Defaults to community only.

has_notesboolean
querystring

Free text over name, handle, company and email.

source"self" | "github" | "slack" | "discourse" | "vanilla" | "bevy" | "gainsight-cc" | "gradual" | "bettermode" | "circle" | "flarum" | "verint" | "dev" | "stackoverflow" | "meetup" | "luma" | "discord" | "generic" | "csv" | "enrichment"

Only members with an identity on this source.

connectionstring (uuid)

Only members with an account on this connection.

companystring

Only members whose golden record names this company.

contributed_sincestring (date-time)

An activity initiated since this instant; excludes reactions, joins, presence and profile updates.

seen_sincestring (date-time)

Latest identity last_seen at or after this instant: profile observation and activity timestamps (including reactions/joins); excludes presence. Use contact.last_visited or list_presence for visits.

teamboolean | "all"

Defaults to false (community only). true selects staff only; "all" includes everyone.

tagsstring[]

Only members carrying one of these tags.

organisationstring

Only members in this organisation, by key or id.

segmentstring

Only the people in this segment now, by id or by name: the set its memberCount counts.

filterobject

A filter tree in the segment language, compiled by the same compiler preview_segment uses. An invalid tree is refused as USAGE naming the path.

show_snoozedboolean

With segment, include members whose snoozed_until is in the future. False by default.

segment_statusstring

With segment: only the people whose status in that segment is this key — the same narrowing search_members takes, so an export is what the table showed. Refused as USAGE without segment.

allboolean

Select the whole community, at most 10,000 people.

dry_runboolean

Return the real selection and changes, then roll back every write.

tagstringREQUIRED

A tag, by name (case-insensitively) or by id. Names are what people use.

removeboolean

CLI flags

--filter <json>

Select all matching members, up to 10,000; see segments fields

--query <text>

Select by name, handle, email or company

--source <kind>

Select members with an account on this source kind

--connection <id>

Select members with an account on this connection

--company <name>

Select by profile company

--tag <name...>

Select members carrying these tags

--organisation <key>

Select by organisation key or ID

--segment <id-or-name>

Select the people in this segment

--seen-since <date>

Select by last seen date

--contributed-since <date>

Select by activity date

--teamdefault

Include staff in a filter selection

--no-team

Exclude staff (the default)

--only-team

Select staff only

--all

Select the whole community, up to 10,000

--remove

Take the tag off rather than putting it on

Also in Tags and custom fields