POST api/Notifications/Subcontracts/{subcontractId}/Communications/{communicationId}/Documentation
Create a comunication documentation
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| subcontractId | integer |
Required |
|
| communicationId | integer |
Required |
Body Parameters
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
}
text/html
Sample:
{"communicationTypeId":1,"files":[{"id":1,"name":"sample string 2"},{"id":1,"name":"sample string 2"}],"hasAttachments":true}
application/xml, text/xml
Sample:
<CommunicationCreateDocumentationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.NotificationModule.Application.Dtos.Dtos.NotificationAgg">
<CommunicationTypeId>MainLetter</CommunicationTypeId>
<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>
<HasAttachments>true</HasAttachments>
</CommunicationCreateDocumentationDto>
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.