Skip to content

Product documentation

Directories

The Directories resource.

Directories

The Directories resource.

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

Operations

MethodPathSummaryScopes
GET/api/v1/directoriesDirectories Listtenant:orgs.read
POST/api/v1/directoriesDirectories Createtenant:orgs.write
GET/api/v1/directories/{id}Directories Gettenant:orgs.read
DELETE/api/v1/directories/{id}Directories Deletetenant:orgs.write

Operation details

GET /api/v1/directories

Directories List

  • Operation ID: directoriesList
  • Required scopes: tenant:orgs.read

Parameters:

NameInRequiredTypeDescription
organizationIdquerynostring
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/directories

Directories Create

  • Operation ID: directoriesCreate
  • Required scopes: tenant:orgs.write

Request body (required): application/jsonCreateDirectoryRequest

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/directories/{id}

Directories Get

  • Operation ID: directoriesGet
  • Required scopes: tenant:orgs.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)

DELETE /api/v1/directories/{id}

Directories Delete

  • Operation ID: directoriesDelete
  • Required scopes: tenant:orgs.write

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)