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

# Submit quarter-hourly metered values

> Mirror of quarter-hourly metered data (MSCONS content), per market
location and day - it feeds the Vergleichstag method of the generated
forecast. Re-sending a (MaLo, day) pair replaces the stored day.
Values default to `KWH`; each day needs its full quarter-hour count
(96 / 92 / 100).



## OpenAPI

````yaml /api-reference/openapi.json post /v1/metered-data
openapi: 3.1.0
info:
  title: n:lead Scheduling Bridge — Data Delivery API
  version: 0.4.0
  description: >-
    API for delivering portfolio data to the n:lead scheduling bridge. Send a
    portfolio forecast per delivery day, or — if no forecast is available — the
    market-location master data, metered data and rolled-out profiles the bridge
    needs to build the consumption forecast for you. Everything downstream
    (positions, trader handoff, schedule submission to the TSOs) is operated by
    n:lead. A read-only status endpoint reports the BRP activation state per
    DSO/MGA.
servers:
  - url: >-
      https://nleadbridge-app.lemonisland-7d6503d3.germanywestcentral.azurecontainerapps.io
    description: Deployed service
  - url: http://localhost:8000
    description: Local development
security: []
paths:
  /v1/metered-data:
    post:
      summary: Submit quarter-hourly metered values
      description: |-
        Mirror of quarter-hourly metered data (MSCONS content), per market
        location and day - it feeds the Vergleichstag method of the generated
        forecast. Re-sending a (MaLo, day) pair replaces the stored day.
        Values default to `KWH`; each day needs its full quarter-hour count
        (96 / 92 / 100).
      operationId: post_metered_data_v1_metered_data_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MeteredDataRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MeteredDataResponse'
        '401':
          description: Missing, wrong or expired credential.
        '413':
          description: Body larger than the request-size limit.
        '422':
          description: >-
            Validation failure. `detail` names the offending series/entry and
            the rule it broke - see the troubleshooting page for every message
            and its fix.
        '429':
          description: >-
            Rate limit exceeded - retry after the number of seconds in the
            `Retry-After` header.
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    MeteredDataRequest:
      properties:
        entries:
          items:
            $ref: '#/components/schemas/MeteredDayIn'
          type: array
          minItems: 1
          title: Entries
      type: object
      required:
        - entries
      title: MeteredDataRequest
      example:
        entries:
          - day: '2026-08-30'
            malo: '51238696782'
            unit: KWH
            values:
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.2
              - 1.23
              - 1.26
              - 1.29
              - 1.32
              - 1.35
              - 1.38
              - 1.41
              - 1.44
              - 1.47
              - 1.5
              - 1.53
              - 1.56
              - 1.59
              - 1.62
              - 1.65
              - 1.68
              - 1.71
              - 1.74
              - 1.77
              - 1.8
              - 1.77
              - 1.74
              - 1.71
              - 1.68
              - 1.65
              - 1.62
              - 1.59
              - 1.56
              - 1.53
              - 1.5
              - 1.47
              - 1.44
              - 1.41
              - 1.38
              - 1.35
              - 1.32
              - 1.29
              - 1.26
              - 1.23
              - 1.2
              - 1.2
              - 1.2
              - 1.2
    MeteredDataResponse:
      properties:
        stored:
          type: integer
          title: Stored
        status:
          type: string
          enum:
            - stored
            - validated
          title: Status
          description: >-
            "validated" when the call ran under a sandbox key - everything
            checked, nothing stored
          default: stored
      type: object
      required:
        - stored
      title: MeteredDataResponse
    MeteredDayIn:
      properties:
        malo:
          type: string
          pattern: ^\d{11}$
          title: Malo
          description: Market location ID (MaLo) — 11 digits
        day:
          type: string
          format: date
          title: Day
        unit:
          type: string
          enum:
            - KWH
            - MWH
            - MW
          title: Unit
          default: KWH
        values:
          items:
            type: number
          type: array
          title: Values
      type: object
      required:
        - malo
        - day
        - values
      title: MeteredDayIn
      description: One metered day of one MaLo (MSCONS mirror).
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    HTTPBearer:
      type: http
      description: OIDC access token (Auth0 M2M)
      scheme: bearer

````