> ## 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 Partin Fanout

> Deliver the BKV's contact datasheet to a list of partners in one
call. Per-partner isolation: failures are reported, the batch
continues; excluded partners and duplicates are skipped; five
consecutive failures abort the remainder (gateway problem).



## OpenAPI

````yaml /setup/internal-openapi.json post /v1/process/partin/fanout
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: >-
          nleadbridge-app.lemonisland-7d6503d3.germanywestcentral.azurecontainerapps.io
        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/partin/fanout:
    post:
      summary: Post Partin Fanout
      description: |-
        Deliver the BKV's contact datasheet to a list of partners in one
        call. Per-partner isolation: failures are reported, the batch
        continues; excluded partners and duplicates are skipped; five
        consecutive failures abort the remainder (gateway problem).
      operationId: post_partin_fanout_v1_process_partin_fanout_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PartinFanoutRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartinFanoutResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    PartinFanoutRequest:
      properties:
        receiver_mp_ids:
          items:
            type: string
            pattern: ^\d{13}$
          type: array
          maxItems: 100
          minItems: 1
          title: Receiver Mp Ids
        receiver_role:
          type: string
          enum:
            - NB
            - BIKO
            - UNB
          title: Receiver Role
          default: NB
        version:
          type: integer
          minimum: 1
          title: Version
          default: 1
      type: object
      required:
        - receiver_mp_ids
      title: PartinFanoutRequest
      description: |-
        Send the BKV's PARTIN to a whole list of partners in one call.

        The caller selects who should receive it (e.g. every partner still
        without a PARTIN); the service skips excluded partners and in-batch
        duplicates and isolates per-partner delivery failures. Capped at 100
        per request so one call stays inside the ingress timeout - batch a
        larger list over several calls.
    PartinFanoutResponse:
      properties:
        sent:
          items:
            type: string
          type: array
          title: Sent
        failed:
          items:
            $ref: '#/components/schemas/PartinFanoutFailure'
          type: array
          title: Failed
        skipped:
          items:
            $ref: '#/components/schemas/PartinFanoutSkip'
          type: array
          title: Skipped
      type: object
      required:
        - sent
        - failed
        - skipped
      title: PartinFanoutResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PartinFanoutFailure:
      properties:
        receiver_mp_id:
          type: string
          title: Receiver Mp Id
        error:
          type: string
          title: Error
      type: object
      required:
        - receiver_mp_id
        - error
      title: PartinFanoutFailure
    PartinFanoutSkip:
      properties:
        receiver_mp_id:
          type: string
          title: Receiver Mp Id
        reason:
          type: string
          enum:
            - duplicate
            - ausnahme
            - aborted_after_failures
          title: Reason
      type: object
      required:
        - receiver_mp_id
        - reason
      title: PartinFanoutSkip
    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

````