Skip to main content
PATCH
Error

Authorizations

Authorization
string
header
required

A staff session token, uk_st_…. Minted by sign-up, sign-in or the two-factor exchange. Only a 401 means it is spent; not_a_member (403) is about the organization named in X-Organization-Id and leaves the token good for the others.

Headers

X-Organization-Id
string

The organization the caller is acting on — the org_… code that appears in the panel URL. It identifies; the membership JOIN is what authorizes, so a forged code reads nothing: the answer is not_a_member (403), which does not mean the session is over. Absent, the session's default organization answers, or — if that membership was revoked while the session was open — any other one the caller still holds.

Path Parameters

id
string<uuid>
required

Body

application/json
name
string
Maximum string length: 200
trigger_kind
enum<string>
Available options:
one_shot,
event,
segment_entered,
date_offset
event_type
string
date_attribute
enum<string>
Available options:
created_at,
first_seen_at,
identified_at,
email_verified_at,
last_seen_at
date_offset_days
integer
Required range: 0 <= x <= 365
segment_id
string<uuid>
frequency_cap_days
integer
Required range: 0 <= x <= 365
steps
object[]
Required array length: 1 - 10 elements

Response

The campaign.

campaign
object

An audience, a trigger, a sequence and a cap. Per environment, like everything on the customer plane.