Skip to main content
PATCH
Update a group
Updates a group’s name, status, tags, attributes, or counters; omitted fields stay unchanged. tags replaces the full list, and attributes is a merge patch (sending a key as null removes it). Each entry in counters takes {"set": "<value>"}, {"increment": "<value>"}, or null to remove the counter, with an optional reset_after or reset_period. Set status to ARCHIVED to archive a group, or back to ACTIVE to restore it. An archived group accepts no other change until it is restored. A request that restores it can change the other fields at the same time.
For usage patterns and examples, see the Groups guide.

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

group_id
string<uuid>
required

The group's id.

Body

application/json

Fields to update

Changes a group's name, status, tags, attributes or counters. Send at least one field.

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).

Example:
name
string

New display name for the group (1-255 chars)

Required string length: 1 - 255
Example:

"Updated Team Name"

status
enum<string>

Set to ARCHIVED to archive the group, or back to ACTIVE to restore it.

Available options:
ACTIVE,
ARCHIVED
Example:

"ARCHIVED"

tags
string[]

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

Example:

Response

Updated group

A group with its tags, attributes, counters and counter settings. Read balances from the balances endpoint.

attributes
object

Key-value metadata. An empty object when the group has none.

Example:
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 group has none.

Example:
created_at
string<date-time>

When this group was created

Example:

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

deleted_at
string<date-time>

When the group was archived (present only if archived)

Example:

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

id
string<uuid>

Unique identifier for this group

Example:

"0b9e7d3c-5a41-4f68-a2c7-81e4d6b3f907"

ledger_entity_id
string<uuid>

The id of the group's wallet. Send it as redemption_target_entity_id on a program to post redeemed value to this group's wallet. It is not the group's id.

Example:

"5e7a9c13-2d4f-4b68-9a0c-e1b3d5f7a920"

name
string

The name people see for the group.

Example:

"Sales Team"

status
enum<string>

The group's lifecycle state.

Available options:
ACTIVE,
ARCHIVED
Example:

"ACTIVE"

tags
string[]

Labels for segmentation. An empty list when the group has none.

Example:
updated_at
string<date-time>

When this group was last updated

Example:

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