All Products
Search
Document Center

DataWorks:SaveDataServiceApiTestResult

Last Updated:Nov 21, 2024

Saves the test results of an API.

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

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ApiIdlongYes

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

417381955954827
ProjectIdlongYes

The DataWorks workspace ID. You can log on to the DataWorks console and go to the Workspace page to obtain the workspace ID.

10001
ResultSamplestringNo

The sample success response of the API. This parameter is optional.

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

The sample failure response of the API. This parameter is optional.

AutoGeneratebooleanNo

Specifies whether to use the test results generated by the system. If you do not configure the resultSample or failResultSample parameter, the test results generated by the system are used.

false

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

0000-ABCD-EFG****
Databoolean

Indicates whether the test results are saved.

true
Successboolean

Indicates whether the request was successful.

true
HttpStatusCodeinteger

The HTTP status code.

200

Examples

Sample success responses

JSONformat

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

Error codes

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

Change history

Change timeSummary of changesOperation
No change history