POST kohdetiedot/kohteet/lisaa

Lisää kohteen kohderekisteriin.


Request Information

URI Parameters

None.

Body Parameters

Lisätään kohteen tiedot ApiKohdeLisaaRequest
NameDescriptionTypeAdditional information
Metaname Kohteen tyypin metanimi. Pakollinen jos TypeId ei ole annettu. string Max length: 50
ParentId Kohde jonka alle uusi kohde sijoitetaan. integer None.
AdditionalInformation Kohteeseen liittyvät lisätiedot. string Max length: 2000
PropertyName Kohteen nimi. string None.
TypeId Kohteen tyypin ID. Pakollinen jos Type (metanimi) ei ole annettu. integer None.

Request Formats

application/json, text/json
Sample:
{
  "Metaname": "sample string 1",
  "ParentId": 1,
  "AdditionalInformation": "sample string 2",
  "PropertyName": "sample string 3",
  "TypeId": 1
}
application/xml, text/xml
Sample:
<ApiKohdeLisaaRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Agenteq.Tampuuri.ApplicationServiceApi.Contract.Kohderekisteri">
  <AdditionalInformation>sample string 2</AdditionalInformation>
  <Metaname>sample string 1</Metaname>
  <ParentId>1</ParentId>
  <PropertyName>sample string 3</PropertyName>
  <TypeId>1</TypeId>
</ApiKohdeLisaaRequest>
application/x-www-form-urlencoded
Sample:

Sample not available.


Response Information

Resource Description


GenericPostResponse
NameDescriptionTypeAdditional information
Id Uuden resurssin id. integer None.

Response Formats

application/json, text/json
Sample:
{
  "Id": 1
}
application/xml, text/xml
Sample:
<GenericPostResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Agenteq.Tampuuri.ApplicationServiceApi.Contract">
  <Id>1</Id>
</GenericPostResponse>