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

# Post Aperak Acknowledge

> Answer every received message that is still unacknowledged with an
APERAK Anerkennungsmeldung (BGM+312) - the answer the AHB owes the
sender of each Geschaeftsvorfall. ``dry_run`` lists what would go out.



## OpenAPI

````yaml /setup/internal-openapi.json post /v1/process/aperak/acknowledge
openapi: 3.1.0
info:
  title: n:lead Scheduling Bridge — Internal API
  version: 0.4.0
  description: >-
    Internal API of the n:lead scheduling bridge: the process endpoints that
    drive the day-ahead pipeline (aggregate, publish the open position, submit
    schedules, generate forecasts, orchestrate) and the operator console
    endpoints. Requires the process API key; not for customer use.
servers:
  - url: >-
      https://nleadbridge-app.lemonisland-7d6503d3.germanywestcentral.azurecontainerapps.io
    description: Deployed service
  - url: http://localhost:8000
    description: Local development
security: []
paths:
  /v1/process/aperak/acknowledge:
    post:
      summary: Post Aperak Acknowledge
      description: |-
        Answer every received message that is still unacknowledged with an
        APERAK Anerkennungsmeldung (BGM+312) - the answer the AHB owes the
        sender of each Geschaeftsvorfall. ``dry_run`` lists what would go out.
      operationId: post_aperak_acknowledge_v1_process_aperak_acknowledge_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AperakAcknowledgeRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AperakAcknowledgeResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    AperakAcknowledgeRequest:
      properties:
        dry_run:
          type: boolean
          title: Dry Run
          default: false
        lookback_days:
          anyOf:
            - type: integer
            - type: 'null'
          title: Lookback Days
        limit:
          anyOf:
            - type: integer
            - type: 'null'
          title: Limit
      type: object
      title: AperakAcknowledgeRequest
      description: |-
        Acknowledge every received message that is still unanswered.
        ``dry_run`` lists what would go out without sending it.
    AperakAcknowledgeResponse:
      properties:
        dry_run:
          type: boolean
          title: Dry Run
        scanned:
          type: integer
          title: Scanned
        acknowledged:
          items:
            $ref: '#/components/schemas/AperakEntry'
          type: array
          title: Acknowledged
        skipped:
          items:
            $ref: '#/components/schemas/AperakSkip'
          type: array
          title: Skipped
        unreadable:
          items:
            $ref: '#/components/schemas/AperakSkip'
          type: array
          title: Unreadable
        late:
          type: integer
          title: Late
        remaining:
          type: integer
          title: Remaining
      type: object
      required:
        - dry_run
        - scanned
        - acknowledged
        - skipped
        - unreadable
        - late
        - remaining
      title: AperakAcknowledgeResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AperakEntry:
      properties:
        sender:
          type: string
          title: Sender
        recipient:
          type: string
          title: Recipient
          default: ''
        type:
          type: string
          title: Type
        interchange_ref:
          type: string
          title: Interchange Ref
          default: ''
        geschaeftsvorfaelle:
          type: integer
          title: Geschaeftsvorfaelle
          default: 1
        received_at:
          type: string
          title: Received At
          default: ''
        deadline:
          type: string
          title: Deadline
          default: ''
        late:
          type: boolean
          title: Late
          default: false
        ingress_status:
          anyOf:
            - type: integer
            - type: 'null'
          title: Ingress Status
      type: object
      required:
        - sender
        - type
      title: AperakEntry
    AperakSkip:
      properties:
        sender:
          type: string
          title: Sender
          default: ''
        type:
          type: string
          title: Type
          default: ''
        reason:
          type: string
          title: Reason
      type: object
      required:
        - reason
      title: AperakSkip
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    HTTPBearer:
      type: http
      description: OIDC access token (Auth0 M2M)
      scheme: bearer

````