Files
lincodex/api/core/routes/my_consent_c4.yml
T

40 lines
1.6 KiB
YAML

delete:
operationId: RevokeMyOrganizationContactConsent
summary: Revoke C4 for one organization.
description: |-
Requires a verified candidate session, its CSRF token in X-CSRF-Token, and the exact configured Origin. The subject comes from the session; `org_id` is the only scope the caller may choose. The server revokes every unrevoked C4 record for this subject and organization, using the fields stored on those records to request downstream grant revocation. It does not affect another organization. Repeating the request is harmless and creates no duplicate event.
security:
- sessionCookie: []
sessionCsrf: []
tags:
- consent
parameters:
- name: org_id
in: path
required: true
description: >-
Organization whose stored C4 grants this account revokes. A well-formed
identifier outside the account's stored records changes nothing and
does not reveal whether that organization exists.
schema:
type: string
format: uuid
responses:
"204":
description: C4 revoked for this organization, or no active C4 was present.
"401":
$ref: ../components/responses.yml#/Unauthenticated
"403":
description: CSRF or Origin validation failed, or the caller is not a candidate.
content:
application/problem+json:
schema:
$ref: ../components/schemas.yml#/Problem
examples:
csrf:
$ref: ../components/examples.yml#/CsrfCheckFailed
forbidden:
$ref: ../components/examples.yml#/Forbidden
default:
$ref: ../components/responses.yml#/Problem