AlmondTill/G3N API

Segment

object type

A Segment: a merchant-authored consumer grouping for marketing. segmentType is immutable at birth — static (explicit membership: batched adds/removes of ≤48 consumers per call, the one-transaction law; the pair key dedupes structurally) or dynamic (membership derived from the stored predicate — the member ops refuse; edit the predicate/exclusions and call refreshSegment to re-materialize; evaluatedAt shows the staleness honestly, refreshProblem words a queued refresh that could not complete, and a scheduled sweep re-refreshes stale active dynamics ~daily). memberCount meters live membership (bounded ≤100000 — the add/refresh refuses past it naming the figure). Marketing-only-over-consented is the consuming lane's law when campaigns/exports arrive — the definition stores membership only. NOT searchable (a membership register); inactive = staging (membership edits stay legal while building).

Fields

FieldTypeNotes
idID ID!The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it.
sysIdString String!The human-readable id, shaped like SE-… — stable for the record’s life.
typeString String!The kind of record — always Segment here.
captionString String!The record’s display name — what people see it called.
statusString String!The record’s current state — one of active, inactive or doomed.
parentIdID ID!The parent org group; for a Segment parentId === rootId.
rootIdID ID!The id of your organization group — every record of yours carries the same one.
createdAtString String!When the record was created, as a UTC timestamp.
updatedAtString String!When the record last changed, as a UTC timestamp.
revisionNumInt Int!How many times this record has been edited; the first save is 0.
revisionID ID!The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten.
refCaptionsRefCaption [RefCaption!]!The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption.
segmentTypeSegmentType SegmentType!static | dynamic — immutable at birth (a different kind is a NEW segment).
memberCountIntThe live membership meter (the counter twin of the member rows); absent = never added.
predicateSegmentPredicateThe dynamic rule (dynamic-only; AND across supplied axes, OR within one) — membership re-materializes at refreshSegment.
excludedConsumerIdsID [ID!]Manual exclusions (dynamic-only; at most 256, unique, write-time-validated Consumer refs) — subtracted after matching at every refresh.
evaluatedAtStringThe last refresh instant (dynamic-only; absent = never refreshed — honest staleness).
refreshProblemStringThe async lane’s honest-failure word: why the last queued refresh could not complete (figures named); cleared by any successful refresh; absent = clean.

Used by