All Products
Search
Document Center

Data Management:UpdateDataAgentAccuracyTest

Last Updated:Jul 03, 2026

Updates the content of an accuracy test item.

Operation description

Updates the content of an accuracy test item.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

AccuracyTestInsId

string

No

The accuracy test instance ID.

at-106n4rg17gv9fxxxxxxxxxx

FileId

string

No

The file ID in the data center.

f-8*******01m

CustomerAgentId

string

No

The new custom agent ID.

ca-xxxxxxxxxxxxxxxxxxxx

Dataset

string

No

The data source.

[{\"DataSourceType\":\"database\",\"RegionId\":\"cn-hangzhou\",\"DmsInstanceId\":\"27xxxxx\",\"DmsDatabaseId\":\"752xxxxx\",\"Database\":\"employees\",\"Tables\":[\"employees\",\"salaries\",\"departments\"]}]

Mode

integer

No

The analysis mode to be tested.

0

EvaluationPrompt

string

No

The accuracy evaluation criteria. An empty value indicates the default criteria.

null

WorkspaceId

string

No

The workspace ID.

8wfig6l33n4f4xxxxxxxxxx

RegionId

string

No

The region ID.

cn-hangzhou

DmsUnit

string

No

The current DMS unit.

cn-hangzhou

MaxConcurrent

integer

No

The maximum number of concurrent sessions during the test.

5

NeedDelete

boolean

No

Specifies whether sessions are displayed after analysis. This parameter is not supported.

no use

Name

string

No

The name of the test item.

test123

Desc

string

No

The description.

null

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

Id of the request

E0D21075-xxx-FD8AD04A63B6

Success

string

Indicates whether the request was successful. Valid values:

  • true: The request was successful.

  • false: The request failed.

true

ErrorCode

string

The error code returned if the request failed.

UnknownError

ErrorMessage

string

The error message returned if the request failed.

Specified parameter Tid is not valid.

Data

object

The response struct.

FileId

string

The file ID.

f-8*******01m

AgentId

string

Agent Id

cu0cs*******mf

Dataset

string

The data source. We recommend that you configure this in the custom agent.

[{\"DataSourceType\":\"database\",\"RegionId\":\"cn-hangzhou\",\"DmsInstanceId\":\"27xxxxx\",\"DmsDatabaseId\":\"752xxxxx\",\"Database\":\"employees\",\"Tables\":[\"employees\",\"salaries\",\"departments\"]}]

Mode

integer

The analysis mode.

0

EvaluationPrompt

string

The accuracy evaluation criteria. An empty value indicates the default criteria.

null

WorkspaceId

string

The workspace ID.

8wfig6l33n4f4xxxxxxxxxx

AccuracyTest

string

The ID of the accuracy test item.

at-106n4rg17gv9fxxxxxxxxxx

Examples

Success response

JSON format

{
  "RequestId": "E0D21075-xxx-FD8AD04A63B6",
  "Success": "true",
  "ErrorCode": "UnknownError",
  "ErrorMessage": "Specified parameter Tid is not valid.",
  "Data": {
    "FileId": "f-8*******01m\n",
    "AgentId": "cu0cs*******mf",
    "Dataset": "[{\\\"DataSourceType\\\":\\\"database\\\",\\\"RegionId\\\":\\\"cn-hangzhou\\\",\\\"DmsInstanceId\\\":\\\"27xxxxx\\\",\\\"DmsDatabaseId\\\":\\\"752xxxxx\\\",\\\"Database\\\":\\\"employees\\\",\\\"Tables\\\":[\\\"employees\\\",\\\"salaries\\\",\\\"departments\\\"]}]",
    "Mode": 0,
    "EvaluationPrompt": "null",
    "WorkspaceId": "8wfig6l33n4f4xxxxxxxxxx",
    "AccuracyTest": "at-106n4rg17gv9fxxxxxxxxxx"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.