POST kohteet/huoneisto/create
Lisää huoneisto tyyppisen kohteen perustiedoilla
Request Information
URI Parameters
None.
Body Parameters
Luotavan huoneiston tiedot ApiHuoneistoCreateRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Tunnus | Yhtiönumero eli kohteen tunnus. | string | RequiredMax length: 10 |
| Nimi | string | RequiredMax length: 200 | |
| Huoneistoala | string | RequiredMax length: 10 | |
| HuoneistotyyppiId | Huoneistotyypin Id. | integer | Required |
| ParentId | Kohde jonka alle uusi kohde sijoitetaan | integer | Required |
| Lisätiedot | Kohteeseen liittyvät lisätiedot | string | Max length: 2000 |
Request Formats
application/json, text/json
Sample:
{
"Tunnus": "sample string 1",
"Nimi": "sample string 2",
"Huoneistoala": "sample string 3",
"HuoneistotyyppiId": 4,
"ParentId": 5,
"Lisätiedot": "sample string 6"
}
application/xml, text/xml
Sample:
<ApiHuoneistoCreateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Agenteq.Tampuuri.ApplicationServiceApi.Contract.Kohderekisteri.Kohteet"> <Lisätiedot>sample string 6</Lisätiedot> <ParentId>5</ParentId> <Huoneistoala>sample string 3</Huoneistoala> <HuoneistotyyppiId>4</HuoneistotyyppiId> <Nimi>sample string 2</Nimi> <Tunnus>sample string 1</Tunnus> </ApiHuoneistoCreateRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IGenericPostResponse
| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer | None. |
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.