POST api/Customer/AddAttachment
Adds an attachment into the customer.
Request Information
URI Parameters
None.
Body Parameters
AddCustomerAttachmentPostName | Description | Type | Additional information |
---|---|---|---|
CustomerId |
Adds attachment into customer with this customer id. |
integer |
None. |
FileName |
Filename |
string |
None. |
ContentType |
MIME type |
string |
None. |
Data |
The binary content of the file. |
Collection of byte |
None. |
Request Formats
application/json, text/json
Sample:
{ "CustomerId": 1, "FileName": "file.txt", "ContentType": "text/plain", "Data": null }
application/xml, text/xml
Sample:
<AddCustomerAttachmentPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts"> <ContentType>text/plain</ContentType> <CustomerId>1</CustomerId> <Data i:nil="true" /> <FileName>file.txt</FileName> </AddCustomerAttachmentPost>
Response Information
Resource Description
IHttpActionResultNone.