- 后台接口
- 前台接口
- 【新】后台接口
- 【新】前台接口
数字人编辑
开发中
POST
/api/kb.digital/edit
请求参数
Query 参数
id
integer
ID
示例值:
1
Header 参数
token
string
可选
示例值:
{{api-token}}
Body 参数application/json
id
integer
ID
name
string
数字人名称
avatar
string
数字人头像
image
string
数字人封面
wide_stay_video
string
宽屏人物待机视频
wide_talk_video
string
宽屏人物说话视频
vertical_stay_video
string
竖屏人物待机视频
vertical_talk_video
string
竖屏人物说话视频
dubbing
string
配音角色
idle_time
integer
必需
idle_reply
string
闲时回复内容
示例
{
"id": 1,
"name": "大胖孙",
"avatar": "http://www.php-cw.localhost/uploads/images/20240326/20240326111644a6c376985.png",
"image": "http://www.php-cw.localhost/uploads/images/20240326/20240326111644a6c376985.png",
"wide_stay_video": "http://www.php-cw.localhost/uploads/images/20240326/20240326111644a6c376985.png",
"wide_talk_video": "http://www.php-cw.localhost/uploads/images/20240326/20240326111644a6c376985.png",
"vertical_stay_video": "http://www.php-cw.localhost/uploads/images/20240326/20240326111644a6c376985.png",
"vertical_talk_video": "http://www.php-cw.localhost/uploads/images/20240326/20240326111644a6c376985.png",
"dubbing": "xiaoyan",
"idle_time": 10,
"idle_reply": "我是闲时回复"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/kb.digital/edit?id=1' \
--header 'token: {{api-token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 1,
"name": "大胖孙",
"avatar": "http://www.php-cw.localhost/uploads/images/20240326/20240326111644a6c376985.png",
"image": "http://www.php-cw.localhost/uploads/images/20240326/20240326111644a6c376985.png",
"wide_stay_video": "http://www.php-cw.localhost/uploads/images/20240326/20240326111644a6c376985.png",
"wide_talk_video": "http://www.php-cw.localhost/uploads/images/20240326/20240326111644a6c376985.png",
"vertical_stay_video": "http://www.php-cw.localhost/uploads/images/20240326/20240326111644a6c376985.png",
"vertical_talk_video": "http://www.php-cw.localhost/uploads/images/20240326/20240326111644a6c376985.png",
"dubbing": "xiaoyan",
"idle_time": 10,
"idle_reply": "我是闲时回复"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
show
integer
必需
msg
string
必需
data
array[string]
必需
示例
{
"code": 1,
"show": 1,
"msg": "编辑成功",
"data": []
}
修改于 2024-04-02 08:07:35