API 参考组织管理
新增组织
POST
/AddOrg新增一个组织节点,可指定名称、父级节点、组织级别及描述。
Authorization
bearer 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://example.com/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": "" }}