Skip to content

Product documentation

FgaModels

The FgaModels resource.

FgaModels

The FgaModels resource.

Base URL: https://api.stg.thoryn.org

Operations

MethodPathSummaryScopes
GET/api/v1/fga/authorization-modelsFga Models Listtenant:fga.read
POST/api/v1/fga/authorization-modelsFga Models Createtenant:fga.write
GET/api/v1/fga/authorization-models/{id}Fga Models Gettenant:fga.read

Operation details

GET /api/v1/fga/authorization-models

Fga Models List

  • Operation ID: fgaModelsList
  • Required scopes: tenant:fga.read

Parameters:

NameInRequiredTypeDescription
limitquerynointeger
cursorquerynostring

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

POST /api/v1/fga/authorization-models

Fga Models Create

  • Operation ID: fgaModelsCreate
  • Required scopes: tenant:fga.write

Parameters:

NameInRequiredTypeDescription
Idempotency-Keyheadernostring

Request body (required): application/jsonCreateModelRequest

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

GET /api/v1/fga/authorization-models/{id}

Fga Models Get

  • Operation ID: fgaModelsGet
  • Required scopes: tenant:fga.read

Parameters:

NameInRequiredTypeDescription
idpathyesstring

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)