POST api/cases/{caseId}/attachmentchunks

Add an attachment in chunks

Request Information

URI Parameters

NameDescriptionTypeAdditional information
caseId

string

Required

Body Parameters

AttachmentChunk
NameDescriptionTypeAdditional information
StartByte

integer

None.

EndByte

integer

None.

TotalBytes

integer

None.

Data

Collection of byte

None.

FileName

string

None.

MimeType

string

None.

Request Formats

application/json, text/json

Sample:
{
  "StartByte": 1,
  "EndByte": 2,
  "TotalBytes": 3,
  "Data": "QEA=",
  "FileName": "sample string 4",
  "MimeType": "sample string 5"
}

application/xml, text/xml

Sample:
<AttachmentChunk xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XCapture.DTO">
  <Data>QEA=</Data>
  <EndByte>2</EndByte>
  <FileName>sample string 4</FileName>
  <MimeType>sample string 5</MimeType>
  <StartByte>1</StartByte>
  <TotalBytes>3</TotalBytes>
</AttachmentChunk>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AttachmentChunk'.

Response Information

Resource Description

attachmentId

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>