You need to enable JavaScript to run this app.
导航
CreateOrganizationalUnit - 创建企业组织单元
最近更新时间:2025.06.23 10:37:26首次发布时间:2024.01.11 17:42:36
我的收藏
有用
有用
无用
无用

创建企业组织单元

调试

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

参数
类型
是否必填
示例值
描述
Action
String

CreateOrganizationalUnit

要执行的操作,取值:CreateOrganizationalUnit。

Version
String

2022-01-01

API的版本,取值:2022-01-01。

ParentId
String

134444444

父组织单元ID

Name
String

运维部门

组织单元名称

Description
String

负责运维的部门

描述

返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结构

参数
类型
示例值
描述
ID
String

1222222222

单元ID

请求示例

GET /?Action= CreateOrganizationalUnit&Version=2022-01-01 
--header 'Content-Type: application/json' \
-d '{"ParentId": 0011223344556677888","Name":name"}'

返回示例

{
    "ResponseMetadata": {
        "RequestId": "02162970384296100000000000000000000ffff0a4f0a5241c825",
        "Action": "CreateOrganizationalUnit",
        "Version": "20200101"
    },
    "Result": {
        "ID": "0011223344556677889"
    }
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

状态码
错误码
错误信息
说明
400
RecordAlreadyExists

record %s already exists

记录已存在

400
ConcurrentException

concurrent request exception

并发请求异常

404
RecordNotExists

record %s not exists

记录不存在