Reference / Sinks

Change a sink

update_sinkocmgr sink updatePATCH /v1/sinks/{id}ADMIN

Rename a sink, change who it is about, narrow what travels, or switch it on and off. Every list is replaced whole rather than merged — a half-merged audience is how somebody ends up writing their whole community into a CRM that was meant to hold customers. Switching one on is refused until it has verified, which is the only place the two are coupled and the one that matters.

Parameters

sinkstringup to 200 charsREQUIRED

The sink, by id or by name, as list_sinks reports them. A name two sinks share is refused; use the id.

namestring

Rename it.

topics"member.created" | "member.updated" | "member.merged" | "member.split" | "member.redacted" | "organisation.created" | "organisation.updated" | "organisation.dissolved" | "activity.created" | "segment.member_entered" | "segment.member_left"[]

Replace the topic list whole; it is never merged.

filterobject

Replace the audience whole; it is never merged.

segmentIdstring (uuid)

Alias for segment_id, matching the read response. Supply only one spelling.

segment_idstring (uuid)

Only members of this segment. A CRM usually wants customers and champions. Refused on an organisation sink: a segment is a list of people, and a company is not in one.

filterany

A saved-filter tree for an audience nobody has made a segment of, in the language of the mapping’s subject: the member vocabulary (ADR 0025), as segments.definition holds one, or the organisation one — {"field":"organisation.members","op":"gte","value":3} is "accounts with three or more people in this community", over organisation.search, organisation.corporate, organisation.key, organisation.members, organisation.activity_90d, organisation.kind, organisation.domain, organisation.tags, organisation.first_seen and organisation.last_seen. Give this or segment_id, never both.

fieldsstring[]

Replace the allowed property list whole.

configobject

Analytics settings; replaces the whole configuration. Defaults include verified_email, missing_key skip, titles/groups/segment_events off.

include_titlesbooleandefault false
enabledboolean

Switching one on is refused until it has verified. That is the only place the two are coupled, and it is the one that matters: without the key property every delivery creates a new record.

CLI flags

--config <json>

Replace analytics sink settings

--name <name>

Rename it

--topics <list>

Replace the topic list whole; at least one

--segment <id>

Replace the audience with this segment

--filter <json>

Replace the audience with this saved filter

--fields <list>

Replace the allowed properties (empty string means all of them)

--enable

Switch it on (refused until it has verified)

--disable

Switch it off

Also in Sinks