UtilitayDevelopers
Get an API key
API reference

Segments

/groups

A segment is who a group-scoped event is about. A static segment keeps a list you add to; a dynamic segment holds whoever's attributes contain its filter, so nobody keeps it up. Beside the segments somebody keeps are temporary lists, picked by a person for one send: you can see them, but a key cannot change one and an event cannot name one. In the Subscription business pack a segment is, for example, “Annual plans”.

POSTAdd to a segment

Requires groups:write. Up to 500 subscriptions or customers — the segment's own kind — in one call. Somebody already in it is not an error, so a sync can send its whole list every time. One id this instance has no record of, or one member of staff, refuses the lot before anything is written.

Path parameters
group_iduuid · required
The segment id.
Body parameters
member_idsuuid[] · required · max 500
Raven's ids for the subscriptions or customers. Each is added once however often it is sent.
Returns

200 with added: how many were new. 400 on a dynamic segment, which keeps no list, or for an unknown id or a member of staff, named. 409 on a temporary list.

Response body

One result: the same fields in every pack. Press Response on the sample to see one whole.

FieldTypeDescription
addedintegerHow many of the ids were new to the group. Somebody already in it is not counted and not an error.

On failure the body is { error, code } instead.