POST api/Departments

Request Information

URI Parameters

None.

Body Parameters

DepartmentModel
NameDescriptionTypeAdditional information
DepartmentID

integer

None.

ClientID

integer

None.

DeptName

string

None.

DeptNameValue

string

None.

AuditInProgress

boolean

None.

DateAuditStart

date

None.

PositionCount

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "DepartmentID": 1,
  "ClientID": 2,
  "DeptName": "sample string 3",
  "DeptNameValue": "sample string 4",
  "AuditInProgress": true,
  "DateAuditStart": "2021-10-17T05:09:57.8175606-07:00",
  "PositionCount": 6
}

application/xml, text/xml

Sample:
<DepartmentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models.Employment">
  <AuditInProgress>true</AuditInProgress>
  <ClientID>2</ClientID>
  <DateAuditStart>2021-10-17T05:09:57.8175606-07:00</DateAuditStart>
  <DepartmentID>1</DepartmentID>
  <DeptName>sample string 3</DeptName>
  <DeptNameValue>sample string 4</DeptNameValue>
  <PositionCount>6</PositionCount>
</DepartmentModel>

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

Response Information

Resource Description

DepartmentModel
NameDescriptionTypeAdditional information
DepartmentID

integer

None.

ClientID

integer

None.

DeptName

string

None.

DeptNameValue

string

None.

AuditInProgress

boolean

None.

DateAuditStart

date

None.

PositionCount

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "DepartmentID": 1,
  "ClientID": 2,
  "DeptName": "sample string 3",
  "DeptNameValue": "sample string 4",
  "AuditInProgress": true,
  "DateAuditStart": "2021-10-17T05:09:57.8175606-07:00",
  "PositionCount": 6
}

application/xml, text/xml

Sample:
<DepartmentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models.Employment">
  <AuditInProgress>true</AuditInProgress>
  <ClientID>2</ClientID>
  <DateAuditStart>2021-10-17T05:09:57.8175606-07:00</DateAuditStart>
  <DepartmentID>1</DepartmentID>
  <DeptName>sample string 3</DeptName>
  <DeptNameValue>sample string 4</DeptNameValue>
  <PositionCount>6</PositionCount>
</DepartmentModel>