Skip to main content
Section ID: DOC-API-MODEL-schema-pq9d837o76#overview

AuthorizationModel

AuthorizationModel represents the schema/DSL defining types, relations, and rules Models define what relationships are possible in the authorization system

Type-reference view: API Schema 6up6drbioc. Request and response views describe this type; they do not declare an endpoint.

Meaning and usage​

Section ID: DOC-API-MODEL-schema-pq9d837o76#meaning

See the definition above.

Usage profiles​

Section ID: DOC-API-MODEL-schema-pq9d837o76#fields

UsageFields and validation
In requestsView fields
In responsesView fields

In requests​

Section ID: DOC-API-MODEL-schema-pq9d837o76#request

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
Section ID: DOC-API-MODEL-schema-pq9d837o76#request-field-ididstringOptionalModel ID/version identifier.
Section ID: DOC-API-MODEL-schema-pq9d837o76#request-field-schemaversionschemaVersionstringOptionalFGA schema version (e.g., "1.1").
Section ID: DOC-API-MODEL-schema-pq9d837o76#request-field-typedefinitionstypeDefinitionsstringOptionalFGA DSL defining types and relations.
Section ID: DOC-API-MODEL-schema-pq9d837o76#request-field-createdatcreatedAtstring (date-time)OptionalWhen this model was created.
Section ID: DOC-API-MODEL-schema-pq9d837o76#request-field-metadatametadataMap from string to JSON valueOptionalAdditional metadata as key-value pairs.

In responses​

Section ID: DOC-API-MODEL-schema-pq9d837o76#response

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
Section ID: DOC-API-MODEL-schema-pq9d837o76#field-idSection ID: DOC-API-MODEL-schema-pq9d837o76#response-field-ididstringOptionalModel ID/version identifier.
Section ID: DOC-API-MODEL-schema-pq9d837o76#field-schemaversionSection ID: DOC-API-MODEL-schema-pq9d837o76#response-field-schemaversionschemaVersionstringOptionalFGA schema version (e.g., "1.1").
Section ID: DOC-API-MODEL-schema-pq9d837o76#field-typedefinitionsSection ID: DOC-API-MODEL-schema-pq9d837o76#response-field-typedefinitionstypeDefinitionsstringOptionalFGA DSL defining types and relations.
Section ID: DOC-API-MODEL-schema-pq9d837o76#field-createdatSection ID: DOC-API-MODEL-schema-pq9d837o76#response-field-createdatcreatedAtstring (date-time)OptionalWhen this model was created.
Section ID: DOC-API-MODEL-schema-pq9d837o76#field-metadataSection ID: DOC-API-MODEL-schema-pq9d837o76#response-field-metadatametadataMap from string to JSON valueOptionalAdditional metadata as key-value pairs.

Where used​

Section ID: DOC-API-MODEL-schema-pq9d837o76#where-used

ReferenceRelationship
AuthorizationModelAPI JSON uses JSON field names (camelCase).

Download the public reference contract.

Document ID: DOC-API-MODEL-schema-pq9d837o76