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

Lisää uuden muutostyön kommentille liitteen.


Request Information

URI Parameters

NameDescriptionTypeAdditional information
muutostyoilmoitus_id integer Required
muutostyoilmoitus_kommentti_id integer Required

Body Parameters

ApiAlterationCommentAttachmentInsert
NameDescriptionTypeAdditional information
FileName Tiedostonimi string RequiredString length: inclusive between 0 and 255
Description Tiedoston kuvaus string String length: inclusive between 0 and 8
ContentType Tiedoston tyyppi, esim. "image/jpeg" application/vnd.openxmlformats-officedocument.wordprocessingml.document string String length: inclusive between 0 and 255
FileContent Tiedostosisältö Collection of byte RequiredMin length: 1

Request Formats

application/json, text/json
Sample:
{
  "FileName": "sample string 1",
  "Description": "sample string 2",
  "ContentType": "sample string 3",
  "FileContent": "QEA="
}
application/xml, text/xml
Sample:
<ApiAlterationCommentAttachmentInsert xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Agenteq.Tampuuri.ApplicationServiceApi.Contract.Muutosty%C3%B6t">
  <ContentType>sample string 3</ContentType>
  <Description>sample string 2</Description>
  <FileContent>QEA=</FileContent>
  <FileName>sample string 1</FileName>
</ApiAlterationCommentAttachmentInsert>
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>