POST jxc_api/Department/Add

Request Information

URI Parameters

None.

Body Parameters

DepartmentEditModel
NameDescriptionTypeAdditional information
AccAsId

integer

None.

Id

integer

None.

No

string

None.

Name

string

None.

Level

integer

None.

ParentId

integer

None.

ParentName

string

None.

ParentNo

string

None.

Manager

string

None.

Phone

string

None.

StartDate

date

None.

EndDate

date

None.

Status

integer

None.

Note

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AccAsId": 1,
  "Id": 2,
  "No": "sample string 3",
  "Name": "sample string 4",
  "Level": 5,
  "ParentId": 6,
  "ParentName": "sample string 7",
  "ParentNo": "sample string 8",
  "Manager": "sample string 9",
  "Phone": "sample string 10",
  "StartDate": "2024-11-25 02:50:55",
  "EndDate": "2024-11-25 02:50:55",
  "Status": 11,
  "Note": "sample string 12"
}

application/xml, text/xml

Sample:
<DepartmentEditModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model.ToAcc.ErpAccModel">
  <AccAsId>1</AccAsId>
  <EndDate>2024-11-25T02:50:55.3569167+08:00</EndDate>
  <Id>2</Id>
  <Level>5</Level>
  <Manager>sample string 9</Manager>
  <Name>sample string 4</Name>
  <No>sample string 3</No>
  <Note>sample string 12</Note>
  <ParentId>6</ParentId>
  <ParentName>sample string 7</ParentName>
  <ParentNo>sample string 8</ParentNo>
  <Phone>sample string 10</Phone>
  <StartDate>2024-11-25T02:50:55.3569167+08:00</StartDate>
  <Status>11</Status>
</DepartmentEditModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MessageModel
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

Data

Object

None.

StatusCode

StatusCode

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "Data": {},
  "StatusCode": 100
}

application/xml, text/xml

Sample:
<MessageModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model">
  <_x003C_Data_x003E_k__BackingField />
  <_x003C_Message_x003E_k__BackingField>sample string 2</_x003C_Message_x003E_k__BackingField>
  <_x003C_StatusCode_x003E_k__BackingField>CONTINUE</_x003C_StatusCode_x003E_k__BackingField>
  <_x003C_Success_x003E_k__BackingField>true</_x003C_Success_x003E_k__BackingField>
</MessageModel>