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

# Execute LGPD erasure (admin)

> Executes the cryptographic erasure (per-record DEK neutralization) of an LGPD erasure request scoped to the resolved institution. The request id comes from the path; the cleartext CPF/CNPJ is supplied in the body only for server-side tokenization and is never logged nor echoed; the institution is derived from the validated request identity. The operation is idempotent: an already-executed request returns 200, not 409.



## OpenAPI

````yaml en/openapi/v3-current/sisbajud.yaml post /v1/admin/lgpd/requests/{id}/erase
openapi: 3.0.3
info:
  title: Lerian SISBAJUD API
  description: >-
    API for Lerian SISBAJUD — the participant-side rail that integrates the
    institution with Banco Central do Brasil's SISBAJUD (Sistema de Busca de
    Ativos do Poder Judiciário) system for judicial asset blocking and
    unblocking. It covers judicial-order administration, remittance and return
    file management, reconciliation, SLA monitoring, LGPD data-subject requests,
    and per-institution configuration and connector credentials.
  version: v1.0.0
servers:
  - url: https://sisbajud.sandbox.lerian.net
security: []
tags:
  - name: Admin
    description: >-
      Administrative operations over judicial orders: listing and detail,
      failed-order reprocessing, remittance and return file access,
      reconciliation runs and status, SLA-risk monitoring, processing
      statistics, audit-trail verification, cross-organization subject
      summaries, and LGPD data-subject requests and justifications.
  - name: Institution
    description: >-
      Per-institution configuration and connector credentials: configuration
      upsert with tokenization-keyset provisioning, safe configuration read, and
      outbound connector credential registration and rotation.
paths:
  /v1/admin/lgpd/requests/{id}/erase:
    post:
      tags:
        - Admin
      summary: Execute LGPD erasure (admin)
      description: >-
        Executes the cryptographic erasure (per-record DEK neutralization) of an
        LGPD erasure request scoped to the resolved institution. The request id
        comes from the path; the cleartext CPF/CNPJ is supplied in the body only
        for server-side tokenization and is never logged nor echoed; the
        institution is derived from the validated request identity. The
        operation is idempotent: an already-executed request returns 200, not
        409.
      parameters:
        - description: LGPD request id (UUID)
          in: path
          name: id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/http.PostLgpdErasureBody'
        description: Erasure subject document
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/http.PostLgpdErasureResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/http.AdminErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/http.AdminErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/http.AdminErrorResponse'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/http.AdminErrorResponse'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/http.AdminErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/http.AdminErrorResponse'
        '503':
          description: Service Unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/http.AdminErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    http.PostLgpdErasureBody:
      properties:
        cpf_cnpj:
          minLength: 1
          type: string
        doc_type:
          type: string
      required:
        - cpf_cnpj
      type: object
    http.PostLgpdErasureResponse:
      properties:
        id:
          type: string
      type: object
    http.AdminErrorResponse:
      properties:
        code:
          type: string
        details:
          additionalProperties: {}
          type: object
        message:
          type: string
        title:
          type: string
      type: object
  securitySchemes:
    BearerAuth:
      description: 'Bearer token authentication (format: "Bearer {token}")'
      in: header
      name: Authorization
      type: apiKey

````