跳到主要内容

创建组织

基本信息

请求方式 POST

请求地址 /api/v1/account/organization/create

请求头

请参考通用参数

参数名称参数值是否必须示例备注
Content-Typeapplication/json

Body 请求参数

名称类型是否必须备注其他信息
codestring非必须编码
parentIdstring必须上级组织
namestring必须架构名称
typestring必须架构类型枚举: group,company,department,unit
externalIdstring非必须外部ID
areastring非必须所在区域
descstring非必须架构描述
orderstring非必须架构排序
enabledboolean非必须是否启用
customobject非必须扩展字段

响应参数

名称类型示例值描述
codestring0返回码。
msgstringsuccess返回码描述。
requestIdstring4a8bd9ec7d54456f6b39f7c9008b0132请求 ID。

错误码

请参考通用错误码