Updates specific metadata fields of files indexed in a dataset.
Operation description
-
Before you call this operation, make sure that you are familiar with the billing of Intelligent Media Management (IMM).****
-
Not all metadata fields can be updated. You can update only fields such as CustomLabels, CustomId, and Figures. For more information, see the "Request parameters" section of this topic.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
imm:BatchUpdateFileMeta |
update |
*Dataset
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectName |
string |
Yes |
|
test-project |
| DatasetName |
string |
Yes |
|
test-dataset |
| Files |
array |
Yes |
The files whose metadata you want to update. |
|
| InputFile |
No |
The file and the metadata fields to update. The value must be in the JSON format. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
F5BF215E-3237-0852-B9C6-F233D44A**** |
| Files |
array<object> |
The files whose metadata was updated. |
|
|
object |
The file. |
||
| URI |
string |
The URI of the file. |
oss://examplebucket/example.jpg |
| Success |
boolean |
Indicates whether the metadata update was successful. Valid values: Enumerated values:
Valid values:
|
false |
| Message |
string |
The error message returned when Success is false. |
*error.OpError : InvalidArgument | Index KV count exceeded, should be no more than 100. |
Examples
Success response
JSON format
{
"RequestId": "F5BF215E-3237-0852-B9C6-F233D44A****",
"Files": [
{
"URI": "oss://examplebucket/example.jpg",
"Success": false,
"Message": "*error.OpError : InvalidArgument | Index KV count exceeded, should be no more than 100."
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.