调用 UpdateImageAIProcessQueue 接口,更新指定批量处理任务队列的配置,例如名称、描述、回调配置等。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共请求参数。
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | UpdateImageAIProcessQueue | 接口名称。当前 API 的名称为 UpdateImageAIProcessQueue。 |
| Version | String | 是 | 2023-05-01 | 接口版本。当前 API 的版本为 2023-05-01。 |
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Id | String | 是 | 62f224ce61****826e38c29a | 任务队列 ID。您可调用 GetImageAIProcessQueues 接口,通过返回参数 Id 获取队列 ID。 |
| Name | String | 是 | test | 任务队列名称。 |
| Desc | String | 否 | ceshi | 任务队列描述,可用于备注该队列的用途。 |
EnableCallback | Boolean | 否 |
| 任务队列是否开启回调配置,取值如下:
|
Attribute | String | 是 |
| 任务队列属性。取值如下:
|
| CallbackConf | Object of CallbackConf | 否 | - | 任务队列回调设置。 |
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Method | String | 否 | HTTP | 回调方式。仅支持取值 HTTP。 |
| Endpoint | String | 否 | https://demo.com | 回调 HTTP 请求地址,用于接收批量处理结果详情。支持使用 https 和 http 协议。 |
DataFormat | String | 否 |
| 回调数据格式。取值如下:
|
| Args | String | 否 | product id | 业务自定义回调参数,将在回调消息的callback_args中透传出去。具体回调参数请参考回调内容。 |
Type | String | 否 |
| 回调触发类型。取值如下:
|
本接口暂无特定的返回参数。更多信息请见公共返回参数。
POST https://imagex.volcengineapi.com/?Action=UpdateImageAIProcessQueue&Version=2023-05-01 { "Id": "62f224ce61****826e38c29a", "Name": "test", "Desc": "ceshi", "EnableCallback": true, "CallbackConf": { "Method": "HTTP", "Endpoint": "https://demo.com", "DataFormat": "JSON", "Args": "product id", "Type": "task" }, "Attribute": "bgfill" }
{ "ResponseMetadata": { "RequestId": "20230604110420****100232280022D31", "Action": "UpdateImageAIProcessQueue", "Version": "2023-05-01", "Service": "ImageX", "Region": "cn-north-1" } }
本接口无特有的错误码。更多信息请见公共错误码和 veImageX 错误码。