Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Permify/permify/llms.txt
Use this file to discover all available pages before exploring further.
POST /v1/tenants/{tenant_id}/schemas/write
The Write Schema endpoint accepts a Permify schema string and stores it as a new versioned schema for the tenant. Each successful write produces a unique schema_version that can be referenced in subsequent read, check, and data-write requests.
Path Parameters
The tenant identifier. Use
t1 for single-tenant deployments. Must match ^([a-zA-Z0-9_\-@\.:+]{1,128}|\*)$.Request Body
The full authorization schema written in Permify DSL. Entities, relations, attributes, and actions are all defined here.
Response
The version identifier for the newly written schema. Use this value in
metadata.schema_version on subsequent requests to pin them to this schema version.Example
Error Codes
| HTTP Status | Description |
|---|---|
400 | Bad request — schema parse error or missing fields |
401 | Unauthorized |
404 | Tenant not found |
429 | Rate limit exceeded |
500 | Internal server error |