> ## Documentation Index
> Fetch the complete documentation index at: https://api-documentation.kare-app.fr/llms.txt
> Use this file to discover all available pages before exploring further.

# Render the complete security register (cover, table of contents, any subset of its 7 sections and their sub-options, over a chosen period) to a PDF and return a presigned download URL.



## OpenAPI

````yaml /api/rs/openapi.json get /rs/security-register/v1/export-full-pdf
openapi: 3.0.3
info:
  title: KARE API
  description: Backend API for the KARE platform
  version: dev
servers:
  - url: http://localhost:3000
    description: Local dev
security: []
tags:
  - name: better-auth
    description: >-
      Better Auth's own endpoints (sign-in, session, MFA, password) - generated
      from the audience's live config via `generateOpenAPISchema()`, not
      hand-written.
paths:
  /rs/security-register/v1/export-full-pdf:
    get:
      tags:
        - security-register
      summary: >-
        Render the complete security register (cover, table of contents, any
        subset of its 7 sections and their sub-options, over a chosen period) to
        a PDF and return a presigned download URL.
      operationId: exportFullSecurityRegisterPdfRSV1
      parameters:
        - schema:
            minItems: 1
            maxItems: 250
            type: array
            items:
              type: string
              format: uuid
              pattern: >-
                ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
            example:
              - 550e8400-e29b-41d4-a716-446655440000
              - 6ba7b810-9dad-11d1-80b4-00c04fd430c8
          in: query
          name: whereUnitIds
          required: false
          description: >-
            The establishment: the parent unit and the child units to include.
            Required.
        - schema:
            type: object
            properties:
              building_identity:
                default: true
                type: boolean
              commissions_works:
                default: true
                anyOf:
                  - type: boolean
                  - type: object
                    properties:
                      commissions:
                        default: true
                        type: boolean
                      prescriptions:
                        default: true
                        type: boolean
                      works_authorizations:
                        default: true
                        type: boolean
                    additionalProperties: false
              periodic_checks:
                default: true
                anyOf:
                  - type: boolean
                  - type: object
                    properties:
                      units:
                        default: true
                        type: boolean
                      equipment:
                        default: true
                        type: boolean
                      interventions:
                        default: true
                        type: boolean
                      reports:
                        default: true
                        type: boolean
                      anomalies:
                        default: true
                        type: boolean
                    additionalProperties: false
              exercises:
                default: true
                type: boolean
              collective_trainings:
                default: true
                anyOf:
                  - type: boolean
                  - type: object
                    properties:
                      sessions:
                        default: true
                        type: boolean
                      proofs:
                        default: true
                        type: boolean
                      staff:
                        default: true
                        type: boolean
                    additionalProperties: false
              fire_safety_team:
                default: true
                anyOf:
                  - type: boolean
                  - type: object
                    properties:
                      qualifications:
                        default: true
                        type: boolean
                      proofs:
                        default: true
                        type: boolean
                    additionalProperties: false
              safety_instructions:
                default: true
                type: boolean
            additionalProperties: false
          in: query
          name: sections
          required: false
          description: >-
            Sections to render. A section is `true`, `false`, or an object of
            sub-options for the sections that have some (commissions_works,
            periodic_checks, collective_trainings, fire_safety_team). Defaults
            to everything.
        - schema:
            oneOf:
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - last_occurrences
                required:
                  - kind
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - since_last_commission
                required:
                  - kind
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - last_12_months
                required:
                  - kind
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - all_history
                required:
                  - kind
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - custom
                  from: {}
                  to: {}
                required:
                  - kind
                  - from
                  - to
          in: query
          name: period
          required: false
          description: >-
            Data window: `last_occurrences` (latest item per rule),
            `since_last_commission`, `last_12_months`, `all_history`, or
            `custom` with `from`/`to`.
        - schema:
            anyOf:
              - type: boolean
                enum:
                  - false
              - type: object
                properties:
                  ttl:
                    default: one_week
                    type: string
                    enum:
                      - one_week
                      - one_month
                      - six_months
                      - one_year
          in: query
          name: reportLinks
          required: false
          description: >-
            Report and document links. `false` renders names only; otherwise
            `ttl` bounds how long the public links stay valid.
        - schema:
            type: string
            enum:
              - fr
              - en
              - de
          in: query
          name: lang
          required: false
          description: >-
            Document language. Defaults to the language resolved for the
            request.
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  presignedUrl:
                    type: string
                    format: uri
                required:
                  - presignedUrl
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  requestId:
                    type: string
                  details: {}
                required:
                  - error
                  - message
                  - requestId
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  requestId:
                    type: string
                  details: {}
                required:
                  - error
                  - message
                  - requestId
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  requestId:
                    type: string
                  details: {}
                required:
                  - error
                  - message
                  - requestId
                additionalProperties: false

````