PUT api/docHistory/{id}

Update an existing record from the History table.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

docHistoryDb
NameDescriptionTypeAdditional information
HistoryID

integer

None.

DocumentID

integer

Required

DocumentTitle

string

None.

VersionID

integer

None.

VersionNumber

string

None.

PersonID

integer

Required

PersonName

string

None.

Action

string

Required

Max length: 30

ActionDate

date

Required

Note

string

Max length: 600

results

Collection of ValidationResult

None.

Request Formats

application/json, text/json

Sample:
{
  "results": null,
  "HistoryID": 1,
  "DocumentID": 2,
  "DocumentTitle": "sample string 3",
  "VersionID": 1,
  "VersionNumber": "sample string 4",
  "PersonID": 5,
  "PersonName": "sample string 6",
  "Action": "sample string 7",
  "ActionDate": "2025-12-06T23:42:03.6783321+00:00",
  "Note": "sample string 9"
}

application/xml, text/xml

Sample:
<docHistoryDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
  <Action>sample string 7</Action>
  <ActionDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:42:03.6783321Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </ActionDate>
  <DocumentID>2</DocumentID>
  <DocumentTitle>sample string 3</DocumentTitle>
  <HistoryID>1</HistoryID>
  <Note>sample string 9</Note>
  <PersonID>5</PersonID>
  <PersonName>sample string 6</PersonName>
  <VersionID>1</VersionID>
  <VersionNumber>sample string 4</VersionNumber>
</docHistoryDb>

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

Response Information

Resource Description

docHistoryDb
NameDescriptionTypeAdditional information
HistoryID

integer

None.

DocumentID

integer

Required

DocumentTitle

string

None.

VersionID

integer

None.

VersionNumber

string

None.

PersonID

integer

Required

PersonName

string

None.

Action

string

Required

Max length: 30

ActionDate

date

Required

Note

string

Max length: 600

results

Collection of ValidationResult

None.

Response Formats

application/json, text/json

Sample:
{
  "results": null,
  "HistoryID": 1,
  "DocumentID": 2,
  "DocumentTitle": "sample string 3",
  "VersionID": 1,
  "VersionNumber": "sample string 4",
  "PersonID": 5,
  "PersonName": "sample string 6",
  "Action": "sample string 7",
  "ActionDate": "2025-12-06T23:42:03.6783321+00:00",
  "Note": "sample string 9"
}

application/xml, text/xml

Sample:
<docHistoryDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
  <Action>sample string 7</Action>
  <ActionDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:42:03.6783321Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </ActionDate>
  <DocumentID>2</DocumentID>
  <DocumentTitle>sample string 3</DocumentTitle>
  <HistoryID>1</HistoryID>
  <Note>sample string 9</Note>
  <PersonID>5</PersonID>
  <PersonName>sample string 6</PersonName>
  <VersionID>1</VersionID>
  <VersionNumber>sample string 4</VersionNumber>
</docHistoryDb>