You need to enable JavaScript to run this app.
导航

UpdateOrganizationalUnit - 更新企业组织单元

最近更新时间2024.01.11 17:42:36

首次发布时间2024.01.11 17:42:36

更新企业组织单元

请求参数

名称
类型
是否必填
示例值
描述
Action
String

UpdateOrganizationalUnit

要执行的操作,取值:UpdateOrganizationalUnit

Version
String

2022-01-01

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

Name
String

组织单元名称

Description
String

描述

OrgUnitId
String

组织单元ID

响应数据

名称
类型
示例值
描述
暂无数据

示例

请求

GET /?Action= UpdateOrganizationalUnit&Version=2022-01-01 
--header 'Content-Type: application/json' \
-d '{"OrgUnitId": 0011223344556677889","Name":name",Description":"新的描述"}'

响应

{
    "ResponseMetadata": {
        "RequestId": "02162970384296100000000000000000000ffff0a4f0a5241c825",
        "Action": "UpdateOrganizationalUnit",
        "Version": "20200101"
    }
}

错误码

下表提供了该接口业务逻辑相关的错误码。公共错误码请参见公共错误码

HttpCode
错误码
错误信息
描述
400
ConcurrentException
concurrent request exception

并发请求异常

400
PermissionError
No permission to perform action[%s] on resource %s

无权限,没有对该资源进行该操作的权限

500
InternalError
Unknown internal error: %v

未知错误,根据错误信息判断详情

400
RecordAlreadyExists
record %s already exists

记录已存在

400
OrgUnitNotAllowChangeRoot
Can not change root organization unit

root单元无法变更