PATCH /v1/tenants/{tenant_id}/schemas/partial-write
The Partial Write endpoint lets you add, update, or remove individual entities and their relations/permissions without rewriting your entire schema. This is useful for incremental schema evolution — for example, adding a new permission to an existing entity type or introducing a new entity.
Use Write Schema to create or fully replace a schema. Use Partial Write to make targeted updates to an existing schema version.
Path Parameters
The tenant identifier. Use
t1 for single-tenant deployments. Must match ^([a-zA-Z0-9_\-@\.:+]{1,128}|\*)$.Request Body
A map of entity type names to partial update instructions. Each key is an entity type name (e.g.
document, organization). The value describes the additions and removals for that entity.Response
The version identifier of the updated schema. Store this and pass it as
snap_token context in subsequent requests to read from this exact schema version.Example
Add a newshare permission to an existing document entity without replacing the full schema:
Response
Notes
Partial Write creates a new schema version — it does not modify an existing version in place. The previous version remains accessible and can still be referenced by its version identifier.