createBuilding
Mutation
Used to create a new building for a specific site.
createBuilding(input: BuildingCreateRequestInput): BuildingCreateResponse
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
input | BuildingCreateRequestInput | Provide the required input values here, such as the address of the building and the siteId. |
Returns
Example
Request
mutation CreateBuilding($input: BuildingCreateRequestInput) {
createBuilding(input: $input) {
building {
id
name
siteId
}
}
}