POST api/DepartmentApi/Create

Request Information

URI Parameters

None.

Body Parameters

DepartmentViewModel
NameDescriptionTypeAdditional information
DepartmentId

integer

None.

DepartmentName

string

Required

CreatedBy

string

None.

CreatedDate

date

None.

UpdatedBy

string

None.

UpdatedDate

date

None.

Status

integer

None.

SaaSid

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DepartmentId": 1,
  "DepartmentName": "sample string 2",
  "CreatedBy": "sample string 3",
  "CreatedDate": "2026-07-18T00:58:11.1134931+05:30",
  "UpdatedBy": "sample string 5",
  "UpdatedDate": "2026-07-18T00:58:11.1134931+05:30",
  "Status": 7,
  "SaaSid": "sample string 8"
}

application/xml, text/xml

Sample:
<DepartmentViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TMSPRO.BusinessModel">
  <CreatedBy>sample string 3</CreatedBy>
  <CreatedDate>2026-07-18T00:58:11.1134931+05:30</CreatedDate>
  <DepartmentId>1</DepartmentId>
  <DepartmentName>sample string 2</DepartmentName>
  <SaaSid>sample string 8</SaaSid>
  <Status>7</Status>
  <UpdatedBy>sample string 5</UpdatedBy>
  <UpdatedDate>2026-07-18T00:58:11.1134931+05:30</UpdatedDate>
</DepartmentViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

JsonResultOfAPIBaseModel
NameDescriptionTypeAdditional information
Content

APIBaseModel

None.

SerializerSettings

JsonSerializerSettings

None.

Encoding

Encoding

None.

Request

HttpRequestMessage

None.

Response Formats

application/json, text/json

Sample:

Sample not available.