Description
CreateBuildingPlant web This method is used to create a plant for a building by providing the building information and Matrikkel.
Request
Parameter | Type | Mandatory/Optional |
---|
Comments | Maximum character length/limit | Description |
---|
building | BuildingInput | Mandatory | Not Relevant |
Building number BuildingNumber and iteration (løpenr). |
Building number BuildingNumber is mandatory. |
Iteration can be zero.matrikkelMatrikkel | Matrikkel | Mandatory | Not Relevant | Matrikkel of the building. |
customerNameapplicationName | string | Mandatory |
Name of customer for the plant. (Length of the CustomerName must Should be less than or equal to |
100)applicationName | string | Mandatory | Third party application identifier, identifying the client consuming the web service. (Length of the ApplicationName should be less than or equal to 10) |
10 characters | The name of the integration partner |
Request - input sample
Image Added
NOTE: The building iteration (løpenr) will be obsolete in the future.
Response
The CreateBuildingPlant web method will create creates the Plant plant in the system, and return Following properties of returns the following properties for the created plant back to the client.
info information associated with the newly created plant |
Response - output sample
Image Added
Exceptions
Error Code | Description |
---|
105 | The Plant already exists in the system |
123 | An exception occurred while processing your request |
138 |
ApplicationName is allowed character limit allowed (10) |
146 | The |
application name CustomerName length is exceeded maximum allowed character limit (100)applicationName is not set |
172 | 167 | You are not authorized to use this web method |
187 |
Building number BuildingNumber is not provided |
188 | Matrikkel is not provided |
189 | No buildings |
found 190 | Customer name is not setare connected to the given |
matrikkel and building numberMatrikkel and BuildingNumber |
200 | The given BuildingNumber is not connected to the given Matrikkel. Please check your input. |
280 | There are no buildings available for the given BuildingNumber, Matrikkel and Iteration |