2.按钮点击(Action)接口
POST
/mj/submit/action
请求参数
Header 参数
Authorization
string
必需
示例值:
{{YOUR_API_KEY}}
Body 参数application/json
customId
string
动作标识
taskId
string
任务id
enableRemix
string
是否使用remix 模式
notifyHook
string
回调地址
state
string
自定义参数
示例
{
"customId": "MJ::JOB::upsample::1::0bc41848-dc7f-42f9-893c-9c33b00ebdfd",
"taskId": "1734937261701344"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://openapi.sku.vip/mj/submit/action' \
--header 'Authorization: ed822e3a-ec11-48d5-9739-55f4b402e7b0' \
--header 'Content-Type: application/json' \
--data-raw '{
"customId": "MJ::JOB::upsample::1::0bc41848-dc7f-42f9-893c-9c33b00ebdfd",
"taskId": "1734937261701344"
}'
返回响应
🟢200成功
application/json
Body
code
integer
状态码
description
string
描述
result
string
任务id
示例
{
"code": 1,
"description": "Submit success",
"result": "1734937261701344"
}
修改于 2025-03-09 12:25:55