SaveDataServiceApiTestResult

更新时间:
复制 MD 格式

Saves the test results of an API.

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 parameters

Parameter

Type

Required

Description

Example

ApiId

integer

Yes

The API ID. You can call the ListDataServiceApis operation to obtain the ID.

417381955954827

ProjectId

integer

Yes

The DataWorks workspace ID. You can obtain the ID from the Workspace page in the DataWorks console.

10001

ResultSample

string

No

The sample success response of the API.

{ "data": { "totalNum": 0, "pageSize": 10, "rows": [], "pageNum": 1 }, "errCode": 0, "requestId": "0bc14a561678159140664515*****", "errMsg": "success", "apiLog": null}

FailResultSample

string

No

The sample failure response of the API.

{"apiLog": null, "data": null, "errCode": 1108110622, "errMsg": "data Source query failed", "requestId": "0 bc14a **** 5902762031 ****"}

AutoGenerate

boolean

No

Whether to use system-generated test results. If neither ResultSample nor FailResultSample is specified, system-generated results are used.

false

Response elements

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The request ID.

0000-ABCD-EFG****

Data

boolean

Indicates whether the test results are saved.

true

Success

boolean

Indicates whether the request was successful.

true

HttpStatusCode

integer

The HTTP status code.

200

Examples

Success response

JSON format

{
  "RequestId": "0000-ABCD-EF*****\t",
  "Data": true,
  "Success": true,
  "HttpStatusCode": 200
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.