PUT api/files/attach

Attaches the specified document file to the specified document.

Request Information

URI Parameters

None.

Body Parameters

AttachDocumentFileDTO
NameDescriptionTypeAdditional information
ID

Id uniquely identifying the file document.

globally unique identifier

None.

DocumentURL

Linked document URL.

string

None.

DocumentId

Document ID.

string

None.

Hash

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": "f57cba16-584e-4b05-ab88-657f1cadcd74",
  "DocumentURL": "sample string 2",
  "DocumentId": "sample string 3",
  "Hash": "sample string 4"
}

text/html

Sample:
{"ID":"f57cba16-584e-4b05-ab88-657f1cadcd74","DocumentURL":"sample string 2","DocumentId":"sample string 3","Hash":"sample string 4"}

application/xml, text/xml

Sample:
<AttachDocumentFileDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.WebAPI.DTOs">
  <DocumentId>sample string 3</DocumentId>
  <DocumentURL>sample string 2</DocumentURL>
  <Hash>sample string 4</Hash>
  <ID>f57cba16-584e-4b05-ab88-657f1cadcd74</ID>
</AttachDocumentFileDTO>

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 'AttachDocumentFileDTO'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.