POST sopimukset/{sopimus_id}/liitteet/lisaa
Lisää annetun tiedoston sopimuksen liitteeksi.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
sopimus_id | integer | Required |
Body Parameters
ApiSopimusUusiLiiteName | Description | Type | Additional information |
---|---|---|---|
FileName | Tiedostonimi | string | RequiredString length: inclusive between 0 and 255 |
Description | Tiedoston kuvaus | string | String length: inclusive between 0 and 255 |
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:
<ApiSopimusUusiLiite xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Agenteq.Tampuuri.ApplicationServiceApi.Contract.Asiakaspalvelu"> <ContentType>sample string 3</ContentType> <Description>sample string 2</Description> <FileContent>QEA=</FileContent> <FileName>sample string 1</FileName> </ApiSopimusUusiLiite>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Palauttaa liiteid:nGenericPostResponse
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>