POST api/Dept/saveDept

Request Information

URI Parameters

None.

Body Parameters

EntSysDept
NameDescriptionTypeAdditional information
Id

integer

None.

DeptCode

string

None.

DeptName

string

None.

Descr

string

None.

Status

string

None.

CreateBy

string

None.

CreateTime

date

None.

Plant

string

None.

ShowSeqence

integer

None.

Usd1

string

None.

Usd2

string

None.

Organization_Code

string

None.

PageSize

integer

None.

PageIndex

integer

None.

TotalCount

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "deptCode": "sample string 2",
  "deptName": "sample string 3",
  "descr": "sample string 4",
  "status": "sample string 5",
  "createBy": "sample string 6",
  "createTime": "2024-11-21 17:00:57",
  "plant": "sample string 7",
  "showSeqence": 8,
  "usd1": "sample string 9",
  "usd2": "sample string 10",
  "organization_Code": "sample string 11",
  "pageSize": 12,
  "pageIndex": 13,
  "totalCount": 14
}

application/xml, text/xml

Sample:
<EntSysDept xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Epass.Model">
  <PageIndex>13</PageIndex>
  <PageSize>12</PageSize>
  <TotalCount>14</TotalCount>
  <CreateBy>sample string 6</CreateBy>
  <CreateTime>2024-11-21T17:00:57.804119+08:00</CreateTime>
  <DeptCode>sample string 2</DeptCode>
  <DeptName>sample string 3</DeptName>
  <Descr>sample string 4</Descr>
  <Id>1</Id>
  <Organization_Code>sample string 11</Organization_Code>
  <Plant>sample string 7</Plant>
  <ShowSeqence>8</ShowSeqence>
  <Status>sample string 5</Status>
  <Usd1>sample string 9</Usd1>
  <Usd2>sample string 10</Usd2>
</EntSysDept>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ReturnResultOfInt32
NameDescriptionTypeAdditional information
Status

integer

None.

Success

boolean

None.

Data

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "status": 1,
  "success": true,
  "data": 3,
  "message": "sample string 4"
}

application/xml, text/xml

Sample:
<ReturnResultOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Epass.Model">
  <Data>3</Data>
  <Message>sample string 4</Message>
  <Status>1</Status>
  <Success>true</Success>
</ReturnResultOfint>