POST api/attachment
Request Information
URI Parameters
None.
Body Parameters
Attachment| Name | Description | Type | Additional information |
|---|---|---|---|
| activityId | globally unique identifier |
None. |
|
| imageData | Collection of byte |
None. |
|
| attachmentUniqueId | globally unique identifier |
None. |
|
| oldAttachmentUniqueId | globally unique identifier |
None. |
|
| attachmentId | integer |
None. |
|
| userId | string |
None. |
|
| attachmentName | string |
None. |
|
| createdOn | date |
None. |
|
| updatedOn | date |
None. |
|
| isActive | integer |
None. |
|
| createdBy | string |
None. |
|
| updatedBy | string |
None. |
|
| receivedOn | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"activityId": "bf02a45b-4076-4045-85bc-00c29240552f",
"imageData": "QEA=",
"attachmentUniqueId": "a6563858-d3dc-4ef7-a769-60a27ab97dd2",
"oldAttachmentUniqueId": "b591562b-13d0-410f-9d86-4fd660d43017",
"attachmentId": 3,
"userId": "sample string 4",
"attachmentName": "sample string 5",
"createdOn": "2025-12-12T04:35:48.309627+00:00",
"updatedOn": "2025-12-12T04:35:48.309627+00:00",
"isActive": 6,
"createdBy": "sample string 7",
"updatedBy": "sample string 8",
"receivedOn": "2025-12-12T04:35:48.309627+00:00"
}
text/html
Sample:
{"activityId":"bf02a45b-4076-4045-85bc-00c29240552f","imageData":"QEA=","attachmentUniqueId":"a6563858-d3dc-4ef7-a769-60a27ab97dd2","oldAttachmentUniqueId":"b591562b-13d0-410f-9d86-4fd660d43017","attachmentId":3,"userId":"sample string 4","attachmentName":"sample string 5","createdOn":"2025-12-12T04:35:48.309627+00:00","updatedOn":"2025-12-12T04:35:48.309627+00:00","isActive":6,"createdBy":"sample string 7","updatedBy":"sample string 8","receivedOn":"2025-12-12T04:35:48.309627+00:00"}
application/xml, text/xml
Sample:
<Attachment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TaxDay.Models"> <receivedOn xmlns="http://schemas.datacontract.org/2004/07/TaxDay">2025-12-12T04:35:48.309627+00:00</receivedOn> <activityId>bf02a45b-4076-4045-85bc-00c29240552f</activityId> <attachmentId>3</attachmentId> <attachmentName>sample string 5</attachmentName> <attachmentUniqueId>a6563858-d3dc-4ef7-a769-60a27ab97dd2</attachmentUniqueId> <createdBy>sample string 7</createdBy> <createdOn>2025-12-12T04:35:48.309627+00:00</createdOn> <isActive>6</isActive> <updatedBy>sample string 8</updatedBy> <updatedOn>2025-12-12T04:35:48.309627+00:00</updatedOn> <userId>sample string 4</userId> <imageData>QEA=</imageData> <oldAttachmentUniqueId>b591562b-13d0-410f-9d86-4fd660d43017</oldAttachmentUniqueId> </Attachment>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |