updateBuilding
Mutation
Used to update the details of a specific building.
updateBuilding(input: BuildingUpdateRequestInput): BuildingUpdateResponse
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
input | BuildingUpdateRequestInput | Provide the building details you want to update here, such as name and address. |
Returns
Example
Request
mutation UpdateBuilding($input: BuildingUpdateRequestInput) {
updateBuilding(input: $input) {
building {
id
name
siteId
}
}
}