37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
get:
|
|
operationId: GetMyConsentText
|
|
summary: Read a current consent text for account settings.
|
|
description: >-
|
|
Requires a verified session. Returns the current published text and version
|
|
of c1, c2, c3, or c5 so the user can read the exact text before an explicit
|
|
settings grant. C4 is excluded: its text includes an organization snapshot
|
|
and it is granted only during invitation acceptance. The response is
|
|
private and is not cached.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- consent
|
|
parameters:
|
|
- name: purpose
|
|
in: path
|
|
required: true
|
|
description: Consent whose current text is requested.
|
|
schema:
|
|
$ref: ../components/schemas.yml#/ConsentSettingsPurpose
|
|
responses:
|
|
"200":
|
|
description: The current published consent text.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: ../components/headers.yml#/CacheControlNoStore
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: ../components/schemas.yml#/ConsentText
|
|
"401":
|
|
$ref: ../components/responses.yml#/Unauthenticated
|
|
"400":
|
|
$ref: ../components/responses.yml#/ValidationFailed
|
|
default:
|
|
$ref: ../components/responses.yml#/Problem
|