POST api/document/reference/{referenceId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
referenceId

integer

Required

Body Parameters

DocumentSubModel
NameDescriptionTypeAdditional information
OverwriteFiles

boolean

None.

DocumentId

integer

None.

ReferenceId

integer

None.

ReferenceType

string

None.

Name

string

None.

FileName

string

None.

URL

string

None.

CreatedOn

date

None.

Request Formats

application/json, text/json

Sample:
{
  "OverwriteFiles": true,
  "DocumentId": 2,
  "ReferenceId": 3,
  "ReferenceType": "sample string 4",
  "Name": "sample string 5",
  "FileName": "sample string 6",
  "URL": "sample string 7",
  "CreatedOn": "2024-12-14T22:36:41.05121+00:00"
}

application/xml, text/xml

Sample:
<DocumentSubModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ALTAMBS.Business.Entities.Models">
  <CreatedOn>2024-12-14T22:36:41.05121+00:00</CreatedOn>
  <DocumentId>2</DocumentId>
  <FileName>sample string 6</FileName>
  <Name>sample string 5</Name>
  <ReferenceId>3</ReferenceId>
  <ReferenceType>sample string 4</ReferenceType>
  <URL>sample string 7</URL>
  <OverwriteFiles>true</OverwriteFiles>
</DocumentSubModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.