Skip to main content

updateBuilding

Mutation

Used to update the details of a specific building.

updateBuilding(input: BuildingUpdateRequestInput): BuildingUpdateResponse

Arguments​

ArgumentTypeDefaultDescription
inputBuildingUpdateRequestInputProvide the building details you want to update here, such as name and address.

Returns​

BuildingUpdateResponse

Example​

Request
mutation UpdateBuilding($input: BuildingUpdateRequestInput) {
updateBuilding(input: $input) {
building {
id
name
siteId
}
}
}