调用 UpdateImageInfoKey 接口,自定义可查询的 meta 字段,仅获取所需的图片元信息。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共请求参数。
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | UpdateImageInfoKey | 接口名称。当前 API 的名称为 UpdateImageInfoKey。 |
| Version | String | 是 | 2023-05-01 | 接口版本。当前 API 的版本为 2023-05-01。 |
ServiceId | String | 是 |
| 服务 ID。可通过以下任一方式获取。
|
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
Type | String | 是 |
| 类型。传空值表示不自定义可查询的 meta 字段,即保留全部字段。取值如下:
|
Keys | Array of String | 是 |
| 需保留或排除的字段名称。支持一级和二级字段,例如 说明 仅当 |
本接口暂无特定的返回参数。更多信息请见公共返回参数。
POST https://imagex.volcengineapi.com/?Action=UpdateImageInfoKey&Version=2023-05-01&ServiceId=91**2g { "Type": "DropPart", "Keys": [ "width", "exif", "aigc.Label" ] }
{ "ResponseMetadata": { "RequestId": "20230604110420****100232280022D31", "Action": "UpdateImageInfoKey", "Version": "2023-05-01", "Service": "ImageX", "Region": "cn-north-1" } }
本接口无特有的错误码。更多信息请见公共错误码和 veImageX 错误码。