Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

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

Request

ParameterTypeMandatory/Optional
Comments
Maximum character length/limitDescription
buildingBuildingInputMandatoryNot Relevant
Building number
BuildingNumber and iteration (løpenr).
Building number
BuildingNumber is mandatory
. Iteration can be zero
.
matrikkel
MatrikkelMatrikkelMandatoryNot RelevantMatrikkel of the building.
applicationNamestringMandatory
Third party application identifier, identifying the client consuming the web service. (Length of the ApplicationName should
Should be less than or equal to 10
)
charactersThe 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.

TypeDescription
BuildingPlantBuilding and plant
info
information associated with the newly created plant

 

Response - output sample

Image Added

Exceptions

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