Update entity attributes
API Reference
Update entity attributes
Update only custom attributes on an entity β merge new keys or replace the full attributes map. Triggers entity_updated risk matrices when configured.
PATCH
Update entity attributes
Overview
Updates onlyattributes on an entity without touching other profile fields. Supports two modes:
| Mode | Behavior |
|---|---|
merge (default) | Shallow merge: sent keys overwrite or create values; keys not sent are kept |
replace | Full replace: the body attributes object becomes the entire map ({} clears all) |
Merge is shallow at the top level: sending a category object (e.g.
contact) overwrites that whole category. Inner keys not included are dropped. Use replace for a full rewrite.entity_updated trigger, rules run after a successful patch (respecting skipRulesExecution and matrix watchFields). Webhook entity.updated is emitted with changes.attributes.
Endpoint
Authentication
Requiresentities:edit (legacy fallback: entities:write).
Path Parameters
UUID of the entity.
Request Body
Attribute map. Stored verbatim: scalar/array values at the root are uncategorized; nested objects act as categories.
merge β additive patch (default). replace β full overwrite.When
true, skips risk matrix execution after the update.Response
| Field | Type | Description |
|---|---|---|
data.entityId | string | Entity UUID |
data.mode | string | merge or replace applied |
data.attributes | object | Final attributes after the patch |
data.updatedAt | string | ISO 8601 timestamp |
data.rulesExecutionSummary | object | Risk matrix run summary (when applicable) |
Examples
Merge (default)
Full replace
attributes are removed.
Errors
| HTTP | Code | When |
|---|---|---|
| 404 | ENTITY_NOT_FOUND | Entity missing or wrong org |
| 400 | validation | Invalid body (e.g. attributes not an object) |