Skip to main content
PATCH
/
v1
/
groups
/
{id}
/
state
/
attributes
Update group attributes
curl --request PATCH \
  --url https://api.scrip.dev/v1/groups/{id}/state/attributes \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "attributes": {
    "plan": "premium",
    "region": "us-east"
  }
}
'
{
  "attributes": {
    "plan": "premium",
    "region": "us-east"
  }
}
Merges a set of key-value attributes onto a group. Existing keys included in the request are overwritten with the new values. New keys are added. Keys not mentioned in the request body are left unchanged. This is a partial update. To remove an attribute entirely, use the remove attribute endpoint. Attribute values are strings. They are available in rule conditions via CEL.
For usage patterns and examples, see the State Management guide.

Authorizations

X-API-Key
string
header
required

API key passed in the X-API-Key header.

Path Parameters

id
string<uuid>
required

Group ID

Body

application/json

Attributes to merge

attributes
object
required

Key-value pairs to merge into existing attributes

Example:
{ "plan": "premium", "region": "us-east" }

Response

Merged attributes

attributes
object

Key-value attributes

Example:
{ "plan": "premium", "region": "us-east" }