FGC-RBAC
组织管理

新增组织

POST
/AddOrg

新增一个组织节点,可指定名称、父级节点、组织级别及描述。

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://camp.app.hzgcloud.cn/rbac/ServerCommand/AddOrg" \  -H "Content-Type: application/json" \  -d '{    "orgName": "测试组织节点",    "orgPNodeId": null,    "orgLevelId": null,    "description": ""  }'
{
  "ErrCode": 0,
  "Message": "添加成功",
  "data": {
    "orgId": 1,
    "orgName": "测试组织节点",
    "orgPNodeId": null,
    "orgLevelId": null,
    "sort": 0,
    "orgPath": "测试组织节点",
    "description": ""
  }
}