All Products
Search
Document Center

Quick BI:ModifyApiDatasourceParameters

Last Updated:Nov 04, 2025
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.

Modifies the configurations of a specified API data source.

Operation description

When you modify a query statement, you can modify only the top-level JsonObject. You cannot modify parameters that are nested in multiple layers. For more information about the parameters, see Create an API data source.

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
quickbi-public:ModifyApiDatasourceParametersupdate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ApiIdstringYes

The ID of the API data source.

b66a66de51f24d149116c17718138194
WorkspaceIdstringYes

The workspace ID.

726bee5a-****-43e1-9a8e-b550f0120f35
ParametersstringYes

The configuration of API data parameters in the JSONArray format. You can modify a maximum of 10 parameters.

  • name: the name of a common parameter or a parameter in a query statement
  • value: the value of a common parameter or a parameter in a query statement.
[{"name":"token","value":"xxxxxxxxxxxx"},{"name":"pageSize","value":100}]

Response parameters

ParameterTypeDescriptionExample
object

The information returned.

RequestIdstring

The request ID.

D8749D65-E80A-433C-AF1B-CE9C180FF3B4
Resultboolean

The execution result of the interface. Valid values:

  • true: The request was successful.
  • false: The request failed.
true
Successboolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.
true

Examples

Sample success responses

JSONformat

{
  "RequestId": "D8749D65-E80A-433C-AF1B-CE9C180FF3B4",
  "Result": true,
  "Success": true
}

Error codes

HTTP status codeError codeError messageDescription
400ApiDataSource.NotIn.WorkspaceTarget apiId not in target workspace.-
400Workspace.NotIn.OrganizationThe workspace is not owned by the organization.The workspace is not owned by the organization.
400ApiDatasource.Not.ExistApi datasource not exist.-
400ApiDatasource.Param.IsNullApi datasource modify parameters is null.-
400ApiDatasource.Param.OversizeThe number of parameters of API data source exceeds the limit and cannot exceed %s.-

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