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

# Snapshot of the contract column from Cloover's sheet

> Sent by the Apps Script in Cloover's VNB-Kampagne sheet with the
read-only report key: MP-ID and the raw value of the contract status
column per network operator. Only the snapshot is stored - no contract
is recorded or withdrawn here, so the report key still triggers
nothing. ``/market-partners/rahmenvertraege/abgleich`` compares and,
on an explicit run, applies.



## OpenAPI

````yaml /setup/internal-openapi.json post /v1/process/market-partners/rahmenvertraege/quellstand
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/market-partners/rahmenvertraege/quellstand:
    post:
      summary: Snapshot of the contract column from Cloover's sheet
      description: |-
        Sent by the Apps Script in Cloover's VNB-Kampagne sheet with the
        read-only report key: MP-ID and the raw value of the contract status
        column per network operator. Only the snapshot is stored - no contract
        is recorded or withdrawn here, so the report key still triggers
        nothing. ``/market-partners/rahmenvertraege/abgleich`` compares and,
        on an explicit run, applies.
      operationId: >-
        post_rahmenvertrag_quellstand_v1_process_market_partners_rahmenvertraege_quellstand_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RahmenvertragQuellstandRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: >-
                  Response Post Rahmenvertrag Quellstand V1 Process Market
                  Partners Rahmenvertraege Quellstand Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    RahmenvertragQuellstandRequest:
      properties:
        quelle:
          type: string
          maxLength: 200
          title: Quelle
          default: Apps Script
        eintraege:
          items:
            $ref: '#/components/schemas/RahmenvertragQuellZeile'
          type: array
          maxItems: 5000
          title: Eintraege
      type: object
      required:
        - eintraege
      title: RahmenvertragQuellstandRequest
      description: |-
        The contract column of Cloover's VNB-Kampagne sheet, as the sheet's
        Apps Script reads it. Stored as a snapshot - nothing is applied.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RahmenvertragQuellZeile:
      properties:
        mp_id:
          type: string
          maxLength: 20
          title: Mp Id
        status:
          type: string
          maxLength: 200
          title: Status
          default: ''
        name:
          type: string
          maxLength: 200
          title: Name
          default: ''
      type: object
      required:
        - mp_id
      title: RahmenvertragQuellZeile
    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

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.