PUT api/PurchaseOrder/{purchaseOrderId}/SignedDocumentation/{signedDocumentationId}
Upload documents to folder
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| purchaseOrderId | integer |
Required |
|
| signedDocumentationId | integer |
Required |
Body Parameters
SignedDocumentationInsertOrUpdateDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| PurchaseOrderId | integer |
None. |
|
| Title | string |
None. |
|
| SignedDocumentationTypeId | SignedDocumentationTypeId |
None. |
|
| SignedDocumentationTypeDescription | string |
None. |
|
| DocumentId | integer |
None. |
|
| Files | Collection of DocumentBasicInfoDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"purchaseOrderId": 2,
"title": "sample string 3",
"signedDocumentationTypeId": 1,
"signedDocumentationTypeDescription": "PurchaseOrder",
"documentId": 1,
"files": [
{
"id": 1,
"name": "sample string 2"
},
{
"id": 1,
"name": "sample string 2"
}
]
}
text/html
Sample:
{"id":1,"purchaseOrderId":2,"title":"sample string 3","signedDocumentationTypeId":1,"signedDocumentationTypeDescription":"PurchaseOrder","documentId":1,"files":[{"id":1,"name":"sample string 2"},{"id":1,"name":"sample string 2"}]}
application/xml, text/xml
Sample:
<SignedDocumentationInsertOrUpdateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.PurchaseOrderAgg">
<DocumentId>1</DocumentId>
<Files xmlns:d2p1="http://schemas.datacontract.org/2004/07/TR.eSAM.DocumentModule.Application.Dtos.Dtos.DocumentAgg">
<d2p1:DocumentBasicInfoDto>
<d2p1:Id>1</d2p1:Id>
<d2p1:Name>sample string 2</d2p1:Name>
</d2p1:DocumentBasicInfoDto>
<d2p1:DocumentBasicInfoDto>
<d2p1:Id>1</d2p1:Id>
<d2p1:Name>sample string 2</d2p1:Name>
</d2p1:DocumentBasicInfoDto>
</Files>
<Id>1</Id>
<PurchaseOrderId>2</PurchaseOrderId>
<SignedDocumentationTypeId>PurchaseOrder</SignedDocumentationTypeId>
<Title>sample string 3</Title>
</SignedDocumentationInsertOrUpdateDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiDataResultOfIEnumerableOfBoolean| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Collection of boolean |
None. |
|
| Success | boolean |
None. |
|
| Message | string |
None. |
|
| Errors | Collection of CustomError |
None. |
|
| Warnings | Collection of string |
None. |
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.