POST api/resources/multipart/upload

Uploads a portion of a resource to the repository. Part should be between 5MB and ~50MB.

Request Information

URI Parameters

None.

Body Parameters

Arguments describing the part of the resource being uploaded with this request.

UploadMultipartResourcePartArgs
NameDescriptionTypeAdditional information
ResourceIdentifier

The identifier for the resource

globally unique identifier

None.

PartNumber

The sequence number of this part of the resource.

integer

None.

FinalPart

Is this the final part segment of the resource.

boolean

None.

Md5Digest

The Md5Digest of the resource bytes in this part. This helps ensure the resource got transferred correctly.
https://msdn.microsoft.com/en-us/library/system.security.cryptography.md5.aspx
"The quick brown fox jumps over the lazy dog" = 9e107d9d372bb6826bd81d3542a419d6
"The quick brown fox jumps over the lazy dog." = e4d909c290d0fb1ca068ffaddf22cbd0
"" = d41d8cd98f00b204e9800998ecf8427e

string

None.

ResourceBytes

The bytes of the resource to be stored.

Collection of byte

None.

Request Formats

application/json, text/json

Sample:
{
  "ResourceIdentifier": "08243bbd-3df6-4db4-8705-f5c05e7b28ea",
  "PartNumber": 2,
  "FinalPart": true,
  "Md5Digest": "sample string 4",
  "ResourceBytes": "QEA="
}

application/xml, text/xml

Sample:
<UploadMultipartResourcePartArgs xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ResourceIdentifier>08243bbd-3df6-4db4-8705-f5c05e7b28ea</ResourceIdentifier>
  <PartNumber>2</PartNumber>
  <FinalPart>true</FinalPart>
  <Md5Digest>sample string 4</Md5Digest>
  <ResourceBytes>QEA=</ResourceBytes>
</UploadMultipartResourcePartArgs>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Simple HttpStatusCode response. <br /> In the case of a MD5 hash mismatch, a HTTP Status of 422 will be returned. https://tools.ietf.org/html/rfc4918#section-11.2 <br /> In rare cases, a HTTP status of 409 could be returned as well.

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.