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

# Add new Log to Installation by SBCL ID

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "API digitaal logboek",
    "version": "2.0",
    "description": "API digitaal logboek"
  },
  "paths": {
    "/installations/{id}/logs": {
      "post": {
        "security": [
          {},
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Add new Log to Installation by SBCL ID",
        "tags": [
          "Log"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Log"
        },
        "responses": {
          "200": {
            "description": "Log",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "52f34043-33f9-4400-935e-56c233097d51"
                        },
                        "sbclId": {
                          "type": "string",
                          "example": "06f02b6a-b1f3-4e05-a1d0-2a75de65d286"
                        }
                      }
                    },
                    {
                      "$ref": "#/components/schemas/Log"
                    }
                  ]
                }
              },
              "text/xml": {
                "schema": {
                  "allOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "52f34043-33f9-4400-935e-56c233097d51"
                        },
                        "sbclId": {
                          "type": "string",
                          "example": "06f02b6a-b1f3-4e05-a1d0-2a75de65d286"
                        }
                      }
                    },
                    {
                      "$ref": "#/components/schemas/Log"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters"
          },
          "401": {
            "description": "Unauthorized"
          },
          "422": {
            "description": "Missing required parameters"
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "//logboek-api.sbcl.nl/api/v2"
    }
  ],
  "components": {
    "requestBodies": {
      "Log": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Log"
            }
          }
        },
        "description": "Log object"
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "name": "apikey",
        "in": "header"
      }
    },
    "schemas": {
      "Log": {
        "type": "object",
        "required": [
          "type",
          "end",
          "description"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "maintenance",
              "repair",
              "check",
              "commissioning inspection",
              "modification inspection",
              "periodic inspection",
              "assistance inspection",
              "other"
            ],
            "example": "maintenance"
          },
          "end": {
            "type": "string",
            "example": "2022-01-01T12:00:00Z",
            "description": "**Note**: parameter must be in UTC format"
          },
          "description": {
            "type": "string",
            "example": "Lorem ipsum dolor sit amet"
          },
          "referenceId": {
            "type": "string",
            "example": "OT319319"
          },
          "approved": {
            "type": "string",
            "enum": [
              "true",
              "false",
              "not inspected"
            ],
            "example": "true",
            "description": "**Note**: parameter can only be used with Type commissioning inspection, modification inspection or periodic inspection"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```