All Products
Search
Document Center

Artificial Intelligence Recommendation:ModifyDataSource

Last Updated:Sep 16, 2025

Modifies the information of a single data source in a table of a specified instance.

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
airec:ModifyDataSourceupdate
*Instance
acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}
    none
none

Request syntax

PUT /v2/openapi/instances/{instanceId}/dataSources/{tableName} HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
instanceIdstringYes

The instance ID.

airec-cn-o400whm78004
tableNamestringNo

The name of the table.

behavior

Response parameters

ParameterTypeDescriptionExample
object
resultobject

The details about the data source.

gmtModifiedstring

The time when the data source was last modified. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.

2018-12-07T02:24:26.000Z
gmtCreatestring

The time when the data source was created. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.

2018-12-07T02:24:26.000Z
tableNamestring

The name of the table.

behavior
metaobject

The parameters of the data source.

bucketNamestring

The name of the Object Storage Service (OSS) bucket.

airec
accessKeyIdstring

The AccessKey ID of the Alibaba Cloud account.

xxx
typestring

The type of the data source. Only MaxCompute is supported.

ODPS
partitionstring

The partition in the MaxCompute table.

ds=20181122
timestamplong

The timestamp. The value must be accurate to the millisecond.

1544112000000
pathstring

The path of the OSS data source.

oss://xxx.xxx
tableNamestring

The name of the MaxCompute table.

test_maxcompute
projectNamestring

The name of the MaxCompute project.

openrec_gray
codestring

The error code.

InternalServerError
requestIdstring

The request ID.

8F81A922-6C81-46D6-B78C-CC35E16B1691
messagestring

The error message.

An internal server error occurred

Examples

Sample success responses

JSONformat

{
  "result": {
    "gmtModified": "2018-12-07T02:24:26.000Z",
    "gmtCreate": "2018-12-07T02:24:26.000Z",
    "tableName": "behavior",
    "meta": {
      "bucketName": "airec",
      "accessKeyId": "xxx",
      "type": "ODPS",
      "partition": "ds=20181122",
      "timestamp": 1544112000000,
      "path": "oss://xxx.xxx",
      "tableName": "test_maxcompute",
      "projectName": "openrec_gray"
    }
  },
  "code": "InternalServerError",
  "requestId": "8F81A922-6C81-46D6-B78C-CC35E16B1691",
  "message": "An internal server error occurred"
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history