Skip to content

Product documentation

Consent

The Consent resource.

Consent

The Consent resource.

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

Operations

MethodPathSummaryScopes
GET/api/v1/consentsConsent Listtenant:compliance.read
POST/api/v1/consentsConsent Granttenant:compliance.write
GET/api/v1/consents/checkConsent Checktenant:compliance.read
GET/api/v1/consents/{consentId}Consent Gettenant:compliance.read
POST/api/v1/consents/{consentId}/changeConsent Changetenant:compliance.write
GET/api/v1/consents/{consentId}/receiptConsent Receipttenant:compliance.read
POST/api/v1/consents/{consentId}/withdrawConsent Withdrawtenant:compliance.write

Operation details

GET /api/v1/consents

Consent List

  • Operation ID: consentList
  • Required scopes: tenant:compliance.read

Parameters:

NameInRequiredTypeDescription
subjectIdquerynostring
needsReconsentquerynoboolean

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/consents

Consent Grant

  • Operation ID: consentGrant
  • Required scopes: tenant:compliance.write

Request body (required): application/jsonCreateConsentRequest

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/consents/check

Consent Check

  • Operation ID: consentCheck
  • Required scopes: tenant:compliance.read

Parameters:

NameInRequiredTypeDescription
subjectIdqueryyesstring
purposeKeyqueryyesstring
versionquerynointeger

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/consents/{consentId}

Consent Get

  • Operation ID: consentGet
  • Required scopes: tenant:compliance.read

Parameters:

NameInRequiredTypeDescription
consentIdpathyesstring

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/consents/{consentId}/change

Consent Change

  • Operation ID: consentChange
  • Required scopes: tenant:compliance.write

Parameters:

NameInRequiredTypeDescription
consentIdpathyesstring

Request body (required): application/jsonChangeConsentRequest

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/consents/{consentId}/receipt

Consent Receipt

  • Operation ID: consentReceipt
  • Required scopes: tenant:compliance.read

Parameters:

NameInRequiredTypeDescription
consentIdpathyesstring

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/consents/{consentId}/withdraw

Consent Withdraw

  • Operation ID: consentWithdraw
  • Required scopes: tenant:compliance.write

Parameters:

NameInRequiredTypeDescription
consentIdpathyesstring

Request body: application/jsonWithdrawConsentRequest

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)