POST api/rsm/deptgroup/AddDepartment

添加部门

Request Information

URI Parameters

None.

Body Parameters

CmsDepartmentData
NameDescriptionTypeAdditional information
Comments

string

None.

DepID

integer

None.

EnableIsolate

boolean

None.

IconName

string

None.

LastDate

date

None.

Name

string

None.

Name1

string

None.

Name2

string

None.

ParentID

integer

None.

ShowOrder

integer

None.

Type

DepartmentType

None.

Url

string

None.

DEP_DASHBOARDID

string

None.

Children

Collection of CmsDepartmentData

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'HS.Platform.CmsDepartmentData'. Path 'Children'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'HS.Platform.CmsDepartmentData'. Path 'Children'.

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

Response Information

Resource Description

result
NameDescriptionTypeAdditional information
error

错误代码

integer

None.

message

错误信息

string

None.

data

数据

Object

None.

stacktrace

详细错误信息

string

None.

otherdata

其他返回数据

Object

None.

LastError

string

None.

IsComplete

boolean

None.

total

integer

None.

index

integer

None.

IsTerminate

boolean

None.

taskgroupid

integer

None.

taskid

integer

None.

msg

string

None.

status

integer

None.

serverTime

date

None.

lockdata

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "error": 1,
  "message": "sample string 2",
  "data": {},
  "stacktrace": "sample string 4",
  "otherdata": {},
  "LastError": "sample string 6",
  "IsComplete": true,
  "total": 8,
  "index": 9,
  "IsTerminate": true,
  "taskgroupid": 11,
  "taskid": 12,
  "msg": "sample string 13",
  "status": 14,
  "serverTime": "2025-04-24T20:57:35.2585973+08:00",
  "lockdata": {}
}