POST api/docAssignment

Insert a new record into the Assignments table.

Request Information

URI Parameters

None.

Body Parameters

docAssignmentDb
NameDescriptionTypeAdditional information
AssignmentID

integer

None.

FromTriggerID

integer

None.

FromTriggerName

string

None.

PersonID

integer

Required

PersonName

string

None.

DocumentID

integer

Required

DocumentTitle

string

None.

VersionID

integer

None.

AssignedBy

integer

Required

AssignedByName

string

None.

AssignedDate

date

Required

AssignmentReason

string

None.

SoftDueDate

date

None.

HardDueDate

date

None.

CompletedDate

date

None.

CancelledDate

date

None.

CancelledBy

integer

None.

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

results

Collection of ValidationResult

None.

Request Formats

application/json, text/json

Sample:
{
  "results": null,
  "AssignmentID": 1,
  "FromTriggerID": 2,
  "FromTriggerName": "sample string 3",
  "PersonID": 4,
  "PersonName": "sample string 5",
  "DocumentID": 6,
  "DocumentTitle": "sample string 7",
  "VersionID": 1,
  "AssignedBy": 8,
  "AssignedByName": "sample string 9",
  "AssignedDate": "2025-12-06T23:37:55.7423974+00:00",
  "AssignmentReason": "sample string 11",
  "SoftDueDate": "2025-12-06T23:37:55.7423974+00:00",
  "HardDueDate": "2025-12-06T23:37:55.7423974+00:00",
  "CompletedDate": "2025-12-06T23:37:55.7423974+00:00",
  "CancelledDate": "2025-12-06T23:37:55.7423974+00:00",
  "CancelledBy": 1,
  "CreatedBy": 12,
  "CreatedDate": "2025-12-06T23:37:55.7423974+00:00",
  "UpdatedBy": 14,
  "UpdatedDate": "2025-12-06T23:37:55.7423974+00:00"
}

application/xml, text/xml

Sample:
<docAssignmentDb 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" />
  <AssignedBy>8</AssignedBy>
  <AssignedByName>sample string 9</AssignedByName>
  <AssignedDate>2025-12-06T23:37:55.7423974+00:00</AssignedDate>
  <AssignmentID>1</AssignmentID>
  <AssignmentReason>sample string 11</AssignmentReason>
  <CancelledBy>1</CancelledBy>
  <CancelledDate>2025-12-06T23:37:55.7423974+00:00</CancelledDate>
  <CompletedDate>2025-12-06T23:37:55.7423974+00:00</CompletedDate>
  <CreatedBy>12</CreatedBy>
  <CreatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:37:55.7423974Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDate>
  <DocumentID>6</DocumentID>
  <DocumentTitle>sample string 7</DocumentTitle>
  <FromTriggerID>2</FromTriggerID>
  <FromTriggerName>sample string 3</FromTriggerName>
  <HardDueDate>2025-12-06T23:37:55.7423974+00:00</HardDueDate>
  <PersonID>4</PersonID>
  <PersonName>sample string 5</PersonName>
  <SoftDueDate>2025-12-06T23:37:55.7423974+00:00</SoftDueDate>
  <UpdatedBy>14</UpdatedBy>
  <UpdatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:37:55.7423974Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </UpdatedDate>
  <VersionID>1</VersionID>
</docAssignmentDb>

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

Response Information

Resource Description

docAssignmentDb
NameDescriptionTypeAdditional information
AssignmentID

integer

None.

FromTriggerID

integer

None.

FromTriggerName

string

None.

PersonID

integer

Required

PersonName

string

None.

DocumentID

integer

Required

DocumentTitle

string

None.

VersionID

integer

None.

AssignedBy

integer

Required

AssignedByName

string

None.

AssignedDate

date

Required

AssignmentReason

string

None.

SoftDueDate

date

None.

HardDueDate

date

None.

CompletedDate

date

None.

CancelledDate

date

None.

CancelledBy

integer

None.

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

results

Collection of ValidationResult

None.

Response Formats

application/json, text/json

Sample:
{
  "results": null,
  "AssignmentID": 1,
  "FromTriggerID": 2,
  "FromTriggerName": "sample string 3",
  "PersonID": 4,
  "PersonName": "sample string 5",
  "DocumentID": 6,
  "DocumentTitle": "sample string 7",
  "VersionID": 1,
  "AssignedBy": 8,
  "AssignedByName": "sample string 9",
  "AssignedDate": "2025-12-06T23:37:55.7423974+00:00",
  "AssignmentReason": "sample string 11",
  "SoftDueDate": "2025-12-06T23:37:55.7423974+00:00",
  "HardDueDate": "2025-12-06T23:37:55.7423974+00:00",
  "CompletedDate": "2025-12-06T23:37:55.7423974+00:00",
  "CancelledDate": "2025-12-06T23:37:55.7423974+00:00",
  "CancelledBy": 1,
  "CreatedBy": 12,
  "CreatedDate": "2025-12-06T23:37:55.7423974+00:00",
  "UpdatedBy": 14,
  "UpdatedDate": "2025-12-06T23:37:55.7423974+00:00"
}

application/xml, text/xml

Sample:
<docAssignmentDb 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" />
  <AssignedBy>8</AssignedBy>
  <AssignedByName>sample string 9</AssignedByName>
  <AssignedDate>2025-12-06T23:37:55.7423974+00:00</AssignedDate>
  <AssignmentID>1</AssignmentID>
  <AssignmentReason>sample string 11</AssignmentReason>
  <CancelledBy>1</CancelledBy>
  <CancelledDate>2025-12-06T23:37:55.7423974+00:00</CancelledDate>
  <CompletedDate>2025-12-06T23:37:55.7423974+00:00</CompletedDate>
  <CreatedBy>12</CreatedBy>
  <CreatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:37:55.7423974Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDate>
  <DocumentID>6</DocumentID>
  <DocumentTitle>sample string 7</DocumentTitle>
  <FromTriggerID>2</FromTriggerID>
  <FromTriggerName>sample string 3</FromTriggerName>
  <HardDueDate>2025-12-06T23:37:55.7423974+00:00</HardDueDate>
  <PersonID>4</PersonID>
  <PersonName>sample string 5</PersonName>
  <SoftDueDate>2025-12-06T23:37:55.7423974+00:00</SoftDueDate>
  <UpdatedBy>14</UpdatedBy>
  <UpdatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:37:55.7423974Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </UpdatedDate>
  <VersionID>1</VersionID>
</docAssignmentDb>