> ## Documentation Index
> Fetch the complete documentation index at: https://docs.realtimelca.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Construction

> Creates a new **construction material** in the system. A construction is a composite material made up of one or more EPD (Environmental Product Declaration) references, each with its own lifespan and unit configuration.

**Endpoint:** `POST {{epdbaseUrl}}/Material/construction`

**Authentication:** Bearer token required — set `{{BearerToken}}` in your environment.



## OpenAPI

````yaml /api-reference/realtime-lca-openapi.yaml post /Material/construction
openapi: 3.0.0
info:
  title: Real-Time LCA REST Documentation
  version: 1.0.0
  description: >-
    ### Description 📝


    This collection contains a set of REST API requests for the Real-Time LCA
    (Life Cycle Assessment) service.


    ### Authenticate user 👤🔑


    In the `Auth` folder there's a `POST` request for authenticating the user.


    In this request body you can type in the user RTLCA user credentials
    (username & password) and a succesfull (`200 OK`) response will set the
    collection `BearerToken` variable which is then inherited by all other
    requests.
servers:
  - url: https://api.realtimelca.com/rest/api
    description: REST API.
  - url: https://api.realtimelca.com/epd/api
    description: EPD API.
  - url: https://auth.realtimelca.com/frontegg/identity/resources/auth/v1
    description: Authentication API (Frontegg identity v1).
  - url: https://realtimelca-prod.hasura.app
    description: GraphQL API (Hasura).
security:
  - BearerAuth: []
tags:
  - name: Auth
  - name: User
  - name: Overview
  - name: Project
  - name: Dashboard
  - name: Mapping
  - name: Automapping
  - name: Transport
  - name: Waste
  - name: Inspect
  - name: Report
  - name: Images
  - name: Library
  - name: Datasource
  - name: Owner
  - name: Material
  - name: Constructions
  - name: Enums
paths:
  /Material/construction:
    servers:
      - url: https://api.realtimelca.com/epd/api
    post:
      tags:
        - Library
        - Constructions
      summary: Create Construction
      description: >-
        Creates a new **construction material** in the system. A construction is
        a composite material made up of one or more EPD (Environmental Product
        Declaration) references, each with its own lifespan and unit
        configuration.


        **Endpoint:** `POST {{epdbaseUrl}}/Material/construction`


        **Authentication:** Bearer token required — set `{{BearerToken}}` in
        your environment.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                description:
                  type: string
                isPublic:
                  type: boolean
                isCustom:
                  type: boolean
                tags:
                  type: array
                  items:
                    type: string
                declaredUnit:
                  type: object
                  properties:
                    declaredUnit:
                      type: integer
                    declaredValue:
                      type: integer
                    mass:
                      description: >-
                        Value may be null. Type not specified by upstream
                        source.
                    massUnit:
                      type: integer
                expectedLifespan:
                  description: Value may be null. Type not specified by upstream source.
                constructionEpds:
                  type: array
                  items:
                    type: object
                    properties:
                      epdId:
                        type: string
                      expectedLifespan:
                        type: integer
                      constructionUnit:
                        type: object
                        properties:
                          unit:
                            type: integer
                          amount:
                            type: integer
                          percentage:
                            type: integer
                          length:
                            type: integer
                          height:
                            type: integer
                          width:
                            type: integer
                          shownUnit:
                            type: integer
            example:
              name: Thomas' Construction
              description: >-
                Dette er en beskivelse af Thomas' helt utrolige og fantastiske
                konstruktion der ikke er set magen til før - wauw siger jeg
                bare.
              isPublic: false
              isCustom: false
              tags:
                - Beton
                - Mineraluld
              declaredUnit:
                declaredUnit: 4
                declaredValue: 1
                mass: null
                massUnit: 1
              expectedLifespan: null
              constructionEpds:
                - epdId: 9ab63b3a-1ef2-40fa-a3cb-2769980ed9b3
                  expectedLifespan: 100
                  constructionUnit:
                    unit: 4
                    amount: 1
                    percentage: 50
                    length: 1
                    height: 1
                    width: 1
                    shownUnit: 4
                - epdId: 4acbc0ad-7ca3-4b11-b488-a61ed915ec1d
                  expectedLifespan: 120
                  constructionUnit:
                    unit: 4
                    amount: 1
                    percentage: 50
                    length: 1
                    height: 1
                    width: 1
                    shownUnit: 4
      responses:
        default:
          description: Response schema not yet documented in the upstream Postman spec.
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````