Skip to content

Product documentation

Policy

The Policy resource.

Policy

The Policy resource.

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

Operations

MethodPathSummaryScopes
GET/api/v1/policies/{policyKey}/effectivePolicy Effectivetenant:policy.read
GET/api/v1/policies/{policyKey}/overridesPolicy List Overridestenant:policy.read
PUT/api/v1/policies/{policyKey}/overridesPolicy Put Overridetenant:policy.write
DELETE/api/v1/policies/{policyKey}/overridesPolicy Delete Overridetenant:policy.write

Operation details

GET /api/v1/policies/{policyKey}/effective

Policy Effective

  • Operation ID: policyEffective
  • Required scopes: tenant:policy.read

Parameters:

NameInRequiredTypeDescription
policyKeypathyesstring
organizationIdquerynostring
clientIdquerynostring

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/policies/{policyKey}/overrides

Policy List Overrides

  • Operation ID: policyListOverrides
  • Required scopes: tenant:policy.read

Parameters:

NameInRequiredTypeDescription
policyKeypathyesstring

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)

PUT /api/v1/policies/{policyKey}/overrides

Policy Put Override

  • Operation ID: policyPutOverride
  • Required scopes: tenant:policy.write

Parameters:

NameInRequiredTypeDescription
policyKeypathyesstring

Request body (required): application/jsonPutOverrideRequest

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)

DELETE /api/v1/policies/{policyKey}/overrides

Policy Delete Override

  • Operation ID: policyDeleteOverride
  • Required scopes: tenant:policy.write

Parameters:

NameInRequiredTypeDescription
policyKeypathyesstring
organizationIdquerynostring
clientIdquerynostring

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)