If you’re planning to test Permify manually, maybe with an API Design platform such as Postman, Insomnia, etc; we’re suggesting using our playground to create model. Because Permify Schema needs to be configured (send to API) in Permify API in a string format. Therefore, created model should be converted to string.Although, it could easily be done programmatically, it could be little challenging to do it manually. To help on that, we have a button on the playground to copy created model to the clipboard as a string, so you get your model in string format easily.

Example Request on Postman
POST/v1/tenants/{tenant_id}/schemas/write

Path Parameters
Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \“[a-zA-Z0-9-,]+\“, max 64 bytes.
Body
application/json
SchemaWriteRequest is the request message for the Write method in the Schema service. It contains tenant_id and the schema to be written.
Response
A successful response.
SchemaWriteResponse is the response message for the Write method in the Schema service. It returns the version of the written schema.