跳转到主要内容
POST
/
api
/
app-api
/
sip
/
platform
/
v2
/
workspace
/
create
创建空间
curl --request POST \
  --url https://docflow.textin.com/api/app-api/sip/platform/v2/workspace/create \
  --header 'Content-Type: application/json' \
  --header 'x-ti-app-id: <api-key>' \
  --header 'x-ti-secret-code: <api-key>' \
  --data '
{
  "name": "我的工作空间",
  "enterprise_id": 12345,
  "auth_scope": 1,
  "description": "这是一个用于处理发票的工作空间"
}
'
{
  "code": 200,
  "msg": "<string>",
  "result": {
    "workspace_id": "1234567890"
  }
}

授权

x-ti-app-id
string
header
必填
x-ti-secret-code
string
header
必填

请求体

application/json
name
string
必填

空间名称

Maximum string length: 50
示例:

"我的工作空间"

enterprise_id
integer<int64>
必填

企业组织ID

示例:

12345

auth_scope
enum<integer>
必填

协作范围 0:仅自己可见 1:企业成员可见

可用选项:
0,
1
示例:

1

description
string

空间描述

Maximum string length: 200
示例:

"这是一个用于处理发票的工作空间"

响应

200 - application/json

成功创建空间

code
integer
必填

状态码

示例:

200

msg
string
必填

状态描述

result
object