Description
CreateBuildingPlant web method is used to create a plant for a building by providing building information and Matrikkel.
Request
Parameter | Type | Mandatory/Optional | Comments |
---|---|---|---|
building | BuildingInput | Mandatory | Building number and iteration (løpenr). Building number is mandatory. Iteration can be zero. |
matrikkel | Matrikkel | Mandatory | Matrikkel of the building. |
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) |
Note
Building Iteration is ignored from the code and there is not need to provide the building iteration. This will get obsoleted in future
Response
CreateBuildingPlant web method will create the Plant in the system, and return Following properties of created plant back to the client.
Type | Description |
---|---|
BuildingPlant | Building and plant info associated with the newly created plant |
Exceptions
Error Code | Description |
---|---|
105 | Plant already exists in system |
123 | An exception occurred while processing your request |
138 | ApplicationName length is exceeded maximum allowed character limit (10) |
146 | The application name is not set |
167 | You are not authorized to use this web method |
187 | Building number is not provided |
188 | Matrikkel is not provided |
189 | No buildings found connected to the given matrikkel and building number |
200 | The given building number is not connected to the given matrikkel. Please check your inputs again |
280 | No Buildings available for the given building number, mattrikel and iteration |
Add Comment