POST api/Entities/AddAttachments
Request Information
URI Parameters
None.
Body Parameters
Collection of AttachmentDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| image | string |
None. |
|
| userId | integer |
None. |
|
| entityCategoryId | integer |
None. |
|
| entityId | integer |
None. |
|
| MobileImage | string |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"image": "sample string 1",
"userId": 2,
"entityCategoryId": 3,
"entityId": 4,
"MobileImage": "sample string 5"
},
{
"image": "sample string 1",
"userId": 2,
"entityCategoryId": 3,
"entityId": 4,
"MobileImage": "sample string 5"
}
]
text/html
Sample:
[{"image":"sample string 1","userId":2,"entityCategoryId":3,"entityId":4,"MobileImage":"sample string 5"},{"image":"sample string 1","userId":2,"entityCategoryId":3,"entityId":4,"MobileImage":"sample string 5"}]
application/xml, text/xml
Sample:
<ArrayOfAttachmentDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DynamicCms.DTOs">
<AttachmentDTO>
<MobileImage>sample string 5</MobileImage>
<entityCategoryId>3</entityCategoryId>
<entityId>4</entityId>
<image>sample string 1</image>
<userId>2</userId>
</AttachmentDTO>
<AttachmentDTO>
<MobileImage>sample string 5</MobileImage>
<entityCategoryId>3</entityCategoryId>
<entityId>4</entityId>
<image>sample string 1</image>
<userId>2</userId>
</AttachmentDTO>
</ArrayOfAttachmentDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
booleanResponse Formats
application/json, text/json, text/html
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>