Modifies the configuration of a specified API data source.
Operation description
When modifying a query statement, only the top-level JsonObject can be modified. Parameters nested in multiple layers cannot be modified. For more information, see Create an API data source.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
quickbi-public:ModifyApiDatasourceParameters |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ApiId |
string |
Yes |
The ID of the API data source. |
b66a66de51f24d149116c17718138194 |
| WorkspaceId |
string |
Yes |
The workspace ID. |
726bee5a-****-43e1-9a8e-b550f0120f35 |
| Parameters |
string |
Yes |
The configuration of API data parameters in the JSONArray format. You can modify a maximum of 10 parameters.
|
[{"name":"token","value":"xxxxxxxxxxxx"},{"name":"pageSize","value":100}] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The information returned. |
||
| RequestId |
string |
The request ID. |
D8749D65-E80A-433C-AF1B-CE9C180FF3B4 |
| Result |
boolean |
The execution result of the operation. Valid values:
|
true |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "D8749D65-E80A-433C-AF1B-CE9C180FF3B4",
"Result": true,
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ApiDataSource.NotIn.Workspace | Target apiId not in target workspace. | |
| 400 | Workspace.NotIn.Organization | The workspace is not owned by the organization. | The workspace is not owned by the organization. |
| 400 | ApiDatasource.Not.Exist | Api datasource not exist. | |
| 400 | ApiDatasource.Param.IsNull | Api datasource modify parameters is null. | |
| 400 | ApiDatasource.Param.Oversize | The number of parameters of API data source exceeds the limit and cannot exceed %s. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.