IAMService

CreateRole 创建角色。code/name 必填,code 唯一;dataScope 不传时默认为 1。 permissionIds/menuIds 为创建时的初始授权集合,按传入数组整体设置。

post/v1/iam/roles

Request body

dataScopeinteger

数据范围:0/1=全部数据,2=部门数据,3=仅本人,4=自定义。

descriptionstring
menuIdsstring[]
namestring
permissionIdsstring[]
sortOrderinteger

Response

OK

Changes

No recorded changes to this endpoint across all 1 revision of this API.