POST kohdetiedot/kohteet/create
!!!Vain sisäiseen käyttöön!!! Lisää kohteen pohjatiedot kohderekisteriin.
Request Information
URI Parameters
None.
Body Parameters
Lisättän kohteen tiedot ApiCreateKohdeRequestName | Description | Type | Additional information |
---|---|---|---|
Type | Kohteen tyypin metanimi | string | RequiredMax length: 50 |
ParentId | Kohde jonka alle uusi kohde sijoitetaan | integer | None. |
AdditionalInformation | Kohteeseen liittyvät lisätiedot | string | Max length: 2000 |
Request Formats
application/json, text/json
Sample:
{ "Type": "sample string 1", "ParentId": 1, "AdditionalInformation": "sample string 2" }
application/xml, text/xml
Sample:
<ApiCreateKohdeRequest 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> <ParentId>1</ParentId> <Type>sample string 1</Type> </ApiCreateKohdeRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
GenericPostResponse
Name | Description | Type | Additional 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>