> ## Documentation Index
> Fetch the complete documentation index at: https://podpora.cubee.cz/llms.txt
> Use this file to discover all available pages before exploring further.

# Redact a study (GDPR)

> Erases the personal data of one study (scrubs the personal values — cover label/address, recipient
e-mail, replication payload — out of the stored input/result JSON, nulls the study label and
recipient e-mail, deletes the stored PDF, keeps the de-identified calculation for analytics).
Ownership is the calling API
key's partner — any study the partner created can be redacted, tagged or not. Passing
`externalUserId` adds an extra guard: the study must also carry that end-user tag, so an
integration acting on behalf of one end-user cannot erase another's study by id.



## OpenAPI

````yaml /api-reference/swagger-partner.json post /api/v1/studies/{id}/redact
openapi: 3.0.4
info:
  title: Partner API
  description: API for partner services
  version: v1
servers:
  - url: https://api.partner.cubee.cz
    description: Partnerý API server
security: []
tags:
  - name: Aggregated Data
  - name: Authentication
  - name: Calculator
  - name: CalculatorControllerV1
  - name: InvoiceExtraction
  - name: Public
  - name: Reference data
  - name: Studies
paths:
  /api/v1/studies/{id}/redact:
    post:
      tags:
        - Studies
      summary: Redact a study (GDPR)
      description: >-
        Erases the personal data of one study (scrubs the personal values —
        cover label/address, recipient

        e-mail, replication payload — out of the stored input/result JSON, nulls
        the study label and

        recipient e-mail, deletes the stored PDF, keeps the de-identified
        calculation for analytics).

        Ownership is the calling API

        key's partner — any study the partner created can be redacted, tagged or
        not. Passing

        `externalUserId` adds an extra guard: the study must also carry that
        end-user tag, so an

        integration acting on behalf of one end-user cannot erase another's
        study by id.
      operationId: Redact Study
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: externalUserId
          in: query
          schema:
            type: string
      responses:
        '204':
          description: No Content
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not Found
      security:
        - {}

````