POST api/Notifications/Subcontracts/{subcontractId}/Communications/{communicationId}/DocumentationMulti
Create comunication documentation with multiple files
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| subcontractId | integer |
Required |
|
| communicationId | integer |
Required |
Body Parameters
Collection of CommunicationCreateDocumentationDto| Name | Description | Type | Additional information |
|---|---|---|---|
| CommunicationTypeId | CommunicationTypeId |
None. |
|
| Files | Collection of DocumentBasicInfoDto |
None. |
|
| HasAttachments | boolean |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"communicationTypeId": 1,
"files": [
{
"id": 1,
"name": "sample string 2"
},
{
"id": 1,
"name": "sample string 2"
}
],
"hasAttachments": true
},
{
"communicationTypeId": 1,
"files": [
{
"id": 1,
"name": "sample string 2"
},
{
"id": 1,
"name": "sample string 2"
}
],
"hasAttachments": true
}
]
text/html
Sample:
[{"communicationTypeId":1,"files":[{"id":1,"name":"sample string 2"},{"id":1,"name":"sample string 2"}],"hasAttachments":true},{"communicationTypeId":1,"files":[{"id":1,"name":"sample string 2"},{"id":1,"name":"sample string 2"}],"hasAttachments":true}]
application/xml, text/xml
Sample:
<ArrayOfCommunicationCreateDocumentationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.NotificationModule.Application.Dtos.Dtos.NotificationAgg">
<CommunicationCreateDocumentationDto>
<CommunicationTypeId>MainLetter</CommunicationTypeId>
<Files xmlns:d3p1="http://schemas.datacontract.org/2004/07/TR.eSAM.DocumentModule.Application.Dtos.Dtos.DocumentAgg">
<d3p1:DocumentBasicInfoDto>
<d3p1:Id>1</d3p1:Id>
<d3p1:Name>sample string 2</d3p1:Name>
</d3p1:DocumentBasicInfoDto>
<d3p1:DocumentBasicInfoDto>
<d3p1:Id>1</d3p1:Id>
<d3p1:Name>sample string 2</d3p1:Name>
</d3p1:DocumentBasicInfoDto>
</Files>
<HasAttachments>true</HasAttachments>
</CommunicationCreateDocumentationDto>
<CommunicationCreateDocumentationDto>
<CommunicationTypeId>MainLetter</CommunicationTypeId>
<Files xmlns:d3p1="http://schemas.datacontract.org/2004/07/TR.eSAM.DocumentModule.Application.Dtos.Dtos.DocumentAgg">
<d3p1:DocumentBasicInfoDto>
<d3p1:Id>1</d3p1:Id>
<d3p1:Name>sample string 2</d3p1:Name>
</d3p1:DocumentBasicInfoDto>
<d3p1:DocumentBasicInfoDto>
<d3p1:Id>1</d3p1:Id>
<d3p1:Name>sample string 2</d3p1:Name>
</d3p1:DocumentBasicInfoDto>
</Files>
<HasAttachments>true</HasAttachments>
</CommunicationCreateDocumentationDto>
</ArrayOfCommunicationCreateDocumentationDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiDataResultOfBoolean| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | 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.