执行Action动作

POST /mj/submit/action

MethodPOST
Path/mj/submit/action
Typehttp
Status1
Module2102810
Folder45008037

说明

概览

MethodPOST
Path/mj/submit/action
Typehttp
Status1
Module2102810
Folder45008037

参数

{
  "query": [],
  "path": [],
  "cookie": [],
  "header": [
    {
      "required": false,
      "description": "",
      "type": "string",
      "id": "GTujCrB2It",
      "enable": true,
      "name": "Authorization",
      "sampleValue": "Bearer {{YOUR_API_KEY}}"
    }
  ]
}

请求体

{
  "type": "application/json",
  "parameters": [],
  "jsonSchema": {
    "type": "object",
    "properties": {
      "chooseSameChannel": {
        "type": "boolean",
        "description": "是否选择同一频道下的账号,默认只使用任务关联的账号\n\n"
      },
      "customId": {
        "type": "string",
        "description": "动作标识",
        "examples": [
          "MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011"
        ]
      },
      "taskId": {
        "type": "string",
        "description": "任务ID",
        "examples": [
          "14001934816969359"
        ]
      },
      "notifyHook": {
        "type": "string",
        "description": "回调地址, 为空时使用全局notifyHook\n\n"
      },
      "state": {
        "type": "string",
        "description": "自定义参数\n"
      }
    },
    "required": [
      "chooseSameChannel"
    ],
    "x-apifox-orders": [
      "chooseSameChannel",
      "customId",
      "taskId",
      "notifyHook",
      "state"
    ]
  },
  "mediaType": "",
  "examples": [
    {
      "value": "{\n  \"chooseSameChannel\": true,\n  \"customId\": \"MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011\",\n  \"taskId\": \"14001934816969359\",\n  \"notifyHook\": \"\",\n  \"state\": \"\"\n}",
      "mediaType": "application/json",
      "description": ""
    }
  ],
  "oasExtensions": ""
}

响应

[
  {
    "id": 562499907,
    "name": "Create image",
    "code": 200,
    "contentType": "json",
    "jsonSchema": {
      "type": "object",
      "properties": {
        "created": {
          "type": "integer"
        },
        "data": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              }
            },
            "required": [
              "url"
            ],
            "x-apifox-orders": [
              "url"
            ]
          }
        }
      },
      "required": [
        "created",
        "data"
      ],
      "x-apifox-orders": [
        "created",
        "data"
      ]
    },
    "itemSchema": {},
    "description": "",
    "mediaType": "",
    "headers": [],
    "oasExtensions": ""
  }
]

响应示例

[
  {
    "name": "Create image",
    "responseId": 562499907,
    "data": "{\n    \"created\": 1589478378,\n    \"data\": [\n        {\n            \"url\": \"https://...\"\n        },\n        {\n            \"url\": \"https://...\"\n        }\n    ]\n}",
    "description": "",
    "oasKey": "",
    "oasExtensions": "",
    "id": 440609013
  }
]