批量导入项目
测试中
CBD测试环境
https://cbdtest.yitaiyitai.com/bpmax/open-api
CBD测试环境
https://cbdtest.yitaiyitai.com/bpmax/open-api
POST
/project/bulk/import
请求参数
Header 参数
x-bp-corporation-id
string
v2客户唯一标识
默认值:
{{OPEN_CORPORATION_ID}}
x-bp-app-id
string
v2应用id
默认值:
{{OPEN_APP_ID}}
x-bp-timestamp
string
v2签名时间戳
默认值:
{{TIME_STAMP}}
x-bp-sign
string
v2签名
默认值:
{{SIGN}}
x-open-api-secret
string
可选
默认值:
{{OPEN_API_SECRET_KEY}}
Cookie 参数
cbd_test.yitaiyitai.com_mms
string
可选
默认值:
{{COOKIE}}
Body 参数application/json
list
array[object (项目) {21}]
必需
flow_type
string
主流程key
flow_key
string
子流程key
user_id
string
项目拥有者id
project_id
string | null
父项目id
step_id
string | null
父项目环节id
form
object (表单)
项目表单
workspace
string
将项目创建到哪一个工作区
status
enum<number>
默认为进行中
枚举值:
012345
time_cost
array [object {4}]
可选
attachments
array[string]
项目附件
steps
array[object (项目环节) {10}]
项目环节状态
create_time
string
可选
update_time
string
可选
plan_start_time
string
计划开始时间
plan_end_time
string
计划结束时间
real_start_time
string
实际开始时间
real_end_time
string
实际结束时间
start_flow_step_id
integer
可选
end_flow_step_id
integer
可选
name
string
项目名称
brief
string
项 目简介
示例
{
"list": [
{
"status": 47,
"name": "wj-43",
"flow_type": "flow594479061",
"form": {
"title_to_value": {
"姓名": "wj",
"性别": "南"
}
},
"flow_key": "",
"owner_id": 1,
"steps": [
{
"owner_list": [
1
],
"flow_step_id": 1693308045889,
"status": 3,
"from_flow_step_id": 0,
"plan_start_time": "2005-03-25 11:56:41",
"real_end_time": "1971-01-08 22:38:17",
"form": {
"field_to_value": {
"Ftr2609m3038l": "武奔"
}
},
"plan_end_time": "1988-09-28 02:51:05",
"delay_level": 0,
"real_start_time": "2013-06-02 11:01:37"
},
{
"owner_list": [
1
],
"flow_step_id": 1693308160040,
"status": 2,
"from_flow_step_id": 1693308045889,
"plan_start_time": "2015-10-16 09:13:25",
"real_end_time": "1984-06-01 15:20:33",
"plan_end_time": "1998-04-27 08:49:22",
"real_start_time": "1988-10-27 12:00:53",
"form": {
"title_to_value": {
"爱好": "零食"
}
},
"delay_level": 0
}
],
"time_cost": [
{
"id": "37",
"name": "反万路克法从",
"period": "consectetur exercitation ut",
"time_cost": "1996-05-08 00:07:06"
}
],
"real_end_time": "1996-03-11 07:35:44",
"plan_start_time": "1972-09-03 01:25:01",
"end_flow_step_id": 49,
"attachments": [
],
"create_time": "2019-03-21 13:18:25",
"start_flow_step_id": 45,
"real_start_time": "2023-02-21 10:13:27",
"plan_end_time": "2019-07-12 19:40:28",
"update_time": "1982-11-19 14:26:25"
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://cbdtest.yitaiyitai.com/bpmax/open-api/project/bulk/import' \
--header 'x-bp-corporation-id: {{OPEN_CORPORATION_ID}}' \
--header 'x-bp-app-id: {{OPEN_APP_ID}}' \
--header 'x-bp-timestamp: {{TIME_STAMP}}' \
--header 'x-bp-sign: {{SIGN}}' \
--header 'x-open-api-secret: cbdtest_yitaiyitai_com^asdasd%wpocm@noirfeoopmciuoi23' \
--header 'Cookie: cbd_test.yitaiyitai.com_mms=35df455d-1ad2-456d-b521-77d7fc0552f0' \
--header 'Content-Type: application/json' \
--data-raw '{
"list": [
{
"status": 47,
"name": "wj-43",
"flow_type": "flow594479061",
"form": {
"title_to_value": {
"姓名": "wj",
"性别": "南"
}
},
"flow_key": "",
"owner_id": 1,
"steps": [
{
"owner_list": [
1
],
"flow_step_id": 1693308045889,
"status": 3,
"from_flow_step_id": 0,
"plan_start_time": "2005-03-25 11:56:41",
"real_end_time": "1971-01-08 22:38:17",
"form": {
"field_to_value": {
"Ftr2609m3038l": "武奔"
}
},
"plan_end_time": "1988-09-28 02:51:05",
"delay_level": 0,
"real_start_time": "2013-06-02 11:01:37"
},
{
"owner_list": [
1
],
"flow_step_id": 1693308160040,
"status": 2,
"from_flow_step_id": 1693308045889,
"plan_start_time": "2015-10-16 09:13:25",
"real_end_time": "1984-06-01 15:20:33",
"plan_end_time": "1998-04-27 08:49:22",
"real_start_time": "1988-10-27 12:00:53",
"form": {
"title_to_value": {
"爱好": "零食"
}
},
"delay_level": 0
}
],
"time_cost": [
{
"id": "37",
"name": "反万路克法从",
"period": "consectetur exercitation ut",
"time_cost": "1996-05-08 00:07:06"
}
],
"real_end_time": "1996-03-11 07:35:44",
"plan_start_time": "1972-09-03 01:25:01",
"end_flow_step_id": 49,
"attachments": [
],
"create_time": "2019-03-21 13:18:25",
"start_flow_step_id": 45,
"real_start_time": "2023-02-21 10:13:27",
"plan_end_time": "2019-07-12 19:40:28",
"update_time": "1982-11-19 14:26:25"
}
]
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2024-01-19 03:09:45