POST legacy/muutostyot/{muutostyoilmoitus_id}/kommentit/lisaa

Lisää uuden kommentin muutostyölle.


Request Information

URI Parameters

NameDescriptionTypeAdditional information
muutostyoilmoitus_id integer Required

Body Parameters

ApiAlterationCommentInsert
NameDescriptionTypeAdditional information
Kommentti Kommentin tekstisisältö string RequiredString length: inclusive between 0 and 1000
KommenttiTyyppi Kommentin tyyppi ApiAlterationCommentType Required
Laatija Kommentin laatijan nimi string RequiredString length: inclusive between 0 and 50
LaatijanRooli Kommentin laatijan rooli string RequiredString length: inclusive between 0 and 255

Request Formats

application/json, text/json
Sample:
{
  "Kommentti": "sample string 1",
  "KommenttiTyyppi": "Hyväksytty",
  "Laatija": "sample string 2",
  "LaatijanRooli": "sample string 3"
}
application/xml, text/xml
Sample:
<ApiAlterationCommentInsert xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Agenteq.Tampuuri.ApplicationServiceApi.Contract.Muutosty%C3%B6t">
  <Kommentti>sample string 1</Kommentti>
  <KommenttiTyyppi>Hyväksytty</KommenttiTyyppi>
  <Laatija>sample string 2</Laatija>
  <LaatijanRooli>sample string 3</LaatijanRooli>
</ApiAlterationCommentInsert>
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>