Skip to main content
PATCH
Update a participant
Updates a participant’s status, profile, tags, attributes, or counters. Omitted fields stay unchanged. To update profile fields, tags, or attributes on a CLOSED participant, include status: "ACTIVE" or status: "SUSPENDED" in the same request (updating counters requires ACTIVE). Otherwise, send only status and force; other fields return 409 participant_inactive. Suspending or closing a group’s sole active ADMIN returns 409 last_admin_status_change_forbidden. Sending force: true allows the status change and ends that participant’s ADMIN membership in each affected group.
See Participants for status changes and State management for tags, attributes, and counters.

Authorizations

Authorization
string
header
default:sk_...
required

Send your API key as Authorization: Bearer <key>.

Headers

Idempotency-Key
string

Unique key (1-255 printable ASCII characters) to make retries safe. Repeating the same request with the same key within 24 hours replays the original response (Idempotent-Replayed: true).

Maximum string length: 255

Path Parameters

participant_id
string
required

The participant's id, or ext: followed by the participant's external_id.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}|ext:.{1,255})$

Body

application/json

Participant updates

Changes a participant's profile, status, tags, attributes or counters. Send only the fields to change. For a CLOSED participant, send only status and force, unless status reactivates it in the same request.

attributes
object

Merge patch of attributes (null removes a key; omit to leave unchanged).

Example:
counters
object

Counter updates ({"increment": n}, {"set": n}, {"reset_after": "720h"}, or null to remove; requires an ACTIVE participant).

Example:
display_name
string

Display name. Empty string clears the value

Maximum string length: 255
Example:

"Jane Doe"

email
string

Contact email. Empty string clears the value

Maximum string length: 255
Example:

"jane@example.com"

first_name
string

First name. Empty string clears the value

Maximum string length: 255
Example:

"Jane"

force
boolean

When true, suspending or closing the sole active ADMIN of a group proceeds and ends that participant's ADMIN membership in each such group; otherwise the request returns 409 last_admin_status_change_forbidden.

Example:

false

last_name
string

Last name. Empty string clears the value

Maximum string length: 255
Example:

"Doe"

phone
string

Contact phone. Empty string clears the value

Maximum string length: 50
Example:

"+15551234567"

status
enum<string>

Lifecycle state

Available options:
ACTIVE,
SUSPENDED,
CLOSED
Example:

"SUSPENDED"

tags
string[]

Replacement tag set ([] clears all tags; omit to leave unchanged).

Example:

Response

Participant updated

A participant with their attributes, counters, tags, program memberships, tiers and balances.

attributes
object

Key-value metadata. Rules read each key as participant.attribute.<key>, which is null if unset, or with get(participant.attributes, "key", ""). An empty object when the participant has none.

Example:
balances
object[]

Current balances per asset, split by bucket

counter_settings
object

Auto-reset settings for the counters that have one, keyed by counter key. An empty object when no counter resets. Set them with reset_after on a counter in PATCH.

counters
object

Numeric accumulators, returned as strings for precision. An empty object when the participant has none.

Example:
created_at
string<date-time>

When the participant was created

Example:

"2027-01-15T10:30:00Z"

display_name
string

The name to show for the participant.

Example:

"Jane Doe"

email
string

Contact email

Example:

"jane@example.com"

enrollments
object[]

The participant's programs with the time each enrollment began, oldest first, in the same order as program_ids. Returned with the programs section; absent when the participant has no enrollments.

external_id
string

Your application's identifier for this participant

Example:

"user_123"

first_name
string

The participant's first name.

Example:

"Jane"

id
string<uuid>

The id of the participant. Use it in participant_id fields and paths.

Example:

"f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"

last_active_at
string<date-time> | null

When the participant was last active from a processed event or balance change (RFC 3339; null when never active).

Example:

"2027-01-15T10:30:00Z"

last_name
string

The participant's last name.

Example:

"Doe"

phone
string

Contact phone

Example:

"+15551234567"

program_ids
string[]

Programs this participant is enrolled in

Example:
status
enum<string>

The participant's lifecycle state.

Available options:
ACTIVE,
SUSPENDED,
CLOSED
Example:

"ACTIVE"

tag_details
object[]

The participant's tags with how apps show them, in tag order. Returned with expand[]=tag_details; an empty list when the participant has no tags.

tags
string[]

Labels for segmentation. Rules read a tag as participant.tag.<name> (true or false) or 'name' in participant.tags. An empty list when the participant has none.

Example:
tiers
object

Current tier level per tier type

Example:
updated_at
string<date-time>

When the participant was last modified

Example:

"2027-01-15T10:30:00Z"