{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-365/json-schema/microsoft-365-microsoft-graph-building-schema.json",
  "title": "microsoft.graph.building",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-365-places-place-api-openapi.yml#/components/schemas/microsoft.graph.building",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.place"
    },
    {
      "title": "building",
      "type": "object",
      "properties": {
        "resourceLinks": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.resourceLink"
          },
          "description": "A set of links to external resources that are associated with the building. Inherited from place."
        },
        "wifiState": {
          "$ref": "#/$defs/microsoft.graph.placeFeatureEnablement"
        },
        "map": {
          "$ref": "#/$defs/microsoft.graph.buildingMap"
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    }
  ],
  "$defs": {
    "microsoft.graph.baseMapFeature": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "baseMapFeature",
          "type": "object",
          "properties": {
            "properties": {
              "type": [
                "string",
                "null"
              ],
              "description": "Concatenated key-value pair of all properties of a GeoJSON file for this baseMapFeature."
            }
          },
          "additionalProperties": {
            "type": "object"
          }
        }
      ]
    },
    "microsoft.graph.buildingMap": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.baseMapFeature"
        },
        {
          "title": "buildingMap",
          "type": "object",
          "properties": {
            "placeId": {
              "type": [
                "string",
                "null"
              ],
              "description": "Identifier for the building to which this buildingMap belongs."
            },
            "footprints": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/microsoft.graph.footprintMap"
              },
              "description": "Represents the approximate physical extent of a referenced building. It corresponds to footprint.geojson in IMDF format.",
              "x-ms-navigationProperty": true
            },
            "levels": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/microsoft.graph.levelMap"
              },
              "description": "Represents a physical floor structure within a building. It corresponds to level.geojson in IMDF format.",
              "x-ms-navigationProperty": true
            }
          },
          "additionalProperties": {
            "type": "object"
          }
        }
      ]
    },
    "microsoft.graph.checkInClaim": {
      "title": "checkInClaim",
      "type": "object",
      "properties": {
        "calendarEventId": {
          "type": "string",
          "description": "The unique identifier for an Outlook calendar event associated with the checkInClaim object. For more information, see the iCalUId property in event."
        },
        "checkInMethod": {
          "$ref": "#/$defs/microsoft.graph.checkInMethod"
        },
        "createdDateTime": {
          "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
          "type": [
            "string",
            "null"
          ],
          "description": "The date and time when the checkInClaim object was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.",
          "format": "date-time"
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.checkInMethod": {
      "title": "checkInMethod",
      "enum": [
        "unspecified",
        "manual",
        "inferred",
        "verified",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.entity": {
      "title": "entity",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for an entity. Read-only."
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.fixtureMap": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.baseMapFeature"
        },
        {
          "title": "fixtureMap",
          "type": "object",
          "properties": {
            "placeId": {
              "type": [
                "string",
                "null"
              ],
              "description": "Identifier for the floor to which this fixtureMap belongs."
            }
          },
          "additionalProperties": {
            "type": "object"
          }
        }
      ]
    },
    "microsoft.graph.footprintMap": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.baseMapFeature"
        },
        {
          "title": "footprintMap",
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        }
      ]
    },
    "microsoft.graph.levelMap": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.baseMapFeature"
        },
        {
          "title": "levelMap",
          "type": "object",
          "properties": {
            "placeId": {
              "type": [
                "string",
                "null"
              ],
              "description": "Identifier of the floor to which this levelMap belongs."
            },
            "fixtures": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/microsoft.graph.fixtureMap"
              },
              "description": "Collection of fixtures (such as furniture or equipment) on this level. Supports upsert.",
              "x-ms-navigationProperty": true
            },
            "sections": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/microsoft.graph.sectionMap"
              },
              "description": "Collection of sections (such as zones or partitions) on this level. Supports upsert.",
              "x-ms-navigationProperty": true
            },
            "units": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/microsoft.graph.unitMap"
              },
              "description": "Collection of units (such as rooms or offices) on this level. Supports upsert.",
              "x-ms-navigationProperty": true
            }
          },
          "additionalProperties": {
            "type": "object"
          }
        }
      ]
    },
    "microsoft.graph.outlookGeoCoordinates": {
      "title": "outlookGeoCoordinates",
      "type": "object",
      "properties": {
        "accuracy": {
          "type": [
            "number",
            "null"
          ],
          "description": "The accuracy of the latitude and longitude. As an example, the accuracy can be measured in meters, such as the latitude and longitude are accurate to within 50 meters.",
          "format": "double"
        },
        "altitude": {
          "type": [
            "number",
            "null"
          ],
          "description": "The altitude of the location.",
          "format": "double"
        },
        "altitudeAccuracy": {
          "type": [
            "number",
            "null"
          ],
          "description": "The accuracy of the altitude.",
          "format": "double"
        },
        "latitude": {
          "type": [
            "number",
            "null"
          ],
          "description": "The latitude of the location.",
          "format": "double"
        },
        "longitude": {
          "type": [
            "number",
            "null"
          ],
          "description": "The longitude of the location.",
          "format": "double"
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.physicalAddress": {
      "title": "physicalAddress",
      "type": "object",
      "properties": {
        "city": {
          "type": [
            "string",
            "null"
          ],
          "description": "The city."
        },
        "countryOrRegion": {
          "type": [
            "string",
            "null"
          ],
          "description": "The country or region. It's a free-format string value, for example, 'United States'."
        },
        "postalCode": {
          "type": [
            "string",
            "null"
          ],
          "description": "The postal code."
        },
        "state": {
          "type": [
            "string",
            "null"
          ],
          "description": "The state."
        },
        "street": {
          "type": [
            "string",
            "null"
          ],
          "description": "The street."
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.place": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "place",
          "type": "object",
          "properties": {
            "address": {
              "$ref": "#/$defs/microsoft.graph.physicalAddress"
            },
            "displayName": {
              "type": "string",
              "description": "The name that is associated with the place."
            },
            "geoCoordinates": {
              "$ref": "#/$defs/microsoft.graph.outlookGeoCoordinates"
            },
            "isWheelChairAccessible": {
              "type": [
                "boolean",
                "null"
              ],
              "description": "Indicates whether the place is wheelchair accessible."
            },
            "label": {
              "type": [
                "string",
                "null"
              ],
              "description": "User-defined description of the place."
            },
            "parentId": {
              "type": [
                "string",
                "null"
              ],
              "description": "The ID of a parent place."
            },
            "phone": {
              "type": [
                "string",
                "null"
              ],
              "description": "The phone number of the place."
            },
            "placeId": {
              "type": [
                "string",
                "null"
              ],
              "description": "A stable service-level identifier for the place object used by Places workloads."
            },
            "tags": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Custom tags that are associated with the place for categorization or filtering."
            },
            "checkIns": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/microsoft.graph.checkInClaim"
              },
              "description": "A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place.",
              "x-ms-navigationProperty": true
            }
          },
          "additionalProperties": {
            "type": "object"
          }
        }
      ]
    },
    "microsoft.graph.placeFeatureEnablement": {
      "title": "placeFeatureEnablement",
      "enum": [
        "unknown",
        "enabled",
        "disabled",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.resourceLink": {
      "title": "resourceLink",
      "type": "object",
      "properties": {
        "linkType": {
          "$ref": "#/$defs/microsoft.graph.resourceLinkType"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "The link text that is visible in the Places app. The maximum length is 200 characters."
        },
        "value": {
          "type": [
            "string",
            "null"
          ],
          "description": "The URL of the resource link. The maximum length is 200 characters."
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.resourceLinkType": {
      "title": "resourceLinkType",
      "enum": [
        "url",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.sectionMap": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.baseMapFeature"
        },
        {
          "title": "sectionMap",
          "type": "object",
          "properties": {
            "placeId": {
              "type": [
                "string",
                "null"
              ],
              "description": "Identifier of the section to which this sectionMap belongs."
            }
          },
          "additionalProperties": {
            "type": "object"
          }
        }
      ]
    },
    "microsoft.graph.unitMap": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.baseMapFeature"
        },
        {
          "title": "unitMap",
          "type": "object",
          "properties": {
            "placeId": {
              "type": [
                "string",
                "null"
              ],
              "description": "Identifier of the place (such as a room) to which this unitMap belongs."
            }
          },
          "additionalProperties": {
            "type": "object"
          }
        }
      ]
    }
  }
}