Skip to content
EN

报告上传完毕

方法: POST路径: /sunoi/uploads/audio/{id}/upload-finish

请求参数

Path 参数

text
id
string
必需

Header 参数

text
accept
string
可选
示例:
*/*
content-type
string
必需
示例:
application/json
Authorization
string
可选
默认值:
Bearer {{YOUR_API_KEY}}

Body 参数 application/json

text
upload_type
string
必需
upload_filename
string
必需
示例
{
"upload_type"
:
"file_upload"
,
"upload_filename"
:
"you_mp3_name.mp3"
}

请求示例代码

Shell

bash
curl --location --request POST '/sunoi/uploads/audio//upload-finish' \
--header 'accept: */*' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'content-type: application/json' \
--data-raw '{ "upload_type": "file_upload", "upload_filename": "you_mp3_name.mp3" }'

返回响应

🟢 200 成功

内容类型: application/json

响应结构

text
object

示例

json
{}