POST api/Attachment/TSPCourses
Request Information
URI Parameters
None.
Body Parameters
FormDataName | Description | Type | Additional information |
---|---|---|---|
Files | Collection of ValueFile |
None. |
|
Fields | Collection of ValueString |
None. |
Request Formats
application/json, text/json
Sample:
{ "Files": [ { "Name": "sample string 1", "Value": { "FileName": "sample string 1", "MediaType": "sample string 2", "Buffer": "QEA=" } }, { "Name": "sample string 1", "Value": { "FileName": "sample string 1", "MediaType": "sample string 2", "Buffer": "QEA=" } } ], "Fields": [ { "Name": "sample string 1", "Value": "sample string 2" }, { "Name": "sample string 1", "Value": "sample string 2" } ] }
application/xml, text/xml
Sample:
<FormData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MultipartDataMediaFormatter.Infrastructure"> <Fields> <FormData.ValueString> <Name>sample string 1</Name> <Value>sample string 2</Value> </FormData.ValueString> <FormData.ValueString> <Name>sample string 1</Name> <Value>sample string 2</Value> </FormData.ValueString> </Fields> <Files> <FormData.ValueFile> <Name>sample string 1</Name> <Value> <Buffer>QEA=</Buffer> <FileName>sample string 1</FileName> <MediaType>sample string 2</MediaType> </Value> </FormData.ValueFile> <FormData.ValueFile> <Name>sample string 1</Name> <Value> <Buffer>QEA=</Buffer> <FileName>sample string 1</FileName> <MediaType>sample string 2</MediaType> </Value> </FormData.ValueFile> </Files> </FormData>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="sample string 1" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="sample string 1" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="sample string 1"; filename="sample string 1" Content-Type: sample string 2 @@ --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="sample string 1"; filename="sample string 1" Content-Type: sample string 2 @@ --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, multipart/form-data
Sample:
Sample not available.