POST API/AttachFile/UploadFile?FileId={FileId}
Uploads an attached file.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
FileId |
File ID (Issue File ID in advance with /API/AttachFile/CreateFile) |
string |
Required |
Body Parameters
Upload your file as binary data. You can upload up to 10 MB at a time. If you want to upload more than this, please chunk binary data while uploading using Content-Range. Your data will be uploaded as Content-Type: applicaton/octet-stream.
Collection of byteRequest Formats
application/json
Sample:
"QEA="
text/json
Sample:
"QEA="
application/xml
Sample:
<base64Binary xmlns="http://schemas.microsoft.com/2003/10/Serialization/">QEA=</base64Binary>
text/xml
Sample:
<base64Binary xmlns="http://schemas.microsoft.com/2003/10/Serialization/">QEA=</base64Binary>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/octet-stream
Sample:
@@
Response Information
Resource Description
WebApiResultName | Description | Type | Additional information |
---|---|---|---|
Status |
WebAPI result status |
WebApiStatus |
None. |
ErrorMessage |
Error message |
Collection of string |
None. |
Response Formats
application/json
Sample:
{ "Status": 0, "ErrorMessage": [ "sample string 1", "sample string 2" ] }
text/json
Sample:
{ "Status": 0, "ErrorMessage": [ "sample string 1", "sample string 2" ] }
application/xml
Sample:
<WebApiResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JP.DataHub.ApiWeb.Models"> <ErrorMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </ErrorMessage> <Status>Error</Status> </WebApiResult>
text/xml
Sample:
<WebApiResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JP.DataHub.ApiWeb.Models"> <ErrorMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </ErrorMessage> <Status>Error</Status> </WebApiResult>