POST api/genDepartment/Save

Request Information

URI Parameters

None.

Body Parameters

genDepartment
NameDescriptionTypeAdditional information
AlteredOn

date

None.

CreatedOn

date

None.

ActionTypeId

integer

None.

AlteredById

integer

None.

ExpenseAccountId

integer

None.

PayableAcId

integer

None.

LoanAcId

integer

None.

BranchId

integer

None.

CompanyId

integer

None.

CreatedById

integer

None.

DepartmentId

integer

None.

DepartmentTypeProfileId

integer

None.

OrganizationId

integer

None.

UserLogId

integer

None.

DepartmentCode

string

None.

DepartmentName

string

None.

ShortName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AlteredOn": "2025-10-29T13:05:03.6770811+05:00",
  "CreatedOn": "2025-10-29T13:05:03.6770811+05:00",
  "ActionTypeId": 3,
  "AlteredById": 4,
  "ExpenseAccountId": 5,
  "PayableAcId": 6,
  "LoanAcId": 7,
  "BranchId": 8,
  "CompanyId": 9,
  "CreatedById": 10,
  "DepartmentId": 11,
  "DepartmentTypeProfileId": 12,
  "OrganizationId": 13,
  "UserLogId": 14,
  "DepartmentCode": "sample string 15",
  "DepartmentName": "sample string 16",
  "ShortName": "sample string 17"
}

application/xml, text/xml

Sample:
<genDepartment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Architecture.Model.HRM.ProfileManagement">
  <ActionTypeId>3</ActionTypeId>
  <AlteredById>4</AlteredById>
  <AlteredOn>2025-10-29T13:05:03.6770811+05:00</AlteredOn>
  <BranchId>8</BranchId>
  <CompanyId>9</CompanyId>
  <CreatedById>10</CreatedById>
  <CreatedOn>2025-10-29T13:05:03.6770811+05:00</CreatedOn>
  <DepartmentCode>sample string 15</DepartmentCode>
  <DepartmentId>11</DepartmentId>
  <DepartmentName>sample string 16</DepartmentName>
  <DepartmentTypeProfileId>12</DepartmentTypeProfileId>
  <ExpenseAccountId>5</ExpenseAccountId>
  <LoanAcId>7</LoanAcId>
  <OrganizationId>13</OrganizationId>
  <PayableAcId>6</PayableAcId>
  <ShortName>sample string 17</ShortName>
  <UserLogId>14</UserLogId>
</genDepartment>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.