Permify provide it’s own authorization language to model common patterns of easily. We called the authorization model Permify Schema and it can be created on our playground as well as in any IDE or text editor. We also have a VS Code extension to ease modeling Permify Schema with code snippets and syntax highlights. Note that on VS code the file with extension is “.perm”. Permify Schema needed to be send to API endpoint /v1/tenants//schemas/write for configuration of your authorization model on Permify API.Documentation Index
Fetch the complete documentation index at: https://proxy-docs.permify.co/llms.txt
Use this file to discover all available pages before exploring further.
/v1/tenants/{tenant_id}/schemas/write
See the following FAQ page to refer to the suggested workflow for: Managing Schema Changes.Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant t1 for this field. Required, and must match the pattern \“[a-zA-Z0-9-,]+\“, max 64 bytes.
SchemaWriteRequest is the request message for the Write method in the Schema service. It contains tenant_id and the schema to be written.
schema is the string representation of the schema to be written.
A successful response.
SchemaWriteResponse is the response message for the Write method in the Schema service. It returns the version of the written schema.
schema_version is the string that identifies the version of the written schema.