> ## 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 Preview

> Render the BKV's PARTIN (PID 37003) without sending it.



## OpenAPI

````yaml /setup/internal-openapi.json post /v1/process/partin/preview
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/partin/preview:
    post:
      summary: Post Partin Preview
      description: Render the BKV's PARTIN (PID 37003) without sending it.
      operationId: post_partin_preview_v1_process_partin_preview_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PartinRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartinPreview'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    PartinRequest:
      properties:
        receiver_mp_id:
          type: string
          title: Receiver Mp Id
          description: MP-ID of the NB, BIKO or ÜNB
        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_id
      title: PartinRequest
      description: |-
        Send the BKV's contact datasheet (PARTIN, PID 37003) to one partner.

        ``version`` starts at 1 and must be incremented whenever the datasheet
        content changes - the receiver treats a higher version as an update.
    PartinPreview:
      properties:
        pruefidentifikator:
          type: string
          title: Pruefidentifikator
        version:
          type: integer
          title: Version
        edifact:
          type: string
          title: Edifact
      type: object
      required:
        - pruefidentifikator
        - version
        - edifact
      title: PartinPreview
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````