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

> Mirror of the DSO's/MGA's rolled-out day profiles.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/profiles
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.
servers:
  - url: https://{your-service-host}
    description: Deployed service
  - url: http://localhost:8000
    description: Local development
security: []
paths:
  /v1/profiles:
    post:
      summary: Post Profiles
      description: Mirror of the DSO's/MGA's rolled-out day profiles.
      operationId: post_profiles_v1_profiles_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProfileDataRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProfileDataResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    ProfileDataRequest:
      properties:
        entries:
          items:
            $ref: '#/components/schemas/ProfileDayIn'
          type: array
          minItems: 1
          title: Entries
      type: object
      required:
        - entries
      title: ProfileDataRequest
    ProfileDataResponse:
      properties:
        stored:
          type: integer
          title: Stored
      type: object
      required:
        - stored
      title: ProfileDataResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ProfileDayIn:
      properties:
        mga:
          type: string
          minLength: 1
          title: Mga
        profile_code:
          type: string
          minLength: 1
          title: Profile Code
        day:
          type: string
          format: date
          title: Day
        values_kwh:
          items:
            type: number
          type: array
          title: Values Kwh
          description: kWh per quarter-hour, rolled out
        normalization_kwh_per_year:
          type: number
          exclusiveMinimum: 0
          title: Normalization Kwh Per Year
          description: >-
            Annual consumption the profile is normalized to (1000 for classic
            SLP, 1000000 for TLP procedures)
          default: 1000
      type: object
      required:
        - mga
        - profile_code
        - day
        - values_kwh
      title: ProfileDayIn
      description: One rolled-out profile day for one MGA (NB/MGA mirror).
    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

````