创建团队文档库
标签:文档库
请求说明
| 字段 | 值 |
|---|---|
请求地址 | https://openapi.wps.cn/v7/doclib/create |
HTTP 方法 | POST |
接口描述 | 创建文档库(团队文档) |
签名方式 | KSO-1 |
限频策略 | 无 |
权限要求 | 查询和管理文档库(应用授权) kso.doclib.readwrite查询和管理文档库(用户授权) kso.doclib.readwrite |
请求头 (Headers)
| 属性名 | 类型 | 是否必填 | 描述 | 可选值 |
|---|---|---|---|---|
X-Kso-Id-Type | string | 否 | 类型 * internal - 内部 * external - 外部 | internal, external |
请求体(Body)
请求体格式: application/json
没有可用的数据
请求体示例
json
{
"apply_reason": "string",
"dept_id": "string",
"members": [
{
"about": "string",
"item_id": "string",
"item_type": "normal",
"nickname": "string",
"role": "readonly"
}
],
"name": "string"
}响应体(Response)
HTTP状态码: 200
响应体格式: application/json
没有可用的数据
响应体示例
json
{
"data": {
"approval_id": "string",
"drive": {
"allotee_id": "string",
"allotee_type": "user",
"company_id": "string",
"created_by": {
"avatar": "string",
"company_id": "string",
"id": "string",
"name": "string",
"type": "user"
},
"ctime": 0,
"description": "string",
"ext_attrs": [
{
"name": "string",
"value": "string"
}
],
"id": "string",
"mtime": 0,
"name": "string",
"quota": {
"deleted": 0,
"remaining": 0,
"total": 0,
"used": 0
},
"source": "string",
"status": "inuse"
},
"group": {
"avatar": "string",
"company_id": "string",
"creator_id": "string",
"ctime": 0,
"dept_id": "string",
"description": "string",
"id": "string",
"mail": "string",
"member_total": 0,
"mtime": 0,
"name": "string",
"owner_id": "string",
"source": "string",
"status": "enable",
"type": "normal"
},
"pinned": true,
"user_role": "readonly"
},
"code": 0,
"msg": "string"
}