POST department/Create

Request Information

URI Parameters

None.

Body Parameters

DepartmentEntity
NameDescriptionTypeAdditional information
TenantId

integer

None.

DeptId

integer

None.

TransactionType

string

None.

Department

string

None.

Description

string

None.

DCBalance

integer

None.

StockCategory

string

None.

LabourStockCategory

string

None.

IsActive

boolean

None.

PostingTypeId

integer

None.

DOA_PathID

integer

None.

StockList

string

None.

UseDescriptions

boolean

None.

CanEditDescription

boolean

None.

AutoCreate

boolean

None.

UseTemplateId

integer

None.

UseMISSuffix

string

None.

UseStockId

integer

None.

ReportCode

string

None.

BulkDOA_PathId

integer

None.

ACC_TaxType

integer

None.

JobType

string

None.

StockDesc

string

None.

Request Formats

application/json, text/json

Sample:
{
  "TenantId": 1,
  "DeptId": 2,
  "TransactionType": "sample string 3",
  "Department": "sample string 4",
  "Description": "sample string 5",
  "DCBalance": 1,
  "StockCategory": "sample string 6",
  "LabourStockCategory": "sample string 7",
  "IsActive": true,
  "PostingTypeId": 1,
  "DOA_PathID": 1,
  "StockList": "sample string 8",
  "UseDescriptions": true,
  "CanEditDescription": true,
  "AutoCreate": true,
  "UseTemplateId": 1,
  "UseMISSuffix": "sample string 11",
  "UseStockId": 1,
  "ReportCode": "sample string 12",
  "BulkDOA_PathId": 1,
  "ACC_TaxType": 1,
  "JobType": "sample string 13",
  "StockDesc": "sample string 14"
}

text/html

Sample:
{"TenantId":1,"DeptId":2,"TransactionType":"sample string 3","Department":"sample string 4","Description":"sample string 5","DCBalance":1,"StockCategory":"sample string 6","LabourStockCategory":"sample string 7","IsActive":true,"PostingTypeId":1,"DOA_PathID":1,"StockList":"sample string 8","UseDescriptions":true,"CanEditDescription":true,"AutoCreate":true,"UseTemplateId":1,"UseMISSuffix":"sample string 11","UseStockId":1,"ReportCode":"sample string 12","BulkDOA_PathId":1,"ACC_TaxType":1,"JobType":"sample string 13","StockDesc":"sample string 14"}

application/xml, text/xml

Sample:
<DepartmentEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ListenerOnline.BusinessEntities.Common">
  <ACC_TaxType>1</ACC_TaxType>
  <AutoCreate>true</AutoCreate>
  <BulkDOA_PathId>1</BulkDOA_PathId>
  <CanEditDescription>true</CanEditDescription>
  <DCBalance>1</DCBalance>
  <DOA_PathID>1</DOA_PathID>
  <Department>sample string 4</Department>
  <DeptId>2</DeptId>
  <Description>sample string 5</Description>
  <IsActive>true</IsActive>
  <JobType>sample string 13</JobType>
  <LabourStockCategory>sample string 7</LabourStockCategory>
  <PostingTypeId>1</PostingTypeId>
  <ReportCode>sample string 12</ReportCode>
  <StockCategory>sample string 6</StockCategory>
  <StockDesc>sample string 14</StockDesc>
  <StockList>sample string 8</StockList>
  <TenantId>1</TenantId>
  <TransactionType>sample string 3</TransactionType>
  <UseDescriptions>true</UseDescriptions>
  <UseMISSuffix>sample string 11</UseMISSuffix>
  <UseStockId>1</UseStockId>
  <UseTemplateId>1</UseTemplateId>
</DepartmentEntity>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.