编辑大纲
开发环境
开发环境
POST
/api/ai/chat/v2/outline/save
1.
2.
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/api/ai/chat/v2/outline/save' \
--header 'x-api-key: {{apiKey}}' \
--header 'x-channel;' \
--header 'x-token: {{token}}' \
--data-urlencode 'content={"children":[{"children":[],"depth":2,"direction":1,"expanded":true,"id":2,"pageIndex":2,"parentId":1,"showTip":false,"sort":0,"type":"catalog","value":"目录"},{"children":[],"depth":2,"direction":1,"expanded":true,"id":3,"pageIndex":3,"parentId":1,"showTip":false,"sort":1,"type":"ending","value":"结语"}],"depth":1,"direction":1,"expanded":true,"id":1,"index":0,"lastLevel":true,"pageIndex":1,"parentId":0,"showTip":false,"sort":0,"type":"title","value":"哈哈#嘿嘿嘿#嘻嘻嘻嘻-正文1-正文2"}' \
--data-urlencode 'task_id={{taskID}}'
响应示例响应示例
{
"code": 0,
"data": 3,
"msg": "success"
}
请求参数
Header 参数
x-api-key
string
必需
示例值:
{{apiKey}}
x-channel
string
必需
x-token
string
必需
示例值:
{{token}}
Body 参数application/x-www-form-urlencoded
content
string
必需
任务类型type=1: 修改过的完整大纲数据
任务类型为其他: 修改过的完整大纲+内容数据
示例值:
{"children":[{"children":[],"depth":2,"direction":1,"expanded":true,"id":2,"pageIndex":2,"parentId":1,"showTip":false,"sort":0,"type":"catalog","value":"目录"},{"children":[],"depth":2,"direction":1,"expanded":true,"id":3,"pageIndex":3,"parentId":1,"showTip":false,"sort":1,"type":"ending","value":"结语"}],"depth":1,"direction":1,"expanded":true,"id":1,"index":0,"lastLevel":true,"pageIndex":1,"parentId":0,"showTip":false,"sort":0,"type":"title","value":"哈哈#嘿嘿嘿#嘻嘻嘻嘻-正文1-正文2"}
task_id
string
任务ID
示例值:
{{taskID}}
返回响应
修改于 2024-04-17 06:07:54