创建任务
开发环境
开发环境
POST
/api/ai/chat/v2/task
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/api/ai/chat/v2/task' \
--header 'x-api-key: {{apiKey}}' \
--header 'x-channel;' \
--header 'x-token: {{token}}' \
--form 'content=""' \
--form 'id=""' \
--form 'title="毕业季"' \
--form 'type="1"'
响应示例响应示例
{
"code": 0,
"data": {
"id": 1,
"title": "毕业季",
"type": 1,
"api_key": "645e1231d1ba5",
"created_at": "2023-10-26T11:05:54.079+08:00"
},
"msg": "success"
}
请求参数
Header 参数
x-api-key
string
必需
示例值:
{{apiKey}}
x-channel
string
必需
x-token
string
必需
示例值:
{{token}}
Body 参数multipart/form-data
content
string
可选
type=7: 粘贴Markdown内容 (必填)必传)
id
string
可选
type=1、3、4、5、6、7: 不传
type=8: 预置词列表接口返回的 id字段 (必填)
title
string
可选
type=7: 粘贴Markdown的标题(不传默认为: Markdown粘贴文案)
type=3、4、5、6、8: 不传
示例值:
毕业季
type
string
必需
3.导入word
4.XMind导入
5.FreeMind导入
6.Markdown导入
7.Markdown粘贴
8.预置词
示例值:
1
返回响应
修改于 2024-04-17 05:55:20