CreateBuildingPlant

Description

This method is used to create a plant for a building by providing the building information and Matrikkel. 

Request

ParameterTypeMandatory/OptionalMaximum character length/limitDescription
buildingBuildingInputMandatoryNot RelevantBuildingNumber and iteration (løpenr). BuildingNumber is mandatory.
MatrikkelMatrikkelMandatoryNot RelevantMatrikkel of the building.
applicationNamestringMandatoryShould be less than or equal to 10 charactersThe name of the integration partner

Request - input sample


NOTE: The building iteration (løpenr) will be obsolete in the future. 

Response

The CreateBuildingPlant method creates the plant in the system, and returns the following properties for the created plant.

TypeDescription
BuildingPlantBuilding and plant information associated with the newly created plant

 

Response - output sample

Exceptions

Error CodeDescription
105The Plant already exists in the system
123An exception occurred while processing your request
138applicationName length has exceeded the maximum character limit allowed (10) 
146The applicationName is not set
167You are not authorized to use this web method
187BuildingNumber is not provided
188Matrikkel is not provided
189No buildings are connected to the given Matrikkel and BuildingNumber
200The given BuildingNumber is not connected to the given Matrikkel. Please check your input.
280There are no buildings available for the given BuildingNumber, Matrikkel and Iteration