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

> Record what a contract says from ``gueltig_ab`` on. The start lies
after every Fassung there is; the one before ends the day before.
Content per type: Bilanzkreisvertrag (Bilanzkreis, maximum power,
Unterbilanzkreise), Bilanzkreisnutzungsvertrag (Bilanzkreise of the
Lieferant), Lieferantenrahmenvertrag (Zeitreihentypen), Händlervertrag
(trader's BK, home Regelzone, deadline, days ahead, format, transport).
Sends nothing.



## OpenAPI

````yaml /setup/internal-openapi.json post /v1/process/vertraege/{art}/{partner}/fassungen
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), the operator console endpoints,
    and the read-only operator-app endpoints under /v1/mobile. The process and
    console endpoints require the process API key, /v1/mobile a device key of
    the mobile scope; 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/vertraege/{art}/{partner}/fassungen:
    post:
      summary: Post Fassung
      description: |-
        Record what a contract says from ``gueltig_ab`` on. The start lies
        after every Fassung there is; the one before ends the day before.
        Content per type: Bilanzkreisvertrag (Bilanzkreis, maximum power,
        Unterbilanzkreise), Bilanzkreisnutzungsvertrag (Bilanzkreise of the
        Lieferant), Lieferantenrahmenvertrag (Zeitreihentypen), Händlervertrag
        (trader's BK, home Regelzone, deadline, days ahead, format, transport).
        Sends nothing.
      operationId: post_fassung_v1_process_vertraege__art___partner__fassungen_post
      parameters:
        - name: art
          in: path
          required: true
          schema:
            type: string
            title: Art
        - name: partner
          in: path
          required: true
          schema:
            type: string
            title: Partner
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FassungRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: >-
                  Response Post Fassung V1 Process Vertraege  Art   Partner 
                  Fassungen Post
        '422':
          description: Content or start that does not fit.
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    FassungRequest:
      properties:
        gueltig_ab:
          type: string
          format: date
          title: Gueltig Ab
        gueltig_bis:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Gueltig Bis
        inhalt:
          additionalProperties: true
          type: object
          title: Inhalt
        notiz:
          type: string
          maxLength: 300
          title: Notiz
          default: ''
      type: object
      required:
        - gueltig_ab
        - inhalt
      title: FassungRequest
      description: |-
        A new Fassung of a contract: its content from ``gueltig_ab`` on.
        The content's fields depend on the contract type - see
        ``GET .../fassungen`` for a template.
  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.