Documentation Index
Fetch the complete documentation index at: https://docs.gu1.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Updates an existing entityβs attributes and data. This endpoint automatically triggers a re-evaluation of the entityβs risk score and emits real-time update events.Endpoint
Authentication
Requires a valid API key in the Authorization header:Path Parameters
The gu1 ID of the entity to update
Request Body
All fields from the create schema are available excepttype (entity type cannot be changed). All fields are optional - only include the fields you want to update.
Update the entityβs display name
External ID cannot be updated with this endpoint. Use Change external ID (
POST /entities/change-external-id) with a mandatory reason (min. 5 characters).Update tax identification number
Update root-level contact email. Omit to leave unchanged;
null clears.Update root-level contact phone. Omit to leave unchanged;
null clears.Root nationality (ISO 3166-1 alpha-2 when stored). Omit to leave unchanged;
null clears. Updating entityData person/company nationality may refresh the root field when sent together.Update ISO 3166-1 alpha-2 country code
Update custom attributes (merges with existing attributes)
Update type-specific data (merges with existing entityData)
Response
The updated entity object with all current values
Newly created evaluation triggered by the update
id- Evaluation IDentityId- Entity IDdecision- βPENDINGβ (awaiting processing)evaluationType- βSYSTEMβreasons- Array with βRe-evaluation triggered by attribute changeβ
The entity state before the update (for audit/comparison)
Behavior
When you update an entity, the system automatically:- Records the change in the entity events log with a before/after snapshot
- Triggers re-evaluation to recalculate risk score based on new data
- Emits real-time event to notify connected clients of the update
- Maintains audit trail for compliance and review purposes
Examples
Update Person Income
Update Company Information
Update Custom Attributes Only
Update Transaction Status
Response Example
Error Responses
404 Not Found
400 Bad Request - Invalid Data
401 Unauthorized
500 Internal Server Error
Use Cases
Update After KYC Verification
Progressive Profile Enrichment
Transaction Resolution
Best Practices
- Partial Updates: Only send the fields you want to change - no need to send the entire entity
- Monitor Re-evaluations: Check the returned evaluation ID to track risk score recalculation
- Audit Trail: Use the
previousEntityin the response to maintain change history - Real-time Sync: Updates emit WebSocket events for real-time UI synchronization
- Idempotency: Safe to retry - updates with same data will not create duplicate events
Next Steps
- Get Entity - View updated entity details
- List Entities - Query entities with filters
- Upsert Entity - Create or update in one operation
- Request AI Analysis - Get updated risk assessment