字段 | 类型 | 是否必填 | 示例 | 描述 |
---|---|---|---|---|
Action | String | 是 | SubmitWorkflow | 公共参数,提交媒体处理任务流,取值:SubmitWorkflow |
MediaId | String | 是 | aa2e88a7e95db9f7 | 媒资Id |
WorkflowId | String | 是 | workflow_h265_mp4_0 | 任务流模板Id |
CallbackArgs | String | 否 | test | 用户额外信息。回调时会透传返回,最大长度512字节 |
OverrideParams | String | 否 | "watermarks": [{"template_name": "template1", "resource_key": "watermark1.png", "margin_x": "0.00520833334", "margin_y": "0.00520833334", "width": "0.084375", "height": "0.04270833334", "refer_position": "TOP_RIGHT", "ratio_refer.width": "LONG", "ratio_refer.height": "LONG", "ratio_refer.margin_x": "LONG", "ratio_refer.margin_y": "LONG" }] |
工作流模板覆盖参数。如有需要,该字段详细信息可线下沟通 |
无
curl -X POST 'https://vod.streamlakeapi.com/?Action=SubmitWorkflow \
-H 'Content-Type: application/json' \
-d '{"MediaId":"aa2e88a7e95db9f7","WorkflowId":"workflow_h265_mp4_0"}'
HTTP/1.1 200 OK
Content-Type: application/json
{
"ResponseMeta": {
"RequestId":"CixgpmAFOYcAAAAAAAAAAw",
"ErrorCode":"",
"ErrorMessage":""
},
"ResponseData": {
}
}
ErrorCode | ErrorMessage | 说明 | 状态码 |
---|---|---|---|
InvalidArgument | Media {MediaId} not found | MediaId对应的媒体文件不存在 | 400 |
InvalidArgument | Missing param WorkflowId | 没有传任务流模板Id | 400 |
InvalidArgument | WorkflowId can not be null | 任务流模板Id为空 | 400 |
InvalidArgument | Invalid AttachedMediaType | 辅助媒资类型无效,支持watermark | 400 |
InvalidArgument | IPrimary key already exists, primary_key={PrimaryKey} | 用户自定义Id已经存在,上传失败 | 400 |
InvalidArgument | Workflow: {WorkflowId} not exist | 任务流不存在 | 400 |