All Products
Search
Document Center

AnalyticDB:UpdateCollectionDataMetadata

Last Updated:Jan 23, 2026
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Update Metadata of Collection Data

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
gpdb:UpdateCollectionDataMetadatacreate
*Collection
acs:gpdb:{#regionId}:{#accountId}:collection/{#DBInstanceId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
DBInstanceIdstringNo

Instance ID.

Note You can call the DescribeDBInstances API to view details of all AnalyticDB for PostgreSQL instances in the target region, including the instance ID.
gp-j788ghhjjxxxx
NamespacestringNo

Namespace.

Note You can use the ListNamespaces API to view the list.
mynamespace
CollectionstringYes

Collection name.

Note You can use the ListCollections API to view the list.
document
RegionIdstringYes

Region ID where the instance is located.

cn-hangzhou
NamespacePasswordstringYes

Password corresponding to the namespace.

testpassword
FilterstringNo

Filter condition for the data to be updated, in SQL WHERE format. This field cannot be empty at the same time as the Ids field.

business_value = 'chat_file_1'
IdsarrayNo

ID list of the data to be updated, i.e., the Row.Id specified when uploading the data. This field cannot be empty at the same time as the Filter field.

stringNo

ID of the data to be updated.

AC-2642a8744eba4c5eb7d7595d08306d15
MetadataobjectYes

Data to be updated, in a JSON string of MAP format. The key is the field name, and the value is the new data value.

anyNo

Metadata value.

new title
WorkspaceIdstringNo

ID of the Workspace composed of multiple database instances. This parameter and the DBInstanceId parameter cannot both be empty. When both are specified, this parameter takes precedence.

gp-ws-*****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

Request ID.

ABB39CC3-4488-4857-905D-2E4A051D0521
Messagestring

Detailed information when the request fails.

failed to connect database, detailMsg: getConnection fail::SQL State: 28P01, Error Code: 0, Error Message: FATAL: password
Statusstring

Status, with the following values:

  • success: Success.
  • fail: Failure.
success
AppliedRowslong

Number of effective entries.

10

Examples

Sample success responses

JSONformat

{
  "RequestId": "ABB39CC3-4488-4857-905D-2E4A051D0521",
  "Message": "failed to connect database, detailMsg: getConnection fail::SQL State: 28P01, Error Code: 0, Error Message: FATAL: password",
  "Status": "success",
  "AppliedRows": 10
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-08-04The request parameters of the API has changedView Change Details
2023-12-06The internal configuration of the API is changed, but the call is not affectedView Change Details