---
updatedAt: 2025-02-14T22:16:22.000Z
agentTools:
  projectIndex: https://digitaal-logboek.readme.io/llms.txt
---

# Add new Installation

**Note**: Installation must be unique based on Installation ID and Manufacturer ID

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "API digitaal logboek",
    "version": "2.0",
    "description": "API digitaal logboek"
  },
  "paths": {
    "/installations": {
      "post": {
        "security": [
          {},
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Add new Installation",
        "description": "**Note**: Installation must be unique based on Installation ID and Manufacturer ID",
        "tags": [
          "Installation"
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Installation"
        },
        "responses": {
          "200": {
            "description": "Installation",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "L0SK9LDE1Q"
                        }
                      }
                    },
                    {
                      "$ref": "#/components/schemas/Installation"
                    }
                  ]
                }
              },
              "text/xml": {
                "schema": {
                  "allOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "L0SK9LDE1Q"
                        }
                      }
                    },
                    {
                      "$ref": "#/components/schemas/Installation"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters"
          },
          "401": {
            "description": "Unauthorized"
          },
          "409": {
            "description": "Duplicate Installation found"
          },
          "422": {
            "description": "Missing required parameters"
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "//logboek-api-test.sbcl.nl/api/v2"
    }
  ],
  "components": {
    "requestBodies": {
      "Installation": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Installation"
            }
          }
        },
        "description": "Installation object"
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "name": "apikey",
        "in": "header"
      }
    },
    "schemas": {
      "Installation": {
        "type": "object",
        "required": [
          "installationId",
          "type",
          "address",
          "postalCode",
          "city",
          "manufacturerId"
        ],
        "properties": {
          "installationId": {
            "type": "string",
            "example": "12345678"
          },
          "type": {
            "type": "string",
            "enum": [
              "elevator",
              "escalator"
            ],
            "example": "elevator"
          },
          "address": {
            "type": "string",
            "example": "Het Spoor 48A"
          },
          "postalCode": {
            "type": "string",
            "example": "3990 DD"
          },
          "city": {
            "type": "string",
            "example": "Houten"
          },
          "manufacturerId": {
            "type": "string",
            "example": "SCHINDLER",
            "description": "**Note**: use [Manufacturers](#/Manufacturer/get_manufacturers) to get a list of available Manufacturers"
          },
          "customId": {
            "type": "string",
            "example": "OT319319"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```