Skip to content

Product documentation

ConsentPurpose

The ConsentPurpose resource.

ConsentPurpose

The ConsentPurpose resource.

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

Operations

MethodPathSummaryScopes
GET/api/v1/consent-purposesConsent Purpose Listtenant:compliance.read
POST/api/v1/consent-purposesConsent Purpose Createtenant:compliance.write
GET/api/v1/consent-purposes/{id}Consent Purpose Gettenant:compliance.read
PUT/api/v1/consent-purposes/{id}Consent Purpose Updatetenant:compliance.write
DELETE/api/v1/consent-purposes/{id}Consent Purpose Deletetenant:compliance.write
POST/api/v1/consent-purposes/{id}/new-versionConsent Purpose New Versiontenant:compliance.write
GET/api/v1/consent-purposes/{id}/versionsConsent Purpose Versionstenant:compliance.read

Operation details

GET /api/v1/consent-purposes

Consent Purpose List

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

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/consent-purposes

Consent Purpose Create

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

Request body (required): application/jsonCreateConsentPurposeRequest

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

Consent Purpose Get

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

PUT /api/v1/consent-purposes/{id}

Consent Purpose Update

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

Parameters:

NameInRequiredTypeDescription
idpathyesstring

Request body (required): application/jsonUpdateConsentPurposeRequest

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

Consent Purpose Delete

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

POST /api/v1/consent-purposes/{id}/new-version

Consent Purpose New Version

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

Parameters:

NameInRequiredTypeDescription
idpathyesstring

Request body: application/jsonNewVersionRequest

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/consent-purposes/{id}/versions

Consent Purpose Versions

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