POST kohteet/tontti/create
Lisää tontti tyyppisen kohteen perustiedoilla
Request Information
URI Parameters
None.
Body Parameters
Luotavan tontin tiedot ApiTonttiCreateRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Nimi | string | RequiredMax length: 200 | |
| 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:
{
"Nimi": "sample string 1",
"ParentId": 2,
"Lisätiedot": "sample string 3"
}
application/xml, text/xml
Sample:
<ApiTonttiCreateRequest 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 3</Lisätiedot> <ParentId>2</ParentId> <Nimi>sample string 1</Nimi> </ApiTonttiCreateRequest>
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.