CreateGroupDirectory - 协作空间-空间资料-创建目录

更新时间:
复制 MD 格式

创建协作空间资料目录

接口说明

有效空间成员可创建物理子目录;父目录省略或 root 时使用内部根,首次惰性创建。父目录必须属于当前空间。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

POST /openapi/createGroupDirectory HTTP/1.1

请求参数

名称

类型

必填

描述

示例值

tenantId

string

否

租户 ID,公共参数,缺省时使用调用方默认租户。

10000

groupId

string

是

项目组 ID。

group_example

name

string

是

更新后的筛选视图名称。

项目资料

description

string

否

工作空间描述。

项目说明

parentDirectoryId

string

否

目录 ID

dir_parent

返回参数

名称

类型

描述

示例值

object

响应对象

code

string

SUCCESS 为成功,失败情况返回对应错误类型,比如 ERR_BAD_REQUEST ERR_VALIDATION_FAILED ERR_INTERNAL_SERVER_ERROR

200

description

string

AI 助理的描述

项目说明

directoryId

string

目录 ID。

dir_example

directoryType

string

目录类型

GROUP

groupId

string

项目组 ID。

group_example

kbRootDirectoryId

string

知识库根目录 id

dir_root

message

string

返回信息。

The current zone list is illegal.

name

string

工作表的名称。

项目资料

parentDirectoryId

string

目录 ID

dir_parent

requestId

string

请求 ID

F4A9EB1C-6952-5CCC-B1DC-355576FC82A7

示例

正常返回示例

JSON格式

{
  "code": "200",
  "description": "项目说明",
  "directoryId": "dir_example",
  "directoryType": "GROUP",
  "groupId": "group_example",
  "kbRootDirectoryId": "dir_root",
  "message": "The current zone list is illegal.",
  "name": "项目资料",
  "parentDirectoryId": "dir_parent",
  "requestId": "F4A9EB1C-6952-5CCC-B1DC-355576FC82A7"
}

错误码

访问错误中心错误中心查看更多错误码。

变更历史

更多信息,参考变更详情变更详情。