> ## 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 Zuordnung Ergaenzung

> Extend granted Zuordnungsermaechtigungen to the current standing
selection. Incremental by MaBiS design (the Ermaechtigung is granted
je ZRT, BG, BK und LF - Kap. 10.2.1): only the missing Zeitreihentypen
are activated, only for partners whose Zuordnung was positively
acknowledged; the ledger ``zoe_auto`` records the additions.



## OpenAPI

````yaml /setup/internal-openapi.json post /v1/process/zuordnungsermaechtigungen/ergaenzung
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://{host}
    description: Deployed service
    variables:
      host:
        default: api.energy.nlead.ch
        description: >-
          The service hostname - n:lead provides it (see the Base URL on the API
          introduction page)
  - url: http://localhost:8000
    description: Local development
security: []
paths:
  /v1/process/zuordnungsermaechtigungen/ergaenzung:
    post:
      summary: Post Zuordnung Ergaenzung
      description: |-
        Extend granted Zuordnungsermaechtigungen to the current standing
        selection. Incremental by MaBiS design (the Ermaechtigung is granted
        je ZRT, BG, BK und LF - Kap. 10.2.1): only the missing Zeitreihentypen
        are activated, only for partners whose Zuordnung was positively
        acknowledged; the ledger ``zoe_auto`` records the additions.
      operationId: >-
        post_zuordnung_ergaenzung_v1_process_zuordnungsermaechtigungen_ergaenzung_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ZoeErgaenzungRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ZoeErgaenzungResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    ZoeErgaenzungRequest:
      properties:
        dry_run:
          type: boolean
          title: Dry Run
          default: false
      type: object
      title: ZoeErgaenzungRequest
      description: |-
        Extend every granted Zuordnungsermaechtigung to the current standing
        selection (``AUTO_ZOE_ZEITREIHENTYPEN``) - incrementally: only the
        missing Zeitreihentypen go out, as a new activation (PID 55071) for
        those types alone, and only to partners whose Zuordnung was positively
        acknowledged. ``dry_run`` lists without sending.
    ZoeErgaenzungResponse:
      properties:
        dry_run:
          type: boolean
          title: Dry Run
        zeitreihentypen:
          items:
            type: string
          type: array
          title: Zeitreihentypen
          description: The standing selection
        nachgetragen:
          items:
            $ref: '#/components/schemas/ZoeLedgerNachtrag'
          type: array
          title: Nachgetragen
          description: >-
            Grants found only in the audit records (sent by hand before the
            ledger existed) and seeded into the ledger this run
        sent:
          items:
            $ref: '#/components/schemas/ZoeErgaenzungGrant'
          type: array
          title: Sent
        skipped:
          items:
            $ref: '#/components/schemas/AutoZoeSkip'
          type: array
          title: Skipped
      type: object
      required:
        - dry_run
        - zeitreihentypen
        - sent
        - skipped
      title: ZoeErgaenzungResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ZoeLedgerNachtrag:
      properties:
        mp_id:
          type: string
          title: Mp Id
        bg:
          type: string
          title: Bg
        zeitreihentypen:
          items:
            type: string
          type: array
          title: Zeitreihentypen
      type: object
      required:
        - mp_id
        - bg
        - zeitreihentypen
      title: ZoeLedgerNachtrag
    ZoeErgaenzungGrant:
      properties:
        mp_id:
          type: string
          title: Mp Id
        name:
          type: string
          title: Name
          default: ''
        bgs:
          items:
            type: string
          type: array
          title: Bgs
        zeitreihentypen:
          items:
            type: string
          type: array
          title: Zeitreihentypen
          description: The types added
        valid_from:
          type: string
          title: Valid From
      type: object
      required:
        - mp_id
        - bgs
        - zeitreihentypen
        - valid_from
      title: ZoeErgaenzungGrant
    AutoZoeSkip:
      properties:
        mp_id:
          type: string
          title: Mp Id
        name:
          type: string
          title: Name
          default: ''
        reason:
          type: string
          title: Reason
      type: object
      required:
        - mp_id
        - reason
      title: AutoZoeSkip
    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

````