POST api/Document/InsertDocumentApproval

Request Information

URI Parameters

None.

Body Parameters

W_AdminLicense
NameDescriptionTypeAdditional information
UserID

integer

Required

Matching regular expression pattern: ^[0-9]{1,11}$

DocumentID

integer

Required

Matching regular expression pattern: ^[0-9]{1,11}$

OfficialDocumentName

string

Required

DocumentStatus

VerificationStatus

Required

DocumentStartDate

date

Required

Data type: DateTime

DocumentEndDate

date

Required

Data type: DateTime

Comments

string

Required

Request Formats

application/json, text/json

Sample:
{
  "userID": 1,
  "documentID": 2,
  "officialDocumentName": "sample string 3",
  "documentStatus": "PENDING",
  "documentStartDate": "2019-05-21T14:28:36.7482213-07:00",
  "documentEndDate": "2019-05-21T14:28:36.7482213-07:00",
  "comments": "sample string 6"
}

application/xml, text/xml

Sample:
<W_AdminLicense xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures">
  <Comments>sample string 6</Comments>
  <DocumentEndDate>2019-05-21T14:28:36.7482213-07:00</DocumentEndDate>
  <DocumentID>2</DocumentID>
  <DocumentStartDate>2019-05-21T14:28:36.7482213-07:00</DocumentStartDate>
  <DocumentStatus>PENDING</DocumentStatus>
  <OfficialDocumentName>sample string 3</OfficialDocumentName>
  <UserID>1</UserID>
</W_AdminLicense>

multipart/form-data

Sample:
<W_AdminLicense xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures"><Comments>sample string 6</Comments><DocumentEndDate>2019-05-21T14:28:36.7482213-07:00</DocumentEndDate><DocumentID>2</DocumentID><DocumentStartDate>2019-05-21T14:28:36.7482213-07:00</DocumentStartDate><DocumentStatus>PENDING</DocumentStatus><OfficialDocumentName>sample string 3</OfficialDocumentName><UserID>1</UserID></W_AdminLicense>

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

Response Information

Resource Description

DBStatus
NameDescriptionTypeAdditional information
Type

DBOperation

None.

Message

Collection of DBMessageType

None.

InnerException

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "type": "ERROR",
  "message": [
    "SUCCESSFULLY_DATA_INSERTED",
    "SUCCESSFULLY_DATA_INSERTED"
  ],
  "innerException": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<DBStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures">
  <InnerException xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </InnerException>
  <Message xmlns:d2p1="http://schemas.datacontract.org/2004/07/DBEnumStructure">
    <d2p1:DBMessageType>SUCCESSFULLY_DATA_INSERTED</d2p1:DBMessageType>
    <d2p1:DBMessageType>SUCCESSFULLY_DATA_INSERTED</d2p1:DBMessageType>
  </Message>
  <Type>ERROR</Type>
</DBStatus>

multipart/form-data

Sample:
<DBStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures"><InnerException xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d2p1:string>sample string 1</d2p1:string><d2p1:string>sample string 2</d2p1:string></InnerException><Message xmlns:d2p1="http://schemas.datacontract.org/2004/07/DBEnumStructure"><d2p1:DBMessageType>SUCCESSFULLY_DATA_INSERTED</d2p1:DBMessageType><d2p1:DBMessageType>SUCCESSFULLY_DATA_INSERTED</d2p1:DBMessageType></Message><Type>ERROR</Type></DBStatus>