创建任务
适用版本>=v7.0.2603.20260326
标签:slide
请求说明
| 字段 | 值 |
|---|---|
请求地址 | 配置域名+/openapi+/v7/aiopen/slides/outline/async_tasks/create |
HTTP 方法 | POST |
接口描述 | 创建生成演示大纲的任务 |
签名方式 | KSO-1(配置域名+/openapi不参与签名) |
限频策略 | 无 |
权限要求 | 演示AI中台-AI生成PPT(应用授权) kso.aiopen_slide.readwrite |
请求头 (Headers)
| 属性名 | 类型 | 是否必填 | 描述 | 可选值 |
|---|---|---|---|---|
X-Kso-Date | string | 是 | RFC1123 格式的日期,例: Wed, 23 Jan 2013 06:43:08 GMT | - |
X-Kso-Authorization | string | 是 | KSO-1 签名值,详见《签名方法》 | - |
Authorization | string | 是 | 授权凭证,格式为:Bearer {access_token} | - |
请求体(Body)
请求体格式: application/json
没有可用的数据
请求体示例
json
{
"generate_from": "theme",
"generate_requirement": {
"page_num": 0
},
"generate_result": "ppt_outline",
"generate_type": 1,
"session_info": {
"ext_attrs": "string",
"message": {
"content": "string",
"content_type": "string",
"role": "string"
},
"refs": [
{
"ext_attrs": "string",
"file": {
"drive_id": "string",
"file_id": "string",
"file_name": "string",
"source": "wps_temp"
},
"text": {
"content": "string",
"content_type": "string"
},
"type": "text"
}
],
"session_id": "string"
},
"switch_thinking": true
}1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
响应体(Response)
HTTP状态码: 200
响应体格式: application/json
没有可用的数据
响应体示例
json
{
"code": 0,
"msg": "string",
"data": {
"task_id": "string"
}
}1
2
3
4
5
6
7
2
3
4
5
6
7